/**
 * WC Product Recommendations - Cart Popup Styles
 * Version 3.13 - Larger cards, arrows below, smaller action buttons
 */

/* Hide WooCommerce default "added to cart" notices - our popup handles this */
.woocommerce-message,
.woocommerce-info,
.wc-block-components-notice-banner,
.wc-block-components-notice-banner--success,
div.woocommerce-message[role="alert"],
.woocommerce-notices-wrapper .woocommerce-message {
    display: none !important;
    visibility: hidden !important;
}

/* Prevent body scroll when popup is open */
body.wc-rec-popup-open {
    overflow: hidden !important;
}

/* ============================================
   POPUP CONTAINER
   ============================================ */
.wc-rec-popup {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 999999 !important;
    display: none;
    justify-content: flex-end !important;
}

.wc-rec-popup.active {
    display: flex !important;
}

/* Overlay */
.wc-rec-popup-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    cursor: pointer !important;
    animation: wc-rec-fadeIn 0.2s ease !important;
}

@keyframes wc-rec-fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   SIDEBAR
   ============================================ */
.wc-rec-popup-sidebar {
    position: relative !important;
    width: 100% !important;
    max-width: 560px !important;
    height: 100% !important;
    background: #fff !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: column !important;
    z-index: 2 !important;
    transform: translateX(100%) !important;
    transition: transform 0.3s ease !important;
}

.wc-rec-popup-sidebar.open {
    transform: translateX(0) !important;
}

/* ============================================
   HEADER - GREEN SUCCESS (compact)
   ============================================ */
