/* Botón flotante "Personaliza tu cuadro" (inc/floating-customizer.php) */

.lz-fc {
    --lz-fc-ink: #010b1b;
    --lz-fc-muted: #5b6372;
    --lz-fc-line: #e6e8ee;
    --lz-fc-wall: #f3f1ee;
    --lz-fc-green: #0a8f3c;
    --lz-fc-grad: linear-gradient(90deg, #ff006e 0%, #ff5e3a 25%, #ff8c42 45%, #7b61ff 70%, #00a6ff 100%);
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 999990; /* debajo del carrito lateral de CheckoutWC (999998+) */
    font-family: "Roboto", sans-serif;
    color: var(--lz-fc-ink);
}

/* ---------- Botón ---------- */

.lz-fc-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 22px 0 8px;
    border: 0;
    border-radius: 999px;
    background: var(--lz-fc-ink) !important;
    color: #fff !important;
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(1, 11, 27, .35) !important;
    transition: transform .2s ease, box-shadow .2s ease;
    isolation: isolate;
}
/* Aro con el degradado de la marca, girando */
.lz-fc-toggle::before {
    content: "";
    position: absolute;
    inset: -3px;
    z-index: -1;
    border-radius: inherit;
    background: conic-gradient(from var(--lz-fc-a, 0deg), #ff006e, #ff8c42, #7b61ff, #00a6ff, #ff006e);
    animation: lz-fc-spin 4s linear infinite;
}
.lz-fc-toggle::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--lz-fc-ink);
}
.lz-fc-toggle:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(1, 11, 27, .45) !important; }
.lz-fc-toggle:active { transform: translateY(0) scale(.98); }
.lz-fc-toggle:focus-visible { outline: 3px solid #00a6ff !important; outline-offset: 4px; }

.lz-fc-toggle-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--lz-fc-grad);
    color: #fff;
    font-size: 22px;
    transition: transform .3s ease;
}
.lz-fc-toggle:hover .lz-fc-toggle-icon { transform: rotate(-8deg) scale(1.06); }
.lz-fc[data-state="open"] .lz-fc-toggle-icon { animation: lz-fc-twist .3s ease; }
@keyframes lz-fc-twist { from { transform: rotate(-90deg) scale(.6); } }

@property --lz-fc-a {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}
@keyframes lz-fc-spin { to { --lz-fc-a: 360deg; } }

/* ---------- Globo de aviso ---------- */

