/* WooCommerce Flow Popup Styles */

/* Overlay */
.wcf-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.wcf-popup-overlay.wcf-active {
    display: block;
    opacity: 1;
}

body.wcf-popup-open {
    overflow: hidden;
}

/* Popup Container */
.wcf-popup-container {
    position: relative;
    max-width: 1200px;
    width: 100%;
    margin: 30px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(-50px);
    transition: transform 0.3s ease;
    animation: wcfSlideIn 0.3s ease forwards;
    overflow: hidden;
}

.wcf-popup-overlay.wcf-active .wcf-popup-container {
    transform: translateY(0);
}

@keyframes wcfSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.wcf-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wcf-close-btn:hover {
    background: #f44336;
    border-color: #f44336;
    color: #ffffff;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.3);
}

/* Popup Content */
.wcf-popup-content {
    padding: 40px;
    position: relative;
    max-height: none;
    overflow: visible;
    scroll-behavior: smooth;
}

/* Loading State */
.wcf-loading {
    text-align: center;
    padding: 60px 20px;
}

.wcf-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: wcfSpin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes wcfSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.wcf-loading p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Product Details */
.wcf-product-details {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.wcf-product-image {
    flex: 0 0 350px;
    max-width: 100%;
}

.wcf-product-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    object-fit: cover;
}

.wcf-product-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wcf-product-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.wcf-product-price {
    font-size: 28px;
    font-weight: 700;
    color: #2c5aa0;
    margin: 0;
    padding: 12px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border-radius: 8px;
    display: inline-block;
    border-left: 4px solid #2c5aa0;
}

.wcf-product-price del {
    color: #999;
    font-size: 20px;
    margin-right: 12px;
    text-decoration: line-through;
}

.wcf-product-short-description {
    font-size: 17px;
    line-height: 1.7;
    color: #555;
    margin: 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.wcf-product-description {
    font-size: 15px;
    line-height: 1.8;
    color: #666;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 10px;
}

.wcf-product-description p {
    margin-bottom: 15px;
}

.wcf-product-description p:last-child {
    margin-bottom: 0;
}

/* Product Actions */
.wcf-product-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    justify-content: flex-end;
    width: 100%;
}

