/**
 * Plantscount Upsell Widget v7.0 CSS
 * Carousel-based pot selector with price breakdown
 */

:root {
    --pc-forest: #2D5A3D;
    --pc-forest-dark: #1E3D29;
    --pc-cream: #FDFAF5;
    --pc-sand: #F5F1E8;
    --pc-stone: #6B6B68;
    --pc-bark: #3D3229;
    --pc-white: #FFFFFF;
    --pc-border: #E5E8E0;
    --pc-success: #2E7D32;
    --pc-warning: #F5A623;
    --pc-health-green: #E8F5E9;
    --pc-health-green-dark: #C8E6C9;
}

/* ===== Main Container ===== */
.pc-upsell {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background: var(--pc-cream);
    border: 2px solid var(--pc-forest);
    border-radius: 12px;
    padding: 0;
    margin: 16px 0;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
    /* CRITICAL: Keep widget within its container, don't overlap gallery */
    position: relative;
    z-index: auto; /* Let parent stacking context handle z-index */
    isolation: isolate; /* Create local stacking context for children */
}

/* Accordion mode: no border, trigger handles the visual boundary */
.pc-upsell--accordion {
    border: none;
    background: transparent;
    overflow: visible;
    border-radius: 0;
}

/* ===== Accordion Trigger ===== */
.pc-upsell__accordion-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: var(--pc-sand);
    color: var(--pc-bark);
    border: 1px solid var(--pc-border);
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    line-height: 1.3;
    text-align: left;
    transition: all 0.2s ease;
    gap: 12px;
}

.pc-upsell--accordion.is-open .pc-upsell__accordion-trigger {
    border-radius: 8px 8px 0 0;
    border-bottom-color: transparent;
}

.pc-upsell__accordion-trigger:hover {
    background: var(--pc-health-green);
    border-color: var(--pc-forest);
}

.pc-upsell__accordion-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--pc-bark);
}

.pc-upsell__accordion-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pc-upsell__accordion-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--pc-forest);
    background: var(--pc-health-green);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.pc-upsell__accordion-chevron {
    display: flex;
    align-items: center;
    color: var(--pc-stone);
    transition: transform 0.3s ease;
}

.pc-upsell--accordion.is-open .pc-upsell__accordion-chevron {
    transform: rotate(180deg);
}

/* ===== Accordion Body ===== */
.pc-upsell__accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    border: 1px solid var(--pc-border);
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.pc-upsell--accordion:not(.is-open) .pc-upsell__accordion-body {
    border: none;
}

.pc-upsell--accordion.is-open .pc-upsell__accordion-body {
    max-height: 1200px;
    opacity: 1;
}

/* ===== OLD Header Bar - hidden in accordion mode ===== */
.pc-upsell--accordion .pc-upsell__header-bar {
    display: none;
}

.pc-upsell--accordion .pc-upsell__trust-micro {
    display: none;
}

/* ===== Selection Details: revealed on pot click ===== */
.pc-upsell__selection-details {
    animation: pcSlideDown 0.3s ease;
}

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

/* ===== Tabs ===== */
.pc-upsell__tabs {
    display: flex;
    padding: 8px 12px;
    gap: 8px;
    background: var(--pc-white);
    border-bottom: 1px solid var(--pc-border);
}

.pc-upsell__tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 8px;
    background: var(--pc-sand);
    border: 2px solid var(--pc-border);
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pc-bark);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.pc-upsell__tab:hover:not(.pc-upsell__tab--active) {
    background: var(--pc-cream);
    border-color: var(--pc-forest);
    color: var(--pc-bark);
}

.pc-upsell__tab--active {
    background: var(--pc-forest);
    border-color: var(--pc-forest);
    color: var(--pc-white);
}

.pc-upsell__tab--active:hover {
    background: var(--pc-forest-dark);
    border-color: var(--pc-forest-dark);
    color: var(--pc-white);
}

.pc-upsell__tab-label {
    font-weight: 600;
}

.pc-upsell__tab-info {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.8;
}

.pc-upsell__tab-recommended {
    position: absolute;
    top: -8px;
    right: -4px;
    background: #FF6B35;
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.pc-upsell__tab--active .pc-upsell__tab-recommended {
    background: #FF8A5B;
}

/* ===== Content ===== */
.pc-upsell__content {
    display: none;
    padding: 12px 0;
    background: var(--pc-white);
}

.pc-upsell__content--active {
    display: block;
}

/* ===== Carousel ===== */
.pc-upsell__carousel-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px;
}

.pc-upsell__carousel {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
    padding: 4px 8px;
}

.pc-upsell__carousel::-webkit-scrollbar {
    display: none;
}

.pc-upsell__nav {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pc-white);
    border: 1px solid var(--pc-border);
    border-radius: 50%;
    color: var(--pc-bark);
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-upsell__nav:hover:not(:disabled) {
    background: var(--pc-forest);
    border-color: var(--pc-forest);
    color: var(--pc-white);
}