.lz-fc-teaser {
    position: absolute;
    left: 0;
    bottom: 70px;
    width: max-content;
    max-width: 230px;
    padding: 10px 14px;
    border-radius: 14px 14px 14px 4px;
    background: #fff;
    color: var(--lz-fc-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    box-shadow: 0 8px 24px rgba(1, 11, 27, .18);
    cursor: pointer;
    animation: lz-fc-pop .35s cubic-bezier(.2, .9, .3, 1.3) both;
}
.lz-fc-teaser[hidden] { display: none; }

/* ---------- Panel ---------- */

.lz-fc-panel {
    position: absolute;
    left: 0;
    bottom: 72px;
    width: 340px;
    max-height: calc(100vh - 110px);
    max-height: calc(100dvh - 110px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(1, 11, 27, .28), 0 0 0 1px rgba(1, 11, 27, .06);
    transform-origin: 28px calc(100% + 40px);
    animation: lz-fc-pop .28s cubic-bezier(.2, .9, .3, 1.15) both;
}
.lz-fc-panel[hidden] { display: none; }

.lz-fc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 10px 18px;
}
.lz-fc-kicker {
    margin: 0 0 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: var(--lz-fc-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.lz-fc-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--lz-fc-ink);
}
.lz-fc-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f2f3f6 !important;
    color: var(--lz-fc-ink);
    cursor: pointer;
    flex: none;
}
.lz-fc-close:hover { background: #e6e8ee !important; }
.lz-fc-close .material-symbols-rounded { font-size: 20px; }

/* Vista previa a escala: pared, cuadro y sofá de 2 m */
.lz-fc-stage {
    position: relative;
    margin: 0 12px;
    height: 196px;
    border-radius: 14px;
    overflow: hidden;
    background: radial-gradient(120% 90% at 50% 0%, #fff 0%, var(--lz-fc-wall) 70%);
}
.lz-fc-wall { position: absolute; inset: 0 0 18px; }
.lz-fc-floor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 18px;
    background: linear-gradient(#d9cbb8, #cbb99f);
}
.lz-fc-sofa {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    fill: #2b3a55;
    transition: width .35s ease, height .35s ease;
}
.lz-fc-frame {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
    overflow: hidden;
    transition: width .35s cubic-bezier(.3, .8, .3, 1), height .35s cubic-bezier(.3, .8, .3, 1), bottom .35s ease, box-shadow .3s ease;
}
.lz-fc-art,
.lz-fc-shine,
.lz-fc-pins { position: absolute; inset: 0; }
.lz-fc-art {
    background:
        radial-gradient(60% 70% at 20% 25%, #ff8c42 0%, transparent 60%),
        radial-gradient(55% 65% at 85% 30%, #00a6ff 0%, transparent 60%),
        radial-gradient(70% 70% at 60% 95%, #7b61ff 0%, transparent 65%),
        linear-gradient(135deg, #ff006e, #ff5e3a 45%, #7b61ff);
}
.lz-fc-photo-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, .9);
    font-size: 22px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: opacity .2s ease;
}
.lz-fc-frame.is-tiny .lz-fc-photo-icon { opacity: 0; }

/* Canvas: lienzo sobre bastidor, con el canto visible */
.lz-fc-frame[data-material="canva"] {
    box-shadow: 3px 3px 0 #c9c3bb, 6px 8px 14px rgba(0, 0, 0, .28);
}
.lz-fc-frame[data-material="canva"] .lz-fc-shine {
    background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 4px);
}
/* Acrílico: brillo de vidrio y separadores en las esquinas */
.lz-fc-frame[data-material="acrilico"] {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, .6) inset, 8px 12px 18px rgba(0, 0, 0, .22);
}
.lz-fc-frame[data-material="acrilico"] .lz-fc-shine {
    background: linear-gradient(120deg, rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, .08) 32%, transparent 33%, transparent 60%, rgba(255, 255, 255, .18) 61%, transparent 75%);
}
.lz-fc-pins { display: none; }
.lz-fc-frame[data-material="acrilico"] .lz-fc-pins { display: block; }
.lz-fc-pins i {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #fff, #9aa3ad);
}
.lz-fc-pins i:nth-child(1) { top: 3px; left: 3px; }
.lz-fc-pins i:nth-child(2) { top: 3px; right: 3px; }
.lz-fc-pins i:nth-child(3) { bottom: 3px; left: 3px; }
.lz-fc-pins i:nth-child(4) { bottom: 3px; right: 3px; }

.lz-fc-dims {
    position: absolute;
    top: 8px;
    left: 10px;
    margin: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .85);
    font-size: 11px;
    font-weight: 600;
    color: var(--lz-fc-muted);
}

