/* Стилі для сторінки доставки та оплати */

/* Delivery Methods Section */
.delivery-methods-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.delivery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 15px 0;
}

.delivery-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(233, 30, 99, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    cursor: default;
}

.delivery-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.15);
    border-color: rgba(233, 30, 99, 0.3);
}

.delivery-image {
    text-align: center;
    margin-bottom: 25px;
}

.delivery-image img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.delivery-card:hover .delivery-image img {
    transform: scale(1.1);
}

.delivery-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.delivery-description {
    color: #666;
    font-size: 0.95em;
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.delivery-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.delivery-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

.delivery-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
}

.delivery-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #e91e63;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.4);
    border: 3px solid white;
    z-index: 30;
    transition: all 0.3s ease;
    cursor: default;
}

.delivery-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.6);
}

.delivery-badge.economical {
    background: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.delivery-badge.economical:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.delivery-badge.free {
    background: var(--color-primary);
    box-shadow: 0 4px 15px rgba(255, 20, 147, 0.4);
}

.delivery-badge.free:hover {
    box-shadow: 0 6px 20px rgba(255, 20, 147, 0.6);
}

/* Payment Methods Section */
.payment-methods-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.payment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
    padding: 15px 0;
}

.payment-card {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(52, 58, 64, 0.1);
    transition: all 0.3s ease;
    overflow: visible;
    cursor: default;
}

.payment-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(52, 58, 64, 0.15);
    border-color: rgba(52, 58, 64, 0.3);
}

.payment-image {
    text-align: center;
    margin-bottom: 25px;
}

.payment-image img {
    max-width: 120px;
    height: auto;
    transition: transform 0.3s ease;
}

.payment-card:hover .payment-image img {
    transform: scale(1.1);
}

.payment-title {
    font-size: 1.3em;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
    text-align: center;
}

.payment-description {
    color: #666;
    font-size: 0.95em;
    text-align: center;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.payment-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.payment-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9em;
    color: #555;
    line-height: 1.4;
}

.payment-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #007bff;
    font-weight: bold;
    font-size: 1.2em;
}

.payment-badge {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #343a40;
    color: white;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 4px 15px rgba(52, 58, 64, 0.4);
    border: 3px solid white;
    z-index: 30;
    transition: all 0.3s ease;
    cursor: default;
}

.payment-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(52, 58, 64, 0.6);
}

.payment-badge.trusted {
    background: #28a745;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4);
}

.payment-badge.trusted:hover {
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.6);
}

.payment-badge.instant {
    background: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.payment-badge.instant:hover {
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.payment-badge.business {
    background: #6f42c1;
    box-shadow: 0 4px 15px rgba(111, 66, 193, 0.4);
}

.payment-badge.business:hover {
    box-shadow: 0 6px 20px rgba(111, 66, 193, 0.6);
}

/* Адаптивність */
@media (max-width: 768px) {
    .delivery-grid,
    .payment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .delivery-card,
    .payment-card {
        padding: 20px;
        border-radius: 15px;
    }
    
    /* Виправлення відступів від галочок у мобільній версії */
    .delivery-features li,
    .payment-features li {
        padding-left: 30px;
        padding-right: 10px;
    }
    
    .delivery-features li::before,
    .payment-features li::before {
        left: 5px;
    }
    
    .delivery-image img,
    .payment-image img {
        max-width: 100px;
    }
    
    .delivery-title,
    .payment-title {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .delivery-card,
    .payment-card {
        padding: 15px;
        border-radius: 12px;
    }
    
    .delivery-image img,
    .payment-image img {
        max-width: 80px;
    }
    
    .delivery-features li,
    .payment-features li {
        font-size: 0.85em;
        padding: 6px 0;
        padding-left: 28px;
    }
    
    .delivery-features li::before,
    .payment-features li::before {
        left: 3px;
    }
}

/* Анімації */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delivery-card.fade-in,
.payment-card.fade-in {
    animation: slideInUp 0.6s ease forwards;
}

.delivery-card.fade-in:nth-child(1),
.payment-card.fade-in:nth-child(1) {
    animation-delay: 0.1s;
}

.delivery-card.fade-in:nth-child(2),
.payment-card.fade-in:nth-child(2) {
    animation-delay: 0.2s;
}

.delivery-card.fade-in:nth-child(3),
.payment-card.fade-in:nth-child(3) {
    animation-delay: 0.3s;
}

/* Спеціальні стилі для iOS Safari */
@supports (-webkit-touch-callout: none) {
    .delivery-card,
    .payment-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .delivery-card:hover,
    .payment-card:hover {
        -webkit-transform: translateY(-10px) translateZ(0);
        transform: translateY(-10px) translateZ(0);
    }
}