.pc-upsell__nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ===== Pot Cards ===== */
.pc-upsell__card {
    flex: 0 0 105px;
    scroll-snap-align: start;
    background: var(--pc-white);
    border: 2px solid var(--pc-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}

/* Compact cards in accordion mode */
.pc-upsell--accordion .pc-upsell__card {
    flex: 0 0 90px;
}

.pc-upsell--accordion .pc-upsell__card-img {
    aspect-ratio: 1;
}

.pc-upsell--accordion .pc-upsell__card-body {
    padding: 6px 8px;
}

.pc-upsell--accordion .pc-upsell__card-name {
    font-size: 0.7rem;
    margin-bottom: 2px;
    -webkit-line-clamp: 1;
}

.pc-upsell--accordion .pc-upsell__card-dims {
    font-size: 0.65rem;
    margin-bottom: 2px;
}

.pc-upsell--accordion .pc-upsell__card-price {
    font-size: 0.75rem;
}

.pc-upsell__card:hover {
    border-color: var(--pc-forest);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 90, 61, 0.12);
}

.pc-upsell__card.is-selected {
    border-color: var(--pc-forest);
    box-shadow: 0 0 0 3px rgba(45, 90, 61, 0.2);
}

.pc-upsell__card-img {
    position: relative;
    aspect-ratio: 1;
    background: var(--pc-sand);
    overflow: hidden;
}

.pc-upsell__card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-upsell__card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-stone);
}

.pc-upsell__card-check {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pc-forest);
    border-radius: 50%;
    color: var(--pc-white);
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.pc-upsell__card.is-selected .pc-upsell__card-check {
    opacity: 1;
    transform: scale(1);
}

/* Visualizer Icon */
.pc-upsell__visualize-icon {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    color: var(--pc-bark);
    cursor: pointer;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.pc-upsell__card:hover .pc-upsell__visualize-icon {
    opacity: 1;
    transform: scale(1);
}

.pc-upsell__visualize-icon:hover {
    background: var(--pc-forest);
    color: var(--pc-white);
}

.pc-upsell__card-body {
    padding: 10px;
}

.pc-upsell__card-name {
    margin: 0 0 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--pc-bark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-upsell__card-dims {
    font-size: 0.7rem;
    color: var(--pc-stone);
    margin-bottom: 4px;
}

.pc-upsell__card-price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--pc-forest);
}

/* ===== View All Link ===== */
/* View all link - removed, keeping selector for backwards compat */
.pc-upsell__view-all-link {
    display: none;
}

/* ===== Price Breakdown ===== */
.pc-upsell__breakdown {
    padding: 14px 16px;
    background: var(--pc-sand);
    border-top: 1px solid var(--pc-border);
}

.pc-upsell__breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    font-size: 0.85rem;
    color: var(--pc-bark);
}

.pc-upsell__breakdown-row--sub {
    font-size: 0.8rem;
    color: var(--pc-stone);
    padding-left: 12px;
}

.pc-upsell__breakdown-row--discount {
    color: var(--pc-success);
    font-weight: 600;
}

.pc-upsell__breakdown-extras {
    border-top: 1px dashed var(--pc-border);
    margin-top: 6px;
    padding-top: 6px;
}

.pc-upsell__breakdown-total {
    display: flex;
    justify-content: space-between;
    padding: 10px 0 0;
    margin-top: 8px;
    border-top: 2px solid var(--pc-border);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--pc-bark);
}

.pc-upsell__breakdown-total span:last-child {
    color: var(--pc-forest);
    font-size: 1.1rem;
}

