/**
 * NOVAYA WORLD - Delivery Section Styles v3.1.55
 * 
 * Stylowanie sekcji wyboru dostawy w checkout
 * - Karty kurierów z ikonami
 * - Aktywny stan wybranej opcji
 * - Banner czasu produkcji
 * - Luxury beige/gold theme
 * - Responsive design
 */

/* ============================================
   PRODUCTION TIME BANNER
   ============================================ */

.production-time-banner {
    background: linear-gradient(135deg, #fff9f0 0%, #fef5e7 100%);
    border: 2px solid #c9a961;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.1);
    position: relative;
    overflow: hidden;
}

.production-time-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.production-time-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #c9a961 0%, #b8935a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.3);
    position: relative;
    z-index: 1;
}

.production-time-icon i {
    animation: gemPulse 2s ease-in-out infinite;
}

@keyframes gemPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.production-time-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.production-time-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c1810;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.production-time-title i {
    color: #c9a961;
    font-size: 1.1rem;
}

.production-time-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #5a4a42;
    margin-bottom: 0.75rem;
}

.production-time-text strong {
    color: #c9a961;
    font-weight: 700;
    display: inline-block;
    padding: 0.15rem 0.5rem;
    background: rgba(201, 169, 97, 0.1);
    border-radius: 6px;
    margin: 0 0.25rem;
}

.production-time-note {
    font-size: 0.85rem;
    color: #8b7355;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.production-time-note i {
    color: #c9a961;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .production-time-banner {
        flex-direction: column;
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .production-time-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin: 0 auto;
    }
    
    .production-time-title {
        font-size: 1.1rem;
        text-align: center;
    }
    
    .production-time-text {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .production-time-note {
        font-size: 0.8rem;
        justify-content: center;
    }
}

/* ============================================
   DELIVERY SELECTION SECTION
   ============================================ */

.delivery-selection-wrapper {
    margin-top: 1rem;
}

.delivery-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

/* ============================================
   DELIVERY CARD
   ============================================ */

.delivery-card {
    position: relative;
    background: #fff;
    border: 2px solid #e5ddd5;
    border-radius: 12px;
    padding: 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.delivery-card:hover {
    border-color: #c9a961;
    box-shadow: 0 4px 12px rgba(201, 169, 97, 0.15);
    transform: translateY(-2px);
}

.delivery-card.active {
    border-color: #c9a961;
    background: linear-gradient(135deg, #faf8f5 0%, #f5f1ea 100%);
    box-shadow: 0 6px 16px rgba(201, 169, 97, 0.25);
}

.delivery-card.active::before {
    content: '✓';
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: linear-gradient(135deg, #c9a961, #d4af69);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.4);
}

.delivery-card.recommended {
    border-color: #c9a961;
}

.delivery-card.recommended::after {
    content: '⭐ POLECANE';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #c9a961, #d4af69);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

/* ============================================
   DELIVERY CARD CONTENT
   ============================================ */

.delivery-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.delivery-details {
    flex: 1;
}

.delivery-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.25rem;
}

.delivery-time {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.delivery-time i {
    color: #c9a961;
    font-size: 0.75rem;
}

.delivery-description {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.delivery-price {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #c9a961;
}

.delivery-price.free {
    color: #4caf50;
}

/* ============================================
   DELIVERY INFO BOX
   ============================================ */

.delivery-info {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, #f5f1ea 0%, #faf8f5 100%);
    border: 2px solid #c9a961;
    border-radius: 12px;
}

.delivery-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.delivery-info-icon {
    font-size: 2rem;
}

.delivery-info-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c2c2c;
}

.delivery-info-details {
    display: grid;
    gap: 0.75rem;
}

.delivery-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5ddd5;
}

.delivery-info-row:last-child {
    border-bottom: none;
}

.delivery-info-label {
    font-size: 0.9rem;
    color: #666;
}

.delivery-info-value {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #2c2c2c;
}

.delivery-info-value.highlight {
    color: #c9a961;
}

/* ============================================
   FREE SHIPPING BANNER
   ============================================ */

.free-shipping-banner {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #4caf50, #66bb6a);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.free-shipping-banner i {
    font-size: 2rem;
}

.free-shipping-text {
    flex: 1;
}

.free-shipping-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.free-shipping-text small {
    font-size: 0.85rem;
    opacity: 0.95;
}

.almost-free-shipping-banner {
    margin-top: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ff9800, #ffb74d);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
}

.almost-free-shipping-banner i {
    font-size: 2rem;
}

.almost-free-shipping-text {
    flex: 1;
}

.almost-free-shipping-text strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.almost-free-shipping-text small {
    font-size: 0.85rem;
    opacity: 0.95;
}

/* ============================================
   LOADING STATE
   ============================================ */

.delivery-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #c9a961;
    font-size: 1.1rem;
}

.delivery-loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

/* ============================================
   COUNTRY SELECTOR (Optional)
   ============================================ */

.country-selector {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5ddd5;
}

.country-selector-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.country-selector-label i {
    color: #c9a961;
}

.country-selector select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5ddd5;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.country-selector select:hover {
    border-color: #c9a961;
}

.country-selector select:focus {
    outline: none;
    border-color: #c9a961;
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .delivery-options-grid {
        grid-template-columns: 1fr;
    }
    
    .delivery-card {
        padding: 1rem;
    }
    
    .delivery-icon {
        font-size: 2rem;
    }
    
    .delivery-name {
        font-size: 1rem;
    }
    
    .delivery-info {
        padding: 1rem;
    }
    
    .free-shipping-banner,
    .almost-free-shipping-banner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .delivery-card {
        flex-direction: column;
        text-align: center;
    }
    
    .delivery-card.active::before {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .delivery-icon {
        font-size: 2.5rem;
    }
}