.wcf-product-actions .button,
.wcf-product-actions .wcf-view-full-page {
    padding: 12px 30px;
    background: #2c5aa0;
    color: #ffffff;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.wcf-product-actions .button:hover,
.wcf-product-actions .wcf-view-full-page:hover {
    background: #1e3f73;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(44, 90, 160, 0.3);
}

.wcf-view-full-page {
    background: #f0f0f0 !important;
    color: #333 !important;
}

.wcf-view-full-page:hover {
    background: #e0e0e0 !important;
}

/* Error Message */
.wcf-error {
    color: #d32f2f;
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wcf-popup-container {
        margin: 20px auto;
        max-width: 95%;
        border-radius: 12px;
    }
    
    .wcf-popup-content {
        padding: 30px 20px;
    }
    
    .wcf-product-details {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 30px;
        padding-bottom: 30px;
    }
    
    .wcf-product-image {
        flex: 1 1 100%;
        max-width: 100%;
    }
    
    .wcf-product-title {
        font-size: 26px;
    }
    
    .wcf-product-price {
        font-size: 24px;
    }
    
    .wcf-order-details-wrapper {
        padding: 20px;
        margin: 30px 0;
    }
    
    .wcf-order-title {
        font-size: 20px;
    }
    
    .wcf-product-actions {
        flex-direction: column;
        margin-top: 30px;
        padding-top: 30px;
    }
    
    .wcf-product-actions .button,
    .wcf-product-actions .wcf-view-full-page {
        width: 100%;
        text-align: center;
    }
    
    .wcf-proceed-checkout-btn {
        width: 100% !important;
        padding: 16px 30px !important;
    }
}

@media (max-width: 480px) {
    .wcf-popup-content {
        padding: 25px 15px;
    }
    
    .wcf-product-section,
    .wcf-checkout-section {
        padding: 20px 15px;
    }
    
    .wcf-close-btn {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 22px;
    }
    
    .wcf-product-title {
        font-size: 22px;
    }
    
    .wcf-product-price {
        font-size: 22px;
        padding: 10px 15px;
    }
    
    .wcf-order-details-wrapper {
        padding: 20px 15px;
    }
    
    .wcf-total-final .wcf-total-value {
        font-size: 20px;
    }
}

/* Combined Single-Step Popup Styles */
.wcf-combined-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.wcf-product-section {
    background: #f9f9f9;
    padding: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.wcf-combined-wrapper .wcf-product-details {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 100%;
    margin: 0;
}

.wcf-combined-wrapper .wcf-product-image {
    flex: 0 0 250px;
    max-width: 100%;
}

.wcf-combined-wrapper .wcf-product-info {
    flex: 1;
    min-width: 250px;
}

.wcf-combined-wrapper .wcf-product-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.wcf-combined-wrapper .wcf-product-price {
    font-size: 22px;
    margin-bottom: 15px;
}

.wcf-combined-wrapper .wcf-product-short-description {
    font-size: 15px;
    margin-bottom: 15px;
    max-height: 100px;
    overflow-y: auto;
}

.wcf-combined-wrapper .wcf-product-description {
    font-size: 14px;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 0;
}

.wcf-checkout-section {
    padding: 30px;
    background: #ffffff;
}

.wcf-combined-wrapper .wcf-checkout-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.wcf-combined-wrapper .wcf-checkout-title {
    font-size: 24px;
    margin: 0;
}

.wcf-combined-wrapper .wcf-checkout-content {
    width: 100%;
}

.wcf-combined-wrapper .wcf-checkout-form-wrapper {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

/* Responsive Product Popup */
@media (max-width: 1024px) {
    .wcf-popup-container {
        max-width: 95%;
    }
    
    .wcf-product-popup-wrapper .wcf-product-details {
        flex-direction: column;
    }
    
    .wcf-product-popup-wrapper .wcf-product-image {
        flex: 1 1 100%;
        max-width: 300px;
        margin: 0 auto 20px;
    }
}

@media (max-width: 768px) {
    .wcf-popup-container {
        max-width: 95%;
        margin: 20px auto;
    }
    
    .wcf-popup-content {
        padding: 30px 20px;
    }
    
    .wcf-product-popup-wrapper .wcf-product-title {
        font-size: 20px;
    }
    
    .wcf-order-details-wrapper {
        padding: 20px;
    }
    
    .wcf-proceed-checkout-btn {
        width: 100%;
        padding: 15px 30px !important;
    }
}

/* Product Tile Clickable Styles */
[data-elementor-type="loop-item"] {
    cursor: pointer !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    position: relative;
}

[data-elementor-type="loop-item"]:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Make sure nested containers don't block clicks */
[data-elementor-type="loop-item"] .e-con,
[data-elementor-type="loop-item"] .e-con-inner,
[data-elementor-type="loop-item"] .elementor-element,
[data-elementor-type="loop-item"] .elementor-widget {
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

/* Ensure buttons and links inside tiles have their own cursor */
[data-elementor-type="loop-item"] a,
[data-elementor-type="loop-item"] button {
    cursor: pointer !important;
    position: relative !important;
    z-index: 10 !important;
    pointer-events: auto !important;
}

/* Fallback for other product tiles */
.product,
.woocommerce ul.products li,
[class*="elementor-post"],
[class*="elementor-product"] {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product:hover,
.woocommerce ul.products li:hover,
[class*="elementor-post"]:hover,
[class*="elementor-product"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.product a,
.product button,
.woocommerce ul.products li a,
.woocommerce ul.products li button,
[class*="elementor-post"] a,
[class*="elementor-post"] button,
[class*="elementor-product"] a,
[class*="elementor-product"] button {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

/* Product Popup Wrapper */
.wcf-product-popup-wrapper {
    width: 100%;
}

.wcf-product-popup-wrapper .wcf-product-details {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

/* Order Details Wrapper */
.wcf-order-details-wrapper {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wcf-order-details-wrapper.wcf-updating {
    opacity: 0.6;
    pointer-events: none;
}

.wcf-order-details {
    width: 100%;
}

.wcf-order-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #1a1a1a;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c5aa0;
    letter-spacing: -0.3px;
}

.wcf-order-items {
    margin-bottom: 25px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
}

.wcf-order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
}

.wcf-order-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wcf-item-name {
    color: #333;
    flex: 1;
    font-weight: 500;
}

.wcf-item-price {
    color: #2c5aa0;
    font-weight: 600;
    margin-left: 20px;
    font-size: 17px;
}

.wcf-order-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e8e8e8;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
}

.wcf-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 16px;
}

.wcf-total-label {
    color: #666;
    font-weight: 500;
}

.wcf-total-value {
    color: #333;
    font-weight: 600;
    font-size: 17px;
}

.wcf-total-row.wcf-total-final {
    margin-top: 15px;
    padding-top: 20px;
    border-top: 2px solid #2c5aa0;
    font-size: 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    padding: 20px;
    border-radius: 8px;
    margin-left: -20px;
    margin-right: -20px;
    margin-bottom: -20px;
}

.wcf-total-final .wcf-total-label {
    font-weight: 700;
    color: #1a1a1a;
    font-size: 20px;
}

.wcf-total-final .wcf-total-value {
    font-weight: 700;
    color: #2c5aa0;
    font-size: 24px;
}

/* Proceed to Checkout Button */
.wcf-product-actions {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 2px solid #f0f0f0;
    text-align: right;
}

.wcf-proceed-checkout-btn {
    padding: 18px 50px !important;
    background: linear-gradient(135deg, #2c5aa0 0%, #1e3f73 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.3) !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.wcf-proceed-checkout-btn:hover {
    background: linear-gradient(135deg, #1e3f73 0%, #2c5aa0 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4) !important;
}

/* Checkout Form Styles */
.wcf-checkout-wrapper {
    max-width: 100%;
}

.wcf-checkout-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.wcf-checkout-title {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.wcf-checkout-content {
    width: 100%;
}

.wcf-checkout-form-wrapper {
    background: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
}

.wcf-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* WooCommerce Checkout Form Overrides */
.wcf-checkout-form-wrapper .woocommerce-checkout {
    margin: 0;
}

.wcf-checkout-form-wrapper .woocommerce-billing-fields,
.wcf-checkout-form-wrapper .woocommerce-shipping-fields,
.wcf-checkout-form-wrapper .woocommerce-additional-fields {
    margin-bottom: 20px;
}

.wcf-checkout-form-wrapper .form-row {
    margin-bottom: 15px;
}

.wcf-checkout-form-wrapper label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.wcf-checkout-form-wrapper input[type="text"],
.wcf-checkout-form-wrapper input[type="email"],
.wcf-checkout-form-wrapper input[type="tel"],
.wcf-checkout-form-wrapper input[type="password"],
.wcf-checkout-form-wrapper select,
.wcf-checkout-form-wrapper textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.wcf-checkout-form-wrapper input:focus,
.wcf-checkout-form-wrapper select:focus,
.wcf-checkout-form-wrapper textarea:focus {
    outline: none;
    border-color: #2c5aa0;
}

.wcf-checkout-form-wrapper .woocommerce-checkout-review-order {
    margin-top: 20px;
    background: #ffffff;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.wcf-checkout-form-wrapper #order_review_heading {
    font-size: 18px;
    font-weight: 600;
    margin: 20px 0 15px 0;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* Payment Methods in Checkout Form */
.wcf-checkout-form-wrapper .woocommerce-checkout-payment {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.wcf-checkout-form-wrapper .woocommerce-checkout-payment .wc_payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.wcf-checkout-form-wrapper .woocommerce-checkout-payment .wc_payment_methods li {
    margin-bottom: 15px;
    padding: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.wcf-checkout-form-wrapper .woocommerce-checkout-payment .wc_payment_methods li.wc_payment_method {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wcf-checkout-form-wrapper .woocommerce-checkout-payment .wc_payment_methods li input[type="radio"] {
    margin-right: 10px;
}

.wcf-checkout-form-wrapper .woocommerce-checkout-payment .payment_box {
    margin-top: 10px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.wcf-checkout-form-wrapper .woocommerce-checkout-payment .place-order {
    margin-top: 20px;
}

.wcf-checkout-form-wrapper .woocommerce-checkout-payment #place_order {
    width: 100%;
    padding: 15px;
    background: #2c5aa0;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wcf-checkout-form-wrapper .woocommerce-checkout-payment #place_order:hover {
    background: #1e3f73;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(44, 90, 160, 0.3);
}

/* Invoice Details */
.wcf-invoice-details {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.wcf-invoice-item {
    display: flex;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.wcf-invoice-item-image {
    flex: 0 0 80px;
}

.wcf-invoice-item-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.wcf-invoice-item-details {
    flex: 1;
}

.wcf-invoice-item-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #333;
}

.wcf-invoice-item-price {
    font-size: 18px;
    font-weight: 700;
    color: #2c5aa0;
}

.wcf-invoice-totals {
    margin-bottom: 25px;
}

.wcf-invoice-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
}

.wcf-invoice-label {
    color: #666;
}

.wcf-invoice-value {
    font-weight: 600;
    color: #333;
}

.wcf-invoice-row.wcf-invoice-total {
    border-top: 2px solid #e0e0e0;
    padding-top: 15px;
    margin-top: 10px;
    font-size: 18px;
}

.wcf-invoice-total .wcf-invoice-label {
    font-weight: 700;
    color: #333;
}

.wcf-invoice-total .wcf-invoice-value {
    font-size: 20px;
    color: #2c5aa0;
}

/* Payment Methods */
.wcf-payment-methods {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #e0e0e0;
}

.wcf-payment-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #333;
}

.wcf-payment-gateways {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wcf-payment-gateway {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wcf-payment-gateway:hover {
    background: #f0f0f0;
    border-color: #2c5aa0;
}

.wcf-gateway-icon {
    flex: 0 0 auto;
}

.wcf-gateway-icon img {
    max-height: 24px;
    width: auto;
}

.wcf-gateway-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
}

.wcf-no-payment {
    color: #999;
    font-style: italic;
    margin: 0;
    padding: 15px;
    text-align: center;
    background: #f9f9f9;
    border-radius: 4px;
}

/* Checkout Button */
.wcf-checkout-btn {
    background: #2c5aa0 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.wcf-checkout-btn:hover {
    background: #1e3f73 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(44, 90, 160, 0.3);
}

/* Upsells Section */
.wcf-upsells-section {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    border: 2px solid #e8e8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.wcf-upsells-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 25px 0;
    color: #1a1a1a;
    padding-bottom: 15px;
    border-bottom: 2px solid #2c5aa0;
    letter-spacing: -0.3px;
}

.wcf-upsells-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.wcf-upsell-item {
    margin: 0;
}

.wcf-upsell-checkbox {
    display: block;
    cursor: pointer;
    margin: 0;
}

.wcf-upsell-checkbox input[type="checkbox"] {
    display: none;
}

.wcf-upsell-content {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.wcf-upsell-checkbox:hover .wcf-upsell-content {
    border-color: #2c5aa0;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.1);
}

.wcf-upsell-checkbox input[type="checkbox"]:checked + .wcf-upsell-content {
    border-color: #2c5aa0;
    background: #f0f7ff;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2);
}

.wcf-upsell-image {
    flex: 0 0 60px;
    height: 60px;
    overflow: hidden;
    border-radius: 4px;
}

.wcf-upsell-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wcf-upsell-info {
    flex: 1;
    min-width: 0;
}

.wcf-upsell-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wcf-upsell-price {
    font-size: 15px;
    font-weight: 700;
    color: #2c5aa0;
    margin-top: 5px;
}

.wcf-upsell-checkbox input[type="checkbox"]:checked + .wcf-upsell-content .wcf-upsell-title {
    color: #2c5aa0;
}

/* Responsive Checkout */
@media (max-width: 1024px) {
    .wcf-checkout-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .wcf-popup-container {
        max-width: 95%;
    }
    
    .wcf-checkout-form-wrapper,
    .wcf-invoice-details {
        padding: 20px;
    }
    
    .wcf-checkout-title {
        font-size: 24px;
    }
    
    .wcf-section-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .wcf-checkout-form-wrapper,
    .wcf-invoice-details {
        padding: 15px;
    }
    
    .wcf-invoice-item {
        flex-direction: column;
    }
    
    .wcf-invoice-item-image {
        flex: 1 1 100%;
        max-width: 120px;
    }
}