/* ===== Primary CTA ===== */
.pc-upsell__cta-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 32px);
    margin: 14px 16px 8px;
    padding: 14px 20px;
    background: var(--pc-forest);
    border: none;
    border-radius: 10px;
    color: var(--pc-white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-upsell__cta-primary:hover:not(:disabled) {
    background: var(--pc-forest-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.3);
}

.pc-upsell__cta-primary:disabled {
    background: var(--pc-stone);
    cursor: not-allowed;
    opacity: 0.6;
}

.pc-upsell__cta-icon {
    font-size: 1.1rem;
}

.pc-upsell__cta-text {
    flex: 1;
    text-align: left;
}

.pc-upsell__cta-separator {
    opacity: 0.5;
}

.pc-upsell__cta-price {
    font-weight: 700;
}

/* ===== Shipping Note ===== */
.pc-upsell__shipping {
    text-align: center;
    padding: 6px 16px;
    font-size: 0.75rem;
    color: var(--pc-stone);
}

.pc-upsell__shipping--free {
    color: var(--pc-success);
    font-weight: 600;
}

/* ===== Secondary CTA ===== */
.pc-upsell__cta-secondary {
    display: block;
    width: calc(100% - 32px);
    margin: 0 16px 14px;
    padding: 10px 16px;
    background: transparent;
    border: 1px solid var(--pc-border);
    border-radius: 8px;
    color: var(--pc-stone);
    font-family: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pc-upsell__cta-secondary:hover {
    background: var(--pc-sand);
    border-color: var(--pc-stone);
    color: var(--pc-bark);
}

/* ===== Empty State ===== */
.pc-upsell__empty {
    padding: 16px;
    text-align: center;
    color: var(--pc-stone);
    font-size: 0.8rem;
}

/* ===== Compact Footer (for plants widget) ===== */
.pc-upsell__footer-compact {
    padding: 8px 14px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--pc-stone);
    background: var(--pc-sand);
    border-top: 1px solid var(--pc-border);
}

/* ===== Responsive ===== */
@media (max-width: 480px) {
    /* Accordion mobile */
    .pc-upsell__accordion-trigger {
        padding: 10px 12px;
    }

    .pc-upsell__accordion-title {
        font-size: 0.82rem;
    }

    .pc-upsell__accordion-badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .pc-upsell__header-bar {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .pc-upsell__tabs {
        padding: 6px 10px;
        gap: 6px;
    }

    .pc-upsell__tab {
        padding: 6px 6px;
        font-size: 0.75rem;
    }

    .pc-upsell__tab-info {
        font-size: 0.65rem;
    }

    .pc-upsell__tab-recommended {
        font-size: 0.55rem;
        padding: 2px 5px;
    }

    .pc-upsell__carousel-wrap {
        padding: 0 4px;
    }

    .pc-upsell__card {
        flex: 0 0 100px;
    }

    .pc-upsell__card-body {
        padding: 8px;
    }

    .pc-upsell__card-name {
        font-size: 0.7rem;
    }

    .pc-upsell__card-dims {
        font-size: 0.65rem;
    }

    .pc-upsell__card-price {
        font-size: 0.75rem;
    }

    .pc-upsell__breakdown {
        padding: 12px 14px;
    }

    .pc-upsell__breakdown-row {
        font-size: 0.8rem;
    }

    .pc-upsell__cta-primary {
        width: calc(100% - 24px);
        margin: 12px 12px 6px;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .pc-upsell__cta-secondary {
        width: calc(100% - 24px);
        margin: 0 12px 12px;
    }
}

/* ===== Force Full Width ===== */
.single-product .pc-upsell,
.single_variation_wrap .pc-upsell,
.woocommerce-variation-add-to-cart .pc-upsell,
.pc-product-single__cart .pc-upsell,
#pc-upsell-widget {
    width: 100% !important;
    max-width: 100% !important;
}

/* ===== Visualizer Modal ===== */
.pc-viz-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pc-viz-modal.is-open,
.pc-viz-modal:not([hidden]) {
    display: flex;
}

.pc-viz-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

.pc-viz-modal__content {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--pc-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pc-viz-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pc-white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    color: var(--pc-charcoal, #3D3229);
    transition: all 0.2s ease;
}

.pc-viz-modal__close:hover {
    background: var(--pc-mist, #E8EDE5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.pc-viz-modal__close svg {
    width: 20px;
    height: 20px;
    display: block;
}

.pc-viz-modal__close svg line {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.pc-viz-modal__body {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pc-cream);
}

.pc-viz-modal__loading {
    text-align: center;
    padding: 40px;
}

.pc-viz-modal__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--pc-border);
    border-top-color: var(--pc-forest);
    border-radius: 50%;
    animation: pc-spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.pc-viz-modal__result img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.pc-viz-modal__error {
    text-align: center;
    padding: 40px;
    color: var(--pc-stone);
}

.pc-viz-modal__error svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.pc-viz-modal__retry {
    margin-top: 16px;
    padding: 10px 20px;
    background: var(--pc-forest);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.pc-viz-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-top: 1px solid var(--pc-border);
}

.pc-viz-modal__info h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
}

.pc-viz-modal__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pc-forest);
}

.pc-viz-modal__add {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--pc-forest);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.pc-viz-modal__add:hover {
    background: var(--pc-forest-dark);
}

/* ===== Pot Card Hidden State (for variation filtering) ===== */
.pc-upsell__card--hidden {
    display: none !important;
}

/* ===== Visualizer V4: Source Label ===== */
.pc-viz-modal__result {
    position: relative;
    display: inline-block;
    width: 100%;
}

/* Ensure hidden attribute works despite explicit display rules */
.pc-viz-modal__result[hidden],
.pc-viz-modal__loading[hidden],
.pc-viz-modal__error[hidden],
.pc-viz-modal__footer[hidden] {
    display: none !important;
}

