﻿/**
 * La Bodeteka Delivery — WooCommerce Quick Add to Cart + Quick-View Popup
 *
 * Base styles only. Elementor's generated styles use a higher specificity
 * ({{WRAPPER}} .class) so every visual control in the widget wins.
 */

.lbd-wac {
    --lbd-wac-red: #e11d2e;
    --lbd-wac-red-dark: #c8101f;
    --lbd-wac-blue: #1d3f8f;
    --lbd-wac-maroon: #a11d33;
    --lbd-wac-ink: #111111;
    --lbd-wac-muted: #6b7280;
    --lbd-wac-line: #ececec;
    --lbd-wac-anim-duration: 0.28s;
    display: block;
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--lbd-wac-ink);
}

.lbd-wac,
.lbd-wac *,
.lbd-wac *::before,
.lbd-wac *::after {
    box-sizing: border-box;
}

.lbd-wac img {
    max-width: 100%;
}

/* =====================================================================
   TRIGGER BUTTON
   ===================================================================== */
.lbd-wac-trigger-wrap {
    display: flex;
    justify-content: flex-start;
}

.lbd-wac-width-full .lbd-wac-trigger-wrap .lbd-wac-trigger {
    width: 100%;
}

.lbd-wac-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    margin: 0;
    padding: 12px 26px;
    border: 0;
    border-radius: 8px;
    background-color: var(--lbd-wac-red);
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
    text-transform: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition-property: background-color, color, border-color, box-shadow, transform;
    transition-duration: 0.25s;
    transition-timing-function: ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.lbd-wac-trigger:hover {
    background-color: var(--lbd-wac-red-dark);
    color: #ffffff;
}

.lbd-wac-trigger:focus-visible {
    outline: 2px solid var(--lbd-wac-ink);
    outline-offset: 3px;
}

.lbd-wac-trigger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.lbd-wac-trigger-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.lbd-wac-trigger-text {
    display: inline-block;
}

/* Button presets */
.lbd-wac-style-gradient .lbd-wac-trigger {
    background-color: transparent;
    background-image: linear-gradient(135deg, var(--lbd-wac-red) 0%, #a30d1f 100%);
}

.lbd-wac-style-gradient .lbd-wac-trigger:hover {
    background-image: linear-gradient(135deg, var(--lbd-wac-red-dark) 0%, #8c0a1a 100%);
}

.lbd-wac-style-outline .lbd-wac-trigger {
    background-color: transparent;
    border: 1.5px solid var(--lbd-wac-red);
    color: var(--lbd-wac-red);
}

.lbd-wac-style-outline .lbd-wac-trigger:hover {
    background-color: var(--lbd-wac-red);
    color: #ffffff;
}

.lbd-wac-style-soft .lbd-wac-trigger {
    background-color: rgba(225, 29, 46, 0.1);
    color: var(--lbd-wac-red);
}

.lbd-wac-style-soft .lbd-wac-trigger:hover {
    background-color: rgba(225, 29, 46, 0.18);
    color: var(--lbd-wac-red);
}

.lbd-wac-style-ghost .lbd-wac-trigger {
    background-color: transparent;
    color: var(--lbd-wac-ink);
    padding-left: 0;
    padding-right: 0;
}

.lbd-wac-style-ghost .lbd-wac-trigger:hover {
    background-color: transparent;
    color: var(--lbd-wac-red);
}

.lbd-wac-style-link .lbd-wac-trigger {
    min-height: 0;
    padding: 0;
    background-color: transparent;
    color: var(--lbd-wac-red);
    border-radius: 0;
}

.lbd-wac-style-link .lbd-wac-trigger .lbd-wac-trigger-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lbd-wac-style-link .lbd-wac-trigger:hover {
    background-color: transparent;
    color: var(--lbd-wac-red-dark);
}

.lbd-wac-style-icon .lbd-wac-trigger {
    width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border-radius: 50%;
}

.lbd-wac-style-icon .lbd-wac-trigger-text {
    display: none;
}

.lbd-wac-style-icon .lbd-wac-trigger-icon svg {
    width: 22px;
    height: 22px;
}

/* Hover animations (values come from the widget control) */
.lbd-wac-trigger:hover {
    animation-name: var(--lbd-wac-anim, none);
    animation-duration: 0.5s;
    animation-timing-function: ease;
}

@keyframes lbd-wac-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@keyframes lbd-wac-glow {
    0%   { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0.45); }
    70%  { box-shadow: 0 0 24px 8px rgba(225, 29, 46, 0); }
    100% { box-shadow: 0 0 0 0 rgba(225, 29, 46, 0); }
}

@keyframes lbd-wac-bounce {
    0%, 100% { transform: translateY(0); }
    20%      { transform: translateY(-6px); }
    40%      { transform: translateY(2px); }
    60%      { transform: translateY(-3px); }
    80%      { transform: translateY(1px); }
}

@keyframes lbd-wac-shake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-5px); }
    40%      { transform: translateX(5px); }
    60%      { transform: translateX(-3px); }
    80%      { transform: translateX(3px); }
}