/* Opciones */
.lz-fc-body { padding: 6px 18px 0; }
.lz-fc-group { margin: 12px 0 0; padding: 0; border: 0; min-width: 0; }
.lz-fc-group legend {
    float: none;
    width: auto;
    margin: 0 0 6px;
    padding: 0;
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--lz-fc-ink);
}
.lz-fc-options { display: flex; flex-wrap: wrap; gap: 6px; }
.lz-fc-opt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 6px 12px;
    border: 1.5px solid var(--lz-fc-line) !important;
    border-radius: 10px;
    background: #fff !important;
    color: var(--lz-fc-ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.1;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, transform .1s ease;
}
.lz-fc-opt:hover { border-color: #b9bfcc !important; }
.lz-fc-opt:active { transform: scale(.97); }
.lz-fc-opt:focus-visible { outline: 2px solid #00a6ff !important; outline-offset: 2px; }
.lz-fc-opt[aria-pressed="true"] {
    border-color: var(--lz-fc-ink) !important;
    background: var(--lz-fc-ink) !important;
    color: #fff;
}
.lz-fc-opt small {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 400;
    opacity: .7;
}
.lz-fc-opt--material { flex: 1 1 0; flex-direction: column; align-items: flex-start; gap: 0; text-align: left; }
.lz-fc-options--sizes .lz-fc-opt { padding: 6px 10px; min-width: 62px; justify-content: center; }

.lz-fc-ori {
    display: inline-block;
    border: 2px solid currentColor;
    border-radius: 2px;
}
.lz-fc-ori--h { width: 16px; height: 11px; }
.lz-fc-ori--v { width: 11px; height: 16px; }

/* Precio y botón */
.lz-fc-foot { padding: 14px 18px 16px; }
.lz-fc-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 10px;
}
.lz-fc-regular { color: #9aa1ad; font-size: 14px; }
.lz-fc-regular:empty { display: none; }
.lz-fc-now {
    font-family: "DM Sans", sans-serif;
    font-size: 24px;
    font-weight: 800 !important;
    color: var(--lz-fc-green);
    line-height: 1;
}
.lz-fc-now.is-bump { animation: lz-fc-bump .3s ease; }
.lz-fc-save {
    padding: 2px 6px;
    border-radius: 4px;
    background: #e3f6ea;
    color: var(--lz-fc-green);
    font-size: 11px;
    font-weight: 700;
}
.lz-fc-save:empty { display: none; }

.lz-fc-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(to right, #fdbc01 0%, #ff8000 50%, #d57100 100%);
    background-size: 200% 100%;
    background-position: 0 0;
    color: #fff !important;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    transition: background-position .3s ease, transform .1s ease;
}
.lz-fc-cta:hover { background-position: 100% 0; color: #fff; }
.lz-fc-cta:active { transform: scale(.98); }
.lz-fc-cta:focus-visible { outline: 3px solid #00a6ff !important; outline-offset: 2px; }
.lz-fc-cta .material-symbols-rounded { font-size: 20px; transition: transform .2s ease; }
.lz-fc-cta:hover .material-symbols-rounded { transform: translateX(3px); }
.lz-fc-note {
    margin: 8px 0 0;
    text-align: center;
    font-size: 12px;
    color: var(--lz-fc-muted);
}

@keyframes lz-fc-pop {
    from { opacity: 0; transform: translateY(10px) scale(.94); }
    to { opacity: 1; transform: none; }
}
@keyframes lz-fc-bump {
    50% { transform: scale(1.08); }
}

/* ---------- Celular ---------- */

@media (max-width: 575.98px) {
    .lz-fc { left: 12px; bottom: 14px; }
    .lz-fc-toggle { height: 52px; padding-right: 18px; font-size: 14px; }
    .lz-fc-toggle-icon { width: 36px; height: 36px; font-size: 20px; }
    .lz-fc-panel {
        position: fixed;
        left: 8px;
        right: 8px;
        bottom: 86px; /* libra el botón de WhatsApp de la derecha */
        width: auto;
        max-height: calc(100vh - 100px);
        max-height: calc(100dvh - 100px);
        transform-origin: 30px 100%;
    }
    .lz-fc-stage { height: 176px; }
}
@media (max-width: 359.98px) {
    .lz-fc-toggle-extra { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .lz-fc-toggle::before,
    .lz-fc[data-state="open"] .lz-fc-toggle-icon,
    .lz-fc-panel,
    .lz-fc-teaser,
    .lz-fc-now.is-bump { animation: none; }
    .lz-fc-frame,
    .lz-fc-sofa { transition: none; }
}