.pc-viz-modal__source-label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--pc-stone, #7A7A72);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 6px;
    z-index: 10;
    backdrop-filter: blur(4px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

/* ===== Visualizer Fallback View ===== */
.pc-viz-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    gap: 16px;
}

.pc-viz-fallback__note {
    color: var(--pc-stone);
    font-size: 0.8rem;
    text-align: center;
}

.pc-viz-fallback__images {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 16px;
}

.pc-viz-fallback__plant,
.pc-viz-fallback__pot {
    flex: 0 0 auto;
}

/* Plant image container - clips the nursery pot at the bottom */
.pc-viz-fallback__plant-clip {
    overflow: hidden;
    max-height: 280px; /* Limit height to clip bottom */
    display: flex;
    align-items: flex-start; /* Align to top so bottom gets clipped */
}

.pc-viz-fallback__plant-clip img {
    max-width: 200px;
    max-height: 350px; /* Image is taller than container, bottom gets clipped */
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: top center; /* Show top of image, clip bottom (nursery pot) */
}

.pc-viz-fallback__pot img {
    max-width: 180px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.pc-viz-fallback__plus {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--pc-stone);
    padding: 0 8px;
}

.pc-viz-fallback__label {
    font-size: 0.9rem;
    color: var(--pc-bark);
    text-align: center;
}

.pc-viz-fallback__placeholder {
    width: 150px;
    height: 150px;
    background: var(--pc-sand);
    border: 2px dashed var(--pc-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-stone);
    font-size: 0.85rem;
}

/* ===== Multi-Plant Notice ===== */
.pc-upsell__multi-plant-notice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-bottom: 1px solid var(--pc-border);
}

.pc-upsell__multi-plant-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: var(--pc-forest);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pc-white);
}

.pc-upsell__multi-plant-icon svg {
    width: 20px;
    height: 20px;
}

.pc-upsell__multi-plant-text {
    flex: 1;
    font-size: 0.85rem;
    color: var(--pc-bark);
    line-height: 1.4;
}

.pc-upsell__multi-plant-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--pc-forest-dark);
    margin-bottom: 2px;
}

.pc-upsell__multi-plant-sizes {
    font-size: 0.8rem;
    color: var(--pc-stone);
    font-weight: 500;
}

.pc-upsell__multi-plant-text p {
    margin: 4px 0 0 0;
    font-size: 0.8rem;
    color: var(--pc-stone);
}

/* Multi-plant modifier class */
.pc-upsell--multi-plant {
    border-color: var(--pc-success);
}

.pc-upsell--multi-plant .pc-upsell__header-bar {
    background: linear-gradient(135deg, var(--pc-forest) 0%, var(--pc-success) 100%);
}

/* Mobile adjustments for multi-plant notice */
@media (max-width: 480px) {
    .pc-upsell__multi-plant-notice {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .pc-upsell__multi-plant-icon {
        width: 32px;
        height: 32px;
    }
    
    .pc-upsell__multi-plant-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .pc-upsell__multi-plant-text {
        font-size: 0.8rem;
    }
    
    .pc-upsell__multi-plant-text strong {
        font-size: 0.9rem;
    }
}

/* ===== Plants Upsell Variant (pot pages) ===== */
/* v3.0: Now has same structure as pot upsell with tabs */
.pc-upsell--plants {
    /* Same styling as pot upsell */
}

/* Card dimensions for plants (show potmaat) */
.pc-upsell--plants .pc-upsell__card-dims {
    font-size: 0.7rem;
    color: var(--pc-stone);
    margin-bottom: 2px;
}

/* ===== WooCommerce Add-to-Cart Integration ===== */
/* CRO v2: Widget now renders AFTER the add-to-cart button (hierarchy: product understanding first) */

/* Visual separator: the upsell widget now sits inside the add-to-cart container, after the button */
.woocommerce-variation-add-to-cart .pc-upsell,
.variations_button .pc-upsell {
    margin-top: 24px;
}

/* ===== Trust Microcopy ===== */
/* CRO: Evidence-based micro-explanation below header */
.pc-upsell__trust-micro {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.78rem;
    color: var(--pc-stone, #6B6B68);
    text-align: center;
    padding: 8px 14px;
    background: var(--pc-sand, #F5F1E8);
    border-bottom: 1px solid var(--pc-border, #E5E8E0);
    line-height: 1.4;
}

/* ===== Savings Badge ===== */
/* CRO: Green badge showing savings amount for price partitioning */
.pc-upsell__savings-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--pc-health-green, #E8F5E9);
    border-radius: 6px;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--pc-success, #2E7D32);
    line-height: 1.3;
}

.pc-upsell__savings-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* ===== CTA Recommended Tag ===== */
/* CRO: "aanbevolen" label next to CTA text */
.pc-upsell__cta-recommended {
    display: inline-block;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 2px 6px;
    vertical-align: middle;
    margin-left: 4px;
}