/* Cart & Checkout Specific Styles */

/* Layout Grid */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .checkout-section {
        overflow-x: hidden;
    }
}

/* Left Column - Cart Items (Smaller width) */
.checkout-main-content {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    max-width: 100%;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.cart-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 5px;
}

.cart-subtitle {
    color: #7f8c8d;
    font-size: 15px;
    margin: 0;
}

.clear-cart-btn {
    background: #f8f9fa;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.clear-cart-btn:hover {
    background: #dc3545;
    color: white;
}

/* Cart Item Styles */
.cart-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: #fff;
}

.cart-item-content {
    margin-bottom: 12px;
}

.cart-item-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.cart-item-desc {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.original-price {
    text-decoration: line-through;
    color: #95a5a6;
    font-size: 14px;
}

.current-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #2c3e50;
}

.offer-applied {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f5e9;
    color: #27ae60;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
}

.cart-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #eaeaea;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-selector label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 12px;
}

.quantity-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

.quantity-input {
    width: 50px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
}

.subtotal {
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.subtotal-price {
    font-size: 18px;
    color: #27ae60;
    margin-left: 8px;
}

/* Right Column Styles */
.checkout-sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Billing Details Card */
.billing-details-card {
    background: #e9eff3;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-header {
    text-align: center;
    margin-bottom: 25px;
}

.form-header i {
    font-size: 42px;
    color: #3498db;
    margin-bottom: 12px;
}

.form-header h2 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-header p {
    color: #7f8c8d;
    font-size: 14px;
}

/* Form Styles */
.billing-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 13px;
}

.form-group input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group-with-icon {
    position: relative;
}

.form-group-with-icon input {
    padding-right: 50px;
}

.icon-button {
    position: absolute;
    right: 10px;
    top: 35px;
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 5px;
    font-size: 14px;
}

.icon-button:hover {
    color: #3498db;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
    border-radius: 8px;
}

.loading-overlay.visible {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Order Summary */
.order-summary-wrapper {
    background: white;
    border-radius: 8px;
    padding: 25px 25px 15px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.order-summary-wrapper h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}

.summary-cart-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-item span:first-child {
    color: #555;
}

.summary-item span:last-child {
    font-weight: 600;
    color: #2c3e50;
}

.price-breakdown {
    margin: 15px 0 0 0;
}

.summary-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
}

.summary-price-row.total {
    font-size: 18px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 8px;
}

.one-time-payment-text {
    text-align: center;
    color: #7f8c8d;
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
}

/* Buttons */
.checkout-btn-full {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin: 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Footer Links */
.summary-footer-links {
    text-align: center;
    margin: 15px 0;
}

.summary-footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

.summary-footer-links a:hover {
    color: #2980b9;
}

.secure-payment-text {
    text-align: center;
    color: #95a5a6;
    font-size: 13px;
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* What You Get Box */
.what-you-get-box {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
    margin-top: 20px;
    border-left: 3px solid #3498db;
}

.what-you-get-box h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    font-size: 16px;
}

.what-you-get-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.what-you-get-box li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
    font-size: 14px;
}

.what-you-get-box li i {
    color: #27ae60;
    font-size: 16px;
}

/* Customer Message */
.customer-message-container {
    background: 2c3e50;
    color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
}

.customer-message h3 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 18px;
}

.customer-message h4 {
    font-weight: 500;
    margin-bottom: 12px;
    opacity: 0.9;
    font-size: 16px;
}

.customer-message p {
    line-height: 1.6;
    opacity: 0.9;
    font-size: 14px;
}

/* reCAPTCHA Styling */
.g-recaptcha {
    margin: 15px 0;
    transform: scale(0.95);
    transform-origin: 0 0;
}

.g-recaptcha>div {
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {

    .checkout-main-content,
    .billing-details-card,
    .order-summary-wrapper {
        padding: 15px;
    }

    .cart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cart-title {
        font-size: 22px;
    }

    .cart-item-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .current-price {
        font-size: 22px;
    }

    .subtotal {
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .g-recaptcha {
        transform: scale(0.85);
    }
}

@media (max-width: 480px) {
    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .what-you-get-box {
        padding: 15px;
    }

    .form-header i {
        font-size: 36px;
    }

    .form-header h2 {
        font-size: 20px;
    }
}

/* Trust Badges Section */
.trust-badges {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    text-align: center;
}

/* Trust Badges Section */
.trust-badges {
    margin-top: 25px;
    padding-top: 0;
    text-align: center;
}

.secure-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    color: #2c3e50;
    flex-wrap: wrap;
    gap: 15px;
}

.secure-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    color: #2c3e50;
}

.secure-text i {
    color: #2c3e50;
    /* Dark color for lock */
}

.powered-by-stripe {
    background: #32325d;
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 500;
}

.powered-by-stripe i {
    color: white;
}

.trust-divider {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 0 0 12px 0;
}

.payment-icons-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}

/* Card-like styling for icons */
.payment-icons-row i {
    font-size: 44px;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
    background: white;
    width: auto;
    height: auto;
    line-height: 0.75;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Payment Icons Branding Colors */
.payment-icons-row .payment-icon-img {
    height: 38px;
    /* Match visual height of neighboring icons */
    width: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0;
    object-fit: contain;
    vertical-align: middle;
}

.fa-cc-visa {
    color: #1a1f71;
}

.fa-cc-mastercard {
    color: #eb001b;
}

.fa-cc-amex {
    color: #006fcf;
}

.fa-cc-discover {
    color: #ff6000;
}

.fa-cc-jcb {
    color: #00008d;
}

.fa-cc-diners-club {
    color: #0079be;
}

.fa-cc-unionpay {
    color: #000;
}