/*
 * Checkout Dynamic Styles
 * Moved from inline styles in functions.php for security and maintainability
 * 
 * @package Rosea
 */

/* ========== SHIPPING METHODS ========== */
.custom-shipping-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.custom-shipping-method {
    position: relative;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.custom-shipping-method:hover {
    border-color: #f16a67;
    box-shadow: 0 4px 12px rgba(241, 106, 103, 0.15);
    transform: translateY(-2px);
}

.custom-shipping-method.selected {
    border-color: #f16a67;
    background: #fff9f9;
    box-shadow: 0 4px 16px rgba(241, 106, 103, 0.2);
}

.custom-shipping-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-shipping-method label {
    display: block;
    cursor: pointer;
    padding: 18px 20px;
    margin: 0;
    width: 100%;
}

.shipping-method-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shipping-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f16a67 0%, #ff8a87 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.custom-shipping-method.selected .shipping-icon {
    background: linear-gradient(135deg, #46282a 0%, #5a3638 100%);
    transform: scale(1.1);
}

.shipping-icon i {
    font-size: 24px;
    color: #ffffff;
}

.shipping-details {
    flex: 1;
    min-width: 0;
}

.shipping-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.custom-shipping-method.selected .shipping-name {
    color: #f16a67;
}

.shipping-description {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

.shipping-price {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    padding: 8px 16px;
    background: #f0fdf4;
    border-radius: 6px;
    border: 1px solid #bbf7d0;
    transition: all 0.3s ease;
}

.custom-shipping-method.selected .shipping-price {
    background: #dcfce7;
    border-color: #86efac;
}

.shipping-price .free-badge {
    color: #28a745;
    font-weight: 700;
}

/* Checkmark indicator */
.custom-shipping-method::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.custom-shipping-method.selected::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ========== PAYMENT METHODS ========== */
.custom-payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
}

.custom-payment-method {
    position: relative;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
}

.custom-payment-method:hover {
    border-color: #f16a67;
    box-shadow: 0 4px 12px rgba(241, 106, 103, 0.15);
    transform: translateY(-2px);
}

.custom-payment-method.selected {
    border-color: #f16a67;
    background: #fff9f9;
    box-shadow: 0 4px 16px rgba(241, 106, 103, 0.2);
}

.custom-payment-method input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-payment-method label {
    display: block;
    cursor: pointer;
    padding: 18px 20px;
    margin: 0;
    width: 100%;
}

.payment-method-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.payment-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.custom-payment-method.selected .payment-icon {
    background: linear-gradient(135deg, #388E3C 0%, #4CAF50 100%);
    transform: scale(1.1);
}

.payment-icon i {
    font-size: 24px;
    color: #ffffff;
}

.payment-details {
    flex: 1;
    min-width: 0;
}

.payment-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.custom-payment-method.selected .payment-name {
    color: #f16a67;
}

.payment-description {
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}

/* Checkmark indicator */
.custom-payment-method::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    width: 28px;
    height: 28px;
    background: #4CAF50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.custom-payment-method.selected::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .shipping-method-content,
    .payment-method-content {
        gap: 12px;
    }
    
    .shipping-icon,
    .payment-icon {
        width: 40px;
        height: 40px;
    }
    
    .shipping-icon i,
    .payment-icon i {
        font-size: 20px;
    }
    
    .shipping-name,
    .payment-name {
        font-size: 14px;
    }
    
    .shipping-description,
    .payment-description {
        font-size: 12px;
    }
    
    .shipping-price {
        font-size: 16px;
        padding: 6px 12px;
    }
}