.wc-rec-popup-header {
    background: linear-gradient(135deg, #5a8f2a 0%, #82bb41 100%) !important;
    padding: 14px 20px !important;
    color: white !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

.wc-rec-popup-header-main {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 4px !important;
}

.wc-rec-popup-header-icon {
    width: 24px !important;
    height: 24px !important;
    background: rgba(255,255,255,0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.wc-rec-popup-header-icon svg {
    width: 14px !important;
    height: 14px !important;
    stroke: white !important;
}

.wc-rec-popup-header h3 {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin: 0 !important;
    color: white !important;
}

.wc-rec-popup-header-sub {
    font-size: 12px !important;
    opacity: 0.9 !important;
    margin-left: 34px !important;
}

.wc-rec-popup-close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: none !important;
    border: none !important;
    padding: 8px !important;
    cursor: pointer !important;
    color: white !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.wc-rec-popup-close:hover {
    background: rgba(255,255,255,0.2) !important;
}

.wc-rec-popup-close svg {
    stroke: white !important;
}

/* ============================================
   CONTENT
   ============================================ */
.wc-rec-popup-content {
    flex: 1 !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Loading spinner */
.wc-rec-popup-loading {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 60px 20px !important;
}

.wc-rec-spinner {
    width: 40px !important;
    height: 40px !important;
    border: 3px solid #e5e5e5 !important;
    border-top-color: #82bb41 !important;
    border-radius: 50% !important;
    animation: wc-rec-spin 0.8s linear infinite !important;
}

@keyframes wc-rec-spin {
    to { transform: rotate(360deg); }
}

/* Loading logo animation (replaces spinner) */
.wc-rec-loading-logo {
    width: 60px !important;
    height: 60px !important;
    animation: wc-rec-spin 1.2s ease-in-out infinite !important;
}

/* ============================================
   ADDED PRODUCT - MAIN DISPLAY (compact)
   ============================================ */
.wc-rec-popup-product {
    padding: 16px 20px !important;
    border-bottom: 1px solid #eee !important;
}

.wc-rec-popup-product-row {
    display: flex !important;
    gap: 14px !important;
    align-items: flex-start !important;
}

.wc-rec-popup-product-image {
    width: 70px !important;
    height: 70px !important;
    flex-shrink: 0 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    border: 1px solid #eee !important;
    background: #f9f9f9 !important;
}

.wc-rec-popup-product-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

.wc-rec-popup-product-details {
    flex: 1 !important;
    min-width: 0 !important;
}

.wc-rec-popup-product-name {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    line-height: 1.3 !important;
}

.wc-rec-popup-product-qty-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.wc-rec-popup-qty-control {
    display: flex !important;
    align-items: center !important;
    border: 1px solid #ddd !important;
    border-radius: 6px !important;
    overflow: hidden !important;
}

.wc-rec-popup-qty-btn {
    width: 28px !important;
    height: 28px !important;
    border: none !important;
    background: #f5f5f5 !important;
    cursor: pointer !important;
    font-size: 16px !important;
    color: #666 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.2s ease !important;
}

.wc-rec-popup-qty-btn:hover {
    background: #eee !important;
}

.wc-rec-popup-qty-btn:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

.wc-rec-popup-qty-value {
    width: 40px !important;
    text-align: center !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    border: none !important;
    border-left: 1px solid #ddd !important;
    border-right: 1px solid #ddd !important;
    height: 28px !important;
    line-height: 28px !important;
    background: #fff !important;
    padding: 0 4px !important;
    -moz-appearance: textfield !important; /* Hide spinners in Firefox */
}

/* Hide number input spinners */
.wc-rec-popup-qty-value::-webkit-outer-spin-button,
.wc-rec-popup-qty-value::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

.wc-rec-popup-product-price {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

/* ============================================
   SUBTOTAL (compact)
   ============================================ */
.wc-rec-popup-subtotal {
    padding: 12px 20px !important;
    border-bottom: 1px solid #eee !important;
    background: #fafafa !important;
}

.wc-rec-popup-subtotal-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0 !important;
}

.wc-rec-popup-subtotal-label {
    font-size: 13px !important;
    color: #666 !important;
}

.wc-rec-popup-subtotal-value {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #333 !important;
}

/* MwSt row removed in v3.1 */

/* ============================================
   ACTION BUTTONS - SMALLER
   ============================================ */
.wc-rec-popup-actions {
    padding: 12px 20px !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    border-bottom: 1px solid #eee !important;
}

.wc-rec-popup-btn {
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-align: center !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: block !important;
    border: none !important;
    flex: 1 !important;
}

.wc-rec-popup-btn-primary {
    background: #82bb41 !important;
    color: #fff !important;
}

.wc-rec-popup-btn-primary:hover {
    background: #6ea832 !important;
    color: #fff !important;
}

.wc-rec-popup-btn-secondary {
    background: #fff !important;
    color: #333 !important;
    border: 2px solid #ddd !important;
}

.wc-rec-popup-btn-secondary:hover {
    border-color: #82bb41 !important;
    color: #82bb41 !important;
}

/* ============================================
   RECOMMENDATIONS - Larger cards, arrows below
   ============================================ */
.wc-rec-popup-recommendations {
    padding: 16px !important;
    margin: 14px !important;
    flex: 0 0 auto !important;
    background: #f9f9f9 !important;
    border: none !important;
    border-radius: 10px !important;
}

.wc-rec-popup-recommendations h4 {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #333 !important;
    margin: 0 0 14px 0 !important;
    text-align: center !important;
}

/* Slider wrapper - vertical layout with arrows below */
.wc-rec-popup-rec-wrapper {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

/* Arrow navigation container - positioned below cards */
.wc-rec-popup-rec-nav-container {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
}

.wc-rec-popup-rec-nav {
    flex-shrink: 0 !important;
    width: 32px !important;
    height: 32px !important;
    border: none !important;
    border-radius: 50% !important;
    background: #82bb41 !important;
    color: #fff !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    padding: 0 !important;
    transition: all 0.2s ease !important;
}

.wc-rec-popup-rec-nav:hover {
    background: #6ea832 !important;
}

.wc-rec-popup-rec-nav:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
}

.wc-rec-popup-rec-nav svg {
    width: 14px !important;
    height: 14px !important;
}

.wc-rec-popup-rec-scroll {
    display: flex !important;
    gap: 14px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding-bottom: 8px !important;
    margin: 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: #ccc #f1f1f1 !important;
    scroll-behavior: smooth !important;
}

.wc-rec-popup-rec-scroll::-webkit-scrollbar {
    height: 4px !important;
}

.wc-rec-popup-rec-scroll::-webkit-scrollbar-track {
    background: #f1f1f1 !important;
    border-radius: 2px !important;
}

.wc-rec-popup-rec-scroll::-webkit-scrollbar-thumb {
    background: #ccc !important;
    border-radius: 2px !important;
}

/* Larger product cards */
.wc-rec-popup-rec-item {
    flex: 0 0 160px !important;
    background: #fff !important;
    border-radius: 8px !important;
    border: 1px solid #eee !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05) !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}

.wc-rec-popup-rec-item:hover {
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    transform: translateY(-2px) !important;
}

.wc-rec-popup-rec-image {
    display: block !important;
    position: relative !important; /* For badge positioning */
    width: 100% !important;
    height: 120px !important;
    background: #f9f9f9 !important;
}

.wc-rec-popup-rec-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* SALE Badge in popup recommendations - ROUND like main badges */
.wc-rec-popup-rec-image .onsale,
.wc-rec-popup-rec-image .wc-rec-badge-sale {
    position: absolute !important;
    top: 5px !important;
    left: 5px !important;
    font-size: 9px !important;
    padding: 4px 8px !important;
    z-index: 10 !important;
    border-radius: 100px !important; /* Round like main badges */
    background: #c00 !important;
    color: #fff !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    min-width: auto !important;
    text-transform: uppercase !important;
}

.wc-rec-popup-rec-details {
    padding: 12px !important;
}

.wc-rec-popup-rec-name {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
    text-decoration: none !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 32px !important;
    margin-bottom: 8px !important;
}

.wc-rec-popup-rec-name:hover {
    color: #82bb41 !important;
}

/* SKU / Article number */
.wc-rec-popup-rec-sku {
    font-size: 10px !important;
    color: #888 !important;
    margin-bottom: 6px !important;
}

.wc-rec-popup-rec-price {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #82bb41 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}

/* Old price (del) - LEFT side, smaller, gray, strikethrough */
.wc-rec-popup-rec-price del {
    color: #999 !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    display: inline-block !important;
    text-decoration: line-through !important;
    order: 1 !important; /* Ensures old price is first (left) */
}

/* Sale price (ins) - RIGHT side, bigger */
.wc-rec-popup-rec-price ins {
    text-decoration: none !important;
    display: inline-block !important;
    order: 2 !important; /* Ensures new price is second (right) */
    color: #c00 !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

/* Stock status */
.wc-rec-popup-rec-stock {
    font-size: 11px !important;
    color: #82bb41 !important;
    margin-bottom: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

.wc-rec-popup-rec-stock svg {
    width: 12px !important;
    height: 12px !important;
}

.wc-rec-popup-rec-stock.out-of-stock {
    color: #c00 !important;
}

.wc-rec-popup-add-to-cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 8px 6px !important;
    background: #82bb41 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.wc-rec-popup-add-to-cart:hover {
    background: #6ea832 !important;
}

.wc-rec-popup-add-to-cart.loading {
    opacity: 0.7 !important;
    pointer-events: none !important;
}

.wc-rec-popup-add-to-cart svg {
    width: 12px !important;
    height: 12px !important;
}

/* Sold out / disabled button - same size as normal button */
.wc-rec-popup-add-to-cart-disabled {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
    width: 100% !important;
    padding: 8px 6px !important;
    background: #999 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    box-sizing: border-box !important;
}

.wc-rec-popup-add-to-cart-disabled svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
}

/* No recommendations message */
.wc-rec-popup-no-recommendations {
    text-align: center !important;
    padding: 20px !important;
    color: #666 !important;
    font-size: 14px !important;
}

/* ============================================
   ADD TO CART BUTTON in POPUP - Responsive
   ============================================ */
.wc-rec-popup-rec-item .wc-rec-add-to-cart-btn,
.wc-rec-popup-rec-item .add_to_cart_button {
    font-size: 10px !important;
    padding: 6px 8px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    line-height: 16px !important;
    gap: 4px !important;
}

.wc-rec-popup-rec-item .wc-rec-add-to-cart-btn svg,
.wc-rec-popup-rec-item .add_to_cart_button svg {
    width: 10px !important;
    height: 10px !important;
}

/* ============================================
   FOOTER - TRUST BADGES (compact)
   ============================================ */
.wc-rec-popup-footer {
    padding: 14px 20px !important;
    background: #fafafa !important;
    border-top: 1px solid #eee !important;
    flex-shrink: 0 !important;
}

/* Payment Methods Grid */
.wc-rec-popup-payment {
    margin-bottom: 12px !important;
}

.wc-rec-popup-payment-title {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #333 !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.wc-rec-popup-payment-title svg {
    width: 16px !important;
    height: 16px !important;
    color: #82bb41 !important;
}

.wc-rec-popup-payment-icons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

.wc-rec-popup-payment-icon {
    height: 28px !important;
    padding: 2px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 5px !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.wc-rec-popup-payment-icon svg {
    width: 38px !important;
    height: 24px !important;
    display: block !important;
}

/* Trust Badge - ProvenExpert Logo */
.wc-rec-popup-trust {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #eee !important;
}

.wc-rec-popup-trust-badge {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.wc-rec-popup-pe-logo {
    height: 38px !important;
    width: auto !important;
    display: block !important;
}

.wc-rec-popup-pe-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

.wc-rec-popup-pe-reviews {
    font-size: 11px !important;
    color: #666 !important;
    white-space: nowrap !important;
}

.wc-rec-popup-pe-link:hover .wc-rec-popup-pe-reviews {
    color: #82bb41 !important;
}

.wc-rec-popup-trust-badge a:not(.wc-rec-popup-pe-link) {
    display: block !important;
    line-height: 0 !important;
}

/* Security Badge - Hidden on desktop (shown in shipping row instead) */
.wc-rec-popup-security {
    display: none !important; /* Hidden on desktop - SSL shown in shipping row */
    align-items: center !important;
    gap: 8px !important;
    font-size: 11px !important;
    color: #666 !important;
    margin-left: auto !important;
}

.wc-rec-popup-security svg {
    width: 18px !important;
    height: 18px !important;
    color: #82bb41 !important;
}

/* Shipping & SSL row container */
.wc-rec-popup-shipping-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    font-size: 11px !important;
    color: #666 !important;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid #eee !important;
}

/* Shipping info (left side) */
.wc-rec-popup-shipping {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.wc-rec-popup-shipping svg {
    width: 14px !important;
    height: 14px !important;
    color: #82bb41 !important;
    flex-shrink: 0 !important;
}

.wc-rec-popup-shipping-text {
    text-align: left !important;
}

/* SSL info (right side, same row) */
.wc-rec-popup-ssl {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 4px !important;
    font-size: 10px !important;
    color: #666 !important;
    white-space: nowrap !important;
}

.wc-rec-popup-ssl svg {
    width: 12px !important;
    height: 12px !important;
    color: #82bb41 !important;
    flex-shrink: 0 !important;
}

/* OLD: SSL row - no longer needed, keeping for backwards compat */
.wc-rec-popup-ssl-row {
    display: none !important;
}

/* ============================================
   ERROR STATE
   ============================================ */
.wc-rec-popup-error {
    text-align: center !important;
    padding: 40px 20px !important;
    color: #c00 !important;
}

/* ============================================
   MOBILE RESPONSIVE - COMPACT VERSION
   ============================================ */
@media (max-width: 600px) {
    .wc-rec-popup-sidebar {
        max-width: 100% !important;
    }

    /* HEADER - Compact */
    .wc-rec-popup-header {
        padding: 12px 16px !important;
    }

    .wc-rec-popup-header-main {
        margin-bottom: 4px !important;
        gap: 8px !important;
    }

    .wc-rec-popup-header-icon {
        width: 22px !important;
        height: 22px !important;
    }

    .wc-rec-popup-header-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .wc-rec-popup-header h3 {
        font-size: 13px !important;
        white-space: nowrap !important;
    }

    .wc-rec-popup-header-sub {
        font-size: 11px !important;
        margin-left: 30px !important;
    }

    .wc-rec-popup-close {
        top: 50% !important;
        right: 16px !important;
        left: auto !important;
        transform: translateY(-50%) !important;
        padding: 10px !important;
        width: 40px !important;
        height: 40px !important;
    }

    .wc-rec-popup-close svg {
        width: 20px !important;
        height: 20px !important;
    }

    /* PRODUCT - Compact */
    .wc-rec-popup-product {
        padding: 12px 16px !important;
    }

    .wc-rec-popup-product-row {
        gap: 12px !important;
    }

    .wc-rec-popup-product-image {
        width: 60px !important;
        height: 60px !important;
    }

    .wc-rec-popup-product-name {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    .wc-rec-popup-qty-btn {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }

    .wc-rec-popup-qty-value {
        width: 32px !important;
        height: 28px !important;
        line-height: 28px !important;
        font-size: 13px !important;
    }

    .wc-rec-popup-product-price {
        font-size: 16px !important;
    }

    /* SUBTOTAL - Compact */
    .wc-rec-popup-subtotal {
        padding: 10px 16px !important;
    }

    .wc-rec-popup-subtotal-label {
        font-size: 13px !important;
    }

    .wc-rec-popup-subtotal-value {
        font-size: 16px !important;
    }

    /* ACTION BUTTONS - Side by side, smaller */
    .wc-rec-popup-actions {
        padding: 12px 16px !important;
        flex-direction: row !important;
        gap: 8px !important;
    }

    .wc-rec-popup-btn {
        padding: 10px 12px !important;
        font-size: 12px !important;
        flex: 1 !important;
        border-radius: 6px !important;
    }

    /* RECOMMENDATIONS - Compact */
    .wc-rec-popup-recommendations {
        margin: 10px 12px !important;
        padding: 12px !important;
    }

    .wc-rec-popup-recommendations h4 {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .wc-rec-popup-rec-item {
        flex: 0 0 140px !important;
        min-width: 140px !important;
    }

    .wc-rec-popup-rec-image {
        height: 90px !important;
    }

    .wc-rec-popup-rec-details {
        padding: 8px !important;
    }

    .wc-rec-popup-rec-name {
        font-size: 10px !important;
        min-height: 26px !important;
        margin-bottom: 4px !important;
        -webkit-line-clamp: 2 !important;
    }

    .wc-rec-popup-rec-price {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }

    .wc-rec-popup-add-to-cart {
        padding: 6px 8px !important;
        font-size: 9px !important;
        gap: 3px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }

    .wc-rec-popup-add-to-cart svg {
        width: 10px !important;
        height: 10px !important;
        flex-shrink: 0 !important;
    }

    /* Hide arrows on mobile */
    .wc-rec-popup-rec-nav {
        display: none !important;
    }

    /* FOOTER - LARGER for better readability on mobile */
    .wc-rec-popup-footer {
        padding: 16px 20px !important;
    }

    .wc-rec-popup-payment {
        margin-bottom: 14px !important;
    }

    .wc-rec-popup-payment-title {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
    }

    .wc-rec-popup-payment-title svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Show only 5 payment icons on mobile - LARGER */
    .wc-rec-popup-payment-icons {
        gap: 6px !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
    }

    .wc-rec-popup-payment-icon {
        height: 28px !important;
        padding: 2px !important;
    }

    .wc-rec-popup-payment-icon svg {
        width: 38px !important;
        height: 24px !important;
    }

    /* Hide some payment icons on mobile (keep: Visa, Mastercard, PayPal, Klarna, Apple Pay) */
    .wc-rec-popup-payment-icon:nth-child(1), /* AMEX */
    .wc-rec-popup-payment-icon:nth-child(2), /* Diners */
    .wc-rec-popup-payment-icon:nth-child(8)  /* Sofort */ {
        display: none !important;
    }

    /* TRUST SECTION - LARGER - Vertical layout on mobile */
    .wc-rec-popup-trust {
        padding-top: 12px !important;
        gap: 10px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .wc-rec-popup-pe-logo {
        height: 40px !important;
    }

    .wc-rec-popup-pe-reviews {
        font-size: 11px !important;
    }

    .wc-rec-popup-pe-link {
        flex-direction: row !important;
        gap: 8px !important;
    }

    .wc-rec-popup-security {
        font-size: 11px !important;
        gap: 6px !important;
        margin-left: 0 !important;
        justify-content: flex-end !important;
    }

    .wc-rec-popup-security svg {
        width: 14px !important;
        height: 14px !important;
    }

    /* SHIPPING ROW - both elements on same line on mobile too */
    .wc-rec-popup-shipping-row {
        margin-top: 8px !important;
        padding-top: 8px !important;
        font-size: 10px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .wc-rec-popup-shipping {
        font-size: 10px !important;
        gap: 4px !important;
    }

    .wc-rec-popup-shipping svg {
        width: 12px !important;
        height: 12px !important;
        flex-shrink: 0 !important;
    }

    .wc-rec-popup-shipping-text {
        text-align: left !important;
    }

    .wc-rec-popup-ssl {
        font-size: 9px !important;
        gap: 3px !important;
    }

    .wc-rec-popup-ssl svg {
        width: 10px !important;
        height: 10px !important;
    }

    /* OLD: SSL row no longer used */
    .wc-rec-popup-ssl-row {
        display: none !important;
    }

    /* Hide desktop SSL in trust section on mobile */
    .wc-rec-popup-trust .wc-rec-popup-security {
        display: none !important;
    }
}


/* Retry button for connection errors */
.wc-rec-popup-error-container {
    text-align: center;
    padding: 20px;
}

.wc-rec-popup-retry-btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.wc-rec-popup-retry-btn:hover {
    background: #005a87;
}