@keyframes lbd-wac-pop {
    0%   { transform: scale(0.94); }
    60%  { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Loading spinner on the trigger */
.lbd-wac-btn-spinner {
    display: none;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lbd-wac-spin 0.7s linear infinite;
}

.lbd-wac-trigger.is-loading .lbd-wac-btn-spinner {
    display: inline-block;
}

.lbd-wac-trigger.is-loading .lbd-wac-trigger-text {
    opacity: 0.85;
}

@keyframes lbd-wac-spin {
    to { transform: rotate(360deg); }
}

/* =====================================================================
   MODAL
   ===================================================================== */
.lbd-wac-modal {
    --lbd-wac-red: #e11d2e;
    --lbd-wac-red-dark: #c8101f;
    --lbd-wac-blue: #1d3f8f;
    --lbd-wac-maroon: #a11d33;
    --lbd-wac-ink: #111111;
    --lbd-wac-muted: #6b7280;
    --lbd-wac-line: #ececec;
    --lbd-wac-anim-duration: 0.28s;
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    max-height: 100vh;
    max-height: 100dvh;
    color: var(--lbd-wac-ink);
    font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body.lbd-wac-lock {
    overflow: hidden !important;
}

.lbd-wac-modal.is-open {
    display: flex;
}

.lbd-wac-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 17, 17, 0.72);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    cursor: pointer;
}

.lbd-wac-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 48% minmax(0, 1fr);
    width: 100%;
    max-width: 1040px;
    max-height: 90vh;
    max-height: min(90vh, calc(100dvh - 48px));
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.lbd-wac-dialog-fullscreen {
    max-width: none !important;
    max-height: none !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    grid-template-columns: minmax(0, 1fr) !important;
    overflow: hidden !important;
}

.lbd-wac-dialog-fullscreen .lbd-wac-media {
    height: 100% !important;
    padding: 0 !important;
}

.lbd-wac-dialog-fullscreen .lbd-wac-stage {
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 auto !important;
}

.lbd-wac-dialog-fullscreen .lbd-wac-main-img {
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
}

.lbd-wac-dialog-fullscreen .lbd-wac-info {
    max-height: none !important;
    overflow: visible !important;
    padding: 30px !important;
    border-left: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
}

.lbd-wac-dialog-fullscreen .lbd-wac-close {
    background-color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.lbd-wac-modal-fullscreen {
    padding: 0 !important;
    align-items: stretch !important;
    justify-content: stretch !important;
}

.lbd-wac-modal-fullscreen .lbd-wac-overlay {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    background-color: rgba(17, 17, 17, 0.85) !important;
}

body.lbd-wac-lock {
    overflow: hidden !important;
    padding-right: var(--lbd-wac-sbw, 0px);
}

/* Open animations */
.lbd-wac-modal.is-open .lbd-wac-overlay {
    animation: lbd-wac-fade var(--lbd-wac-anim-duration, 0.28s) ease both;
}

.lbd-wac-anim-fade .lbd-wac-dialog,
.lbd-wac-anim-zoom .lbd-wac-dialog,
.lbd-wac-anim-slide-up .lbd-wac-dialog {
    animation-duration: var(--lbd-wac-anim-duration, 0.28s);
    animation-timing-function: cubic-bezier(0.22, 0.8, 0.28, 1);
    animation-fill-mode: both;
}

.lbd-wac-anim-fade .lbd-wac-modal.is-open .lbd-wac-dialog {
    animation-name: lbd-wac-fade;
}

.lbd-wac-anim-zoom .lbd-wac-modal.is-open .lbd-wac-dialog {
    animation-name: lbd-wac-zoom;
}

.lbd-wac-anim-slide-up .lbd-wac-modal.is-open .lbd-wac-dialog {
    animation-name: lbd-wac-slide-up;
}

@keyframes lbd-wac-fade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes lbd-wac-zoom {
    from { opacity: 0; transform: translateY(14px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes lbd-wac-slide-up {
    from { opacity: 0; transform: translateY(48px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =====================================================================
   CLOSE ANIMATIONS (elegant exit, mirrors the open animation)
   The modal keeps .is-open (so it stays visible) while .is-closing
   plays; the JS removes both classes when the animation ends.
   ===================================================================== */
.lbd-wac-modal.is-closing .lbd-wac-overlay {
    animation: lbd-wac-fade-out var(--lbd-wac-anim-duration, 0.28s) ease both;
}

.lbd-wac-anim-fade .lbd-wac-modal.is-closing .lbd-wac-dialog {
    animation: lbd-wac-fade-out var(--lbd-wac-anim-duration, 0.28s) ease both;
}

.lbd-wac-anim-zoom .lbd-wac-modal.is-closing .lbd-wac-dialog {
    animation: lbd-wac-zoom-out var(--lbd-wac-anim-duration, 0.28s) cubic-bezier(0.4, 0, 0.7, 0.2) both;
}

.lbd-wac-anim-slide-up .lbd-wac-modal.is-closing .lbd-wac-dialog {
    animation: lbd-wac-slide-up-out var(--lbd-wac-anim-duration, 0.28s) cubic-bezier(0.5, 0, 0.8, 0.4) both;
}

@keyframes lbd-wac-fade-out {
    from { opacity: 1; }
    to   { opacity: 0; }
}

@keyframes lbd-wac-zoom-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(10px) scale(0.965); }
}

@keyframes lbd-wac-slide-up-out {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(40px); }
}

/* Top bar: heart + close, side by side at the top-right corner of the popup */
.lbd-wac-topbar {
    position: absolute;
    top: 12px;
    right: 14px;
    left: auto;
    transform: none;
    z-index: 6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* The !important rules below guarantee the icon is dead-center inside the
   circle even when the theme / Elementor Site Settings style global buttons
   (padding, line-height, border-radius, display). Elementor controls also
   output !important, so they always stay in charge. */
.lbd-wac-close {
    position: relative;
    top: auto;
    right: auto;
    z-index: 6;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background-color: transparent !important;
    color: var(--lbd-wac-ink) !important;
    cursor: pointer;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.lbd-wac-close:hover {
    background-color: #f3f4f6 !important;
}

.lbd-wac-close svg {
    width: 18px;
    height: 18px;
    display: block;
    flex: 0 0 auto;
    margin: 0;
}

/* =====================================================================
   GALLERY
   ===================================================================== */
.lbd-wac-media {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    padding: 28px 28px 18px;
    background-color: #ffffff;
}

.lbd-wac-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 430px;
    min-height: 0;
    flex: 0 0 auto;
}

.lbd-wac-main-img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.lbd-wac-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--lbd-wac-ink);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lbd-wac-arrow:hover {
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.lbd-wac-arrow svg {
    width: 18px;
    height: 18px;
}

.lbd-wac-arrow-prev {
    left: 4px;
}

.lbd-wac-arrow-next {
    right: 4px;
}

.lbd-wac-wish {
    position: relative;
    z-index: 4;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    margin: 0;
    border: 0 !important;
    line-height: 0 !important;
    box-sizing: border-box !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    color: #111111 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.lbd-wac-wish:hover {
    transform: scale(1.06);
}

.lbd-wac-wish svg {
    width: 19px;
    height: 19px;
    display: block;
    flex: 0 0 auto;
    margin: 0;
}

.lbd-wac-wish.is-active svg {
    fill: currentColor;
}

/* ---------------------------------------------------------------------
 * Mini thumbnail carousel
 * ------------------------------------------------------------------ */
.lbd-wac-thumbs-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    min-width: 0;
}

.lbd-wac-thumbs {
    display: flex;
    align-items: center;
    justify-content: var(--lbdwac-thumbs-align, flex-start);
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
    padding: 2px 2px 4px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.lbd-wac-thumbs-wrap.is-carousel .lbd-wac-thumbs {
    /* A scrollable track can never be centred: the overflow would become
       unreachable (the classic flexbox centring bug). */
    justify-content: flex-start;
    scrollbar-width: none;
}

.lbd-wac-thumbs-wrap.is-carousel .lbd-wac-thumbs::-webkit-scrollbar {
    display: none;
}

.lbd-wac-thumbs-wrap.is-strip .lbd-wac-thumbs {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: var(--lbdwac-thumbs-align, center);
}

.lbd-wac-thumbs-arrow {
    display: none;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    padding: 0;
    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 50%;
    background-color: #ffffff;
    color: #171717;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.lbd-wac-thumbs-arrow svg {
    width: 16px;
    height: 16px;
}

.lbd-wac-thumbs-arrow:hover {
    background-color: #171717;
    color: #ffffff;
}

.lbd-wac-thumbs-arrow:disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* The arrows only appear when there is something to scroll. */
.lbd-wac-thumbs-wrap.is-overflowing .lbd-wac-thumbs-arrow {
    display: inline-flex;
}

.lbd-wac-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    background-color: #f7f7f7;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.lbd-wac-thumb:hover {
    border-color: #d1d5db;
}

.lbd-wac-thumb.is-active {
    border-color: #111111;
}

.lbd-wac-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lbd-wac-media-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    padding: 24px;
    border: 1px dashed #d1d5db;
    border-radius: 8px;
    color: var(--lbd-wac-muted);
    text-align: center;
}

/* =====================================================================
   PRODUCT INFO
   ===================================================================== */
.lbd-wac-info {
    min-width: 0;
    max-height: 90vh;
    padding: 62px 30px 26px;
    border-left: 1px solid var(--lbd-wac-line);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.lbd-wac-info::-webkit-scrollbar {
    width: 8px;
}

.lbd-wac-info::-webkit-scrollbar-thumb {
    background-color: #d8d8d8;
    border-radius: 8px;
}

.lbd-wac-brand {
    margin-bottom: 6px;
    color: var(--lbd-wac-muted);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
}

.lbd-wac-title {
    margin: 0 0 8px;
    padding: 0;
    color: var(--lbd-wac-ink);
    font-family: inherit;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -0.3px;
    text-transform: none;
}

.lbd-wac-sku {
    margin-bottom: 12px;
    color: var(--lbd-wac-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.lbd-wac-permalink {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 2px 0 14px;
    padding: 9px 18px;
    border: 1.5px solid var(--lbd-wac-ink);
    border-radius: 999px;
    background-color: transparent;
    color: var(--lbd-wac-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lbd-wac-permalink svg {
    width: 17px;
    height: 17px;
}

.lbd-wac-permalink:hover {
    background-color: var(--lbd-wac-ink);
    color: #ffffff;
}

.lbd-wac-stock {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border: 1px solid var(--lbd-wac-blue);
    border-radius: 4px;
    background-color: #eef3ff;
    color: var(--lbd-wac-blue);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------------------------------------------------------------------
 * Shipping badge + information popover (ⓘ)
 * ------------------------------------------------------------------ */
.lbd-wac-ship-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 14px;
}

.lbd-wac-ship-info {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.lbd-wac-ship-info-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.lbd-wac-ship-info-btn svg {
    width: 16px;
    height: 16px;
}

.lbd-wac-ship-info-btn:hover {
    background-color: rgba(17, 17, 17, 0.07);
}

.lbd-wac-ship-info-btn:focus-visible {
    outline: 2px solid var(--lbd-wac-blue);
    outline-offset: 2px;
}

.lbd-wac-ship-info-panel {
    /* Anchored to the popup dialog (not to the scrolling info column, which
       would clip it) and always kept inside the popup window. */
    position: absolute;
    top: 0;
    left: 0;
    z-index: 60;
    display: none;
    width: max-content;
    max-width: min(var(--lbdwac-info-width, 340px), calc(100% - 24px));
    max-height: min(62vh, 380px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px 20px;
    border: 1px solid rgba(17, 17, 17, 0.1);
    border-radius: 12px;
    background-color: #ffffff;
    color: var(--lbd-wac-ink);
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
    box-shadow: 0 18px 44px rgba(17, 17, 17, 0.18);
}

.lbd-wac-ship-info-panel.is-open {
    display: block;
    animation: lbd-wac-ship-info-in 0.18s ease both;
}

@keyframes lbd-wac-ship-info-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lbd-wac-ship-info-title {
    display: block;
    margin: 0 22px 8px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--lbd-wac-ink);
}

.lbd-wac-ship-info-text {
    display: block;
    word-break: break-word;
}

.lbd-wac-ship-info-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(17, 17, 17, 0.55);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.lbd-wac-ship-info-close svg {
    width: 15px;
    height: 15px;
}

.lbd-wac-ship-info-close:hover {
    background-color: rgba(17, 17, 17, 0.07);
    color: var(--lbd-wac-ink);
}

/* On touch devices the panel is only opened by clicking the icon. */
@media (hover: none) {
    .lbd-wac-ship-info-panel.is-open {
        display: block;
    }
}

.lbd-wac-stock.is-out {
    border-color: #b91c1c;
    background-color: #fef2f2;
    color: #b91c1c;
}

.lbd-wac-desc {
    margin-top: 12px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

.lbd-wac-desc p {
    margin: 0 0 8px;
}

/* Variations */
.lbd-wac-variations {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.lbd-wac-variation {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 0;
}

.lbd-wac-variation-label {
    color: #374151;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
}

.lbd-wac-attr {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background-color: #ffffff;
    color: var(--lbd-wac-ink);
    font-family: inherit;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
}

.lbd-wac-attr:focus {
    border-color: var(--lbd-wac-ink);
    outline: none;
}

.lbd-wac-attr:focus-visible {
    outline: 2px solid var(--lbd-wac-ink);
    outline-offset: 2px;
}

/* Prices */
.lbd-wac-price-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.lbd-wac-price-box {
    /* Fill the row (the installments box keeps its auto margin, so the
       default layout is unchanged) — this lets the price alignment style
       control actually move the price lines inside the column. */
    flex: 1 1 auto;
    min-width: 0;
}

.lbd-wac-price-old {
    color: var(--lbd-wac-muted);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.3;
    text-decoration: line-through;
}

.lbd-wac-price-old .woocommerce-Price-amount,
.lbd-wac-price-old .woocommerce-Price-currencySymbol {
    color: inherit;
    font: inherit;
}

.lbd-wac-price-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.lbd-wac-price-current {
    color: var(--lbd-wac-red);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.lbd-wac-price-current .woocommerce-Price-amount,
.lbd-wac-price-current .woocommerce-Price-currencySymbol {
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
}

.lbd-wac-discount {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 4px;
    background-color: var(--lbd-wac-red);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.lbd-wac-card-line {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.lbd-wac-card-price {
    color: var(--lbd-wac-maroon);
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.4px;
}

.lbd-wac-card-price .woocommerce-Price-amount,
.lbd-wac-card-price .woocommerce-Price-currencySymbol {
    color: inherit;
    font: inherit;
}

.lbd-wac-discount-card {
    background-color: var(--lbd-wac-blue);
}

.lbd-wac-card-icon {
    width: 18px;
    height: 18px;
    color: var(--lbd-wac-blue);
    flex: 0 0 auto;
}

.lbd-wac-installments {
    flex: 0 1 190px;
    min-width: 140px;
    margin-left: auto;
    padding: 9px 13px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background-color: #ffffff;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.35;
}

.lbd-wac-installment-text {
    display: block;
}

.lbd-wac-installment-amount {
    display: block;
    margin-top: 2px;
    color: var(--lbd-wac-ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.lbd-wac-installment-amount .woocommerce-Price-amount,
.lbd-wac-installment-amount .woocommerce-Price-currencySymbol {
    color: inherit;
    font: inherit;
}

/* =====================================================================
   QUANTITY + ADD TO CART
   ===================================================================== */
.lbd-wac-buy {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
}

.lbd-wac-qty {
    position: relative;
    flex: 0 0 92px;
    width: 92px;
}

.lbd-wac-qty-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 50px;
    padding: 0 14px;
    margin: 0;
    border: 0;
    border-radius: 6px;
    background-color: var(--lbd-wac-red);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.lbd-wac-qty-btn:focus-visible {
    outline: 2px solid var(--lbd-wac-ink);
    outline-offset: 2px;
}

.lbd-wac-chevron {
    width: 15px;
    height: 15px;
    transition: transform 0.2s ease;
}

.lbd-wac-qty.is-open .lbd-wac-chevron {
    transform: rotate(180deg);
}

.lbd-wac-qty-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 12;
    display: none;
    width: 100%;
    max-height: 220px;
    margin: 0;
    padding: 4px;
    overflow-y: auto;
    list-style: none;
    border: 1.5px solid transparent;
    border-radius: 6px;
    background-color: var(--lbd-wac-red);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.lbd-wac-qty.is-open .lbd-wac-qty-list {
    display: block;
    animation: lbd-wac-fade 0.16s ease both;
}

.lbd-wac-qty-list li {
    padding: 8px 10px;
    border-radius: 4px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.lbd-wac-qty-list li:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.lbd-wac-qty-list li.is-selected {
    background-color: var(--lbd-wac-ink);
    color: #ffffff;
}

.lbd-wac-add {
    display: inline-flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    border: 0;
    border-radius: 6px;
    background-color: var(--lbd-wac-red);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.lbd-wac-add:hover {
    background-color: var(--lbd-wac-red-dark);
}

.lbd-wac-add:focus-visible {
    outline: 2px solid var(--lbd-wac-ink);
    outline-offset: 2px;
}

.lbd-wac-add:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.lbd-wac-add.is-loading {
    opacity: 0.85;
    cursor: wait;
}

.lbd-wac-add-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: lbd-wac-spin 0.7s linear infinite;
}

.lbd-wac-add.is-loading .lbd-wac-add-spinner {
    display: inline-block;
}

.lbd-wac .lbd-wac-add.is-success {
    background-color: #0f7a3d;
    border-color: #0f7a3d;
    color: #ffffff;
}

.lbd-wac-success,
.lbd-wac-error {
    display: none;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
}

.lbd-wac-success.is-visible,
.lbd-wac-error.is-visible {
    display: block;
}

.lbd-wac-success {
    color: #0f7a3d;
}

.lbd-wac-error {
    color: #c8101f;
}

/* =====================================================================
   TRUST LIST
   ===================================================================== */
.lbd-wac-trust {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
}

.lbd-wac-trust-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin: 0;
    padding: 0;
    text-align: left;
}

.lbd-wac-trust-icon {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--lbd-wac-muted);
}

.lbd-wac-trust-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.lbd-wac-trust-body {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.lbd-wac-trust-title {
    display: block;
    color: var(--lbd-wac-ink);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

a.lbd-wac-trust-title {
    text-decoration: underline;
    text-underline-offset: 2px;
}

a.lbd-wac-trust-title:hover {
    color: var(--lbd-wac-red);
}

.lbd-wac-trust-text {
    display: block;
    margin-top: 1px;
    color: #555555;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.45;
}

/* =====================================================================
   EDITOR NOTICE
   ===================================================================== */
.lbd-wac-editor-notice {
    padding: 18px 20px;
    border: 1px dashed #c8101f;
    border-radius: 8px;
    background-color: #fef2f2;
    color: #991b1b;
    font-size: 13px;
    line-height: 1.5;
}

.lbd-wac-frontend-notice {
    padding: 18px 20px;
    border: 1px dashed #c8101f;
    border-radius: 8px;
    background-color: #fef2f2;
    color: #991b1b;
    font-size: 14px;
    line-height: 1.5;
    margin: 20px 0;
    text-align: center;
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 860px) {
    .lbd-wac-modal {
        padding: 10px;
    }

    .lbd-wac-dialog {
        grid-template-columns: minmax(0, 1fr) !important;
        max-height: 92vh;
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
    }

    .lbd-wac-media {
        padding: 18px 18px 10px;
    }

    .lbd-wac-stage {
        height: 280px !important;
    }

    .lbd-wac-info {
        max-height: none;
        padding: 20px 18px 24px;
        border-left: 0;
        border-top: 1px solid var(--lbd-wac-line);
        overflow: visible;
    }

    .lbd-wac-title {
        font-size: 22px;
    }

    .lbd-wac-price-current {
        font-size: 26px;
    }

    .lbd-wac-card-price {
        font-size: 22px;
    }

    .lbd-wac-installments {
        flex-basis: 100%;
        margin-left: 0;
    }

    .lbd-wac-topbar {
        top: 8px;
        right: 8px;
        gap: 10px;
    }

    .lbd-wac-close {
        background-color: #ffffff !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.14) !important;
    }
}

@media (max-width: 480px) {
    .lbd-wac-buy {
        flex-wrap: wrap;
    }

    .lbd-wac-qty {
        flex: 0 0 84px;
        width: 84px;
    }

    .lbd-wac-add {
        flex: 1 1 120px;
        min-width: 0;
        font-size: 15px;
        padding: 0 12px;
    }

    .lbd-wac-thumb {
        width: 46px;
        height: 46px;
    }
}

/* =====================================================================
   EXTRAS UNDER THE IMAGE (cross-sell / reviews / custom)
   ===================================================================== */
.lbd-wac-extras {
    --lbd-wac-extra-accent: #a97018;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
}

.lbd-wac-extra {
    padding: 14px;
    background-color: #fafafa;
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    color: var(--lbd-wac-ink);
}

.lbd-wac-extra-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.lbd-wac-extra-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.lbd-wac-extra-product {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    min-width: 0;
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #ececec;
    border-radius: 8px;
}

.lbd-wac-extra-product-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 92px;
    overflow: hidden;
    border-radius: 6px;
    background-color: #f6f6f6;
}

.lbd-wac-extra-product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lbd-wac-extra-product-fallback {
    padding: 8px;
    font-size: 11px;
    text-align: center;
}

.lbd-wac-extra-product-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.lbd-wac-extra-product-name {
    color: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.lbd-wac-extra-product-name:hover {
    text-decoration: underline;
}

.lbd-wac-extra-product-price {
    font-size: 13px;
    font-weight: 700;
}

.lbd-wac-extra-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 6px 10px;
    border: 0;
    border-radius: 6px;
    background-color: var(--lbd-wac-extra-accent);
    color: #ffffff;
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease, opacity 0.2s ease;
}

.lbd-wac-extra-add:hover {
    filter: brightness(1.08);
}

.lbd-wac-extra-add[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.lbd-wac-extra-add.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.lbd-wac-extra-add-spinner {
    display: none;
    width: 11px;
    height: 11px;
    margin-left: 6px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: lbd-wac-extra-spin 0.7s linear infinite;
}

.lbd-wac-extra-add.is-loading .lbd-wac-extra-add-spinner {
    display: inline-block;
}

@keyframes lbd-wac-extra-spin {
    to { transform: rotate(360deg); }
}

.lbd-wac-extra-stars {
    color: #e8a900;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1;
}

.lbd-wac-extra-review-text {
    margin: 8px 0 6px;
    font-size: 13px;
    line-height: 1.5;
}

.lbd-wac-extra-review-author {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--lbd-wac-muted);
    font-size: 11px;
}

.lbd-wac-extra-review-author a {
    color: var(--lbd-wac-blue);
    text-decoration: none;
}

.lbd-wac-extra-custom-text {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.5;
}

.lbd-wac-extra-link {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border-radius: 6px;
    background-color: var(--lbd-wac-extra-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 700px) {
    .lbd-wac-extra-products {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lbd-wac-extra-product-img {
        height: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lbd-wac *,
    .lbd-wac *::before,
    .lbd-wac *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}



