/* Personnalisation — mobile d'abord, mêmes couleurs que le site. */
.perso-body {
    margin: 0;
    background: #f3f1ec;
    color: var(--c-dark, #0d0d0d);
    font-family: "DM Sans", sans-serif;
    overflow-x: hidden;
}
.perso button,
.perso a {
    cursor: pointer;
}
.perso button:disabled {
    cursor: not-allowed;
}
.perso {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding-bottom: calc(8.2rem + env(safe-area-inset-bottom) + var(--vv-bottom, 0px));
}
.perso__top {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo actions actions" "back heading heading";
    gap: .35rem .75rem;
    align-items: center;
    padding: .7rem .85rem;
    background: #fff;
    border-bottom: 1px solid #e6e2d8;
}
.perso__logo { grid-area: logo; }
.perso__logo img { width: 132px; height: auto; display: block; }
.perso__back { grid-area: back; color: var(--c-green, #617C28); font-size: .85rem; font-weight: 600; text-decoration: none; }
.perso__heading { grid-area: heading; min-width: 0; }
.perso__heading h1 { margin: 0; font-family: "DM Serif Display", serif; font-size: 1.25rem; font-weight: 400; line-height: 1.1; }
.perso__heading p { margin: .1rem 0 0; font-size: .78rem; color: #555; }
.perso__actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
}
.perso__cart {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: .05rem;
    min-width: 2.4rem;
    color: #243056;
    font-size: .68rem;
    font-weight: 600;
    line-height: 1;
}
.perso__cart-icon { position: relative; display: flex; line-height: 0; }
.perso__cart-label { letter-spacing: .01em; }
.perso__layout { display: block; min-width: 0; }
.perso__tools { display: none; }
.perso__uploads { display: flex; flex-direction: column; gap: .35rem; }
.perso__uploads-title { margin: .15rem 0 0; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #666; }
.perso__upload { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: .3rem; align-items: center; }
.perso__upload img { width: 32px; height: 32px; object-fit: contain; background: #f6f6f4; border-radius: 6px; }
.perso__upload span { font-size: .75rem; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.perso__upload-add {
    margin: 0;
    padding: .2rem .15rem;
    border: 0;
    background: transparent;
    color: var(--c-green, #617C28);
    font: inherit;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.1;
    white-space: nowrap;
    cursor: pointer;
}
.perso__upload-del { width: 18px; height: 18px; margin: 0; padding: 0; border: 0; background: transparent; color: #666; font-size: 1rem; line-height: 1; cursor: pointer; }
.perso__upload--placed.is-selected span { color: var(--c-green, #617C28); font-weight: 700; }
.perso__logo-sheet h2 { margin: 0 0 .7rem; font-family: "DM Serif Display", serif; font-size: 1.35rem; font-weight: 400; }
.perso__logo-sheet-actions { display: flex; gap: .5rem; margin-top: .9rem; }
.perso__logo-sheet-actions .btn { flex: 1; }
.perso__center { padding: .6rem .7rem 0; min-width: 0; }
.perso__stage { position: relative; }
.perso__frame {
    position: relative;
    width: min(100%, 640px);
    margin: 0 auto;
    aspect-ratio: 1;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
}
.perso__frame.perso__frame--native { width: min(100%, 580px); }
.perso__garment, .perso__missing-view { width: 100%; height: 100%; object-fit: contain; display: block; }
.perso__garment[hidden], .perso__missing-view[hidden] { display: none; }
.perso__missing-view {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    text-align: center;
    padding: 1rem;
}
.perso__print {
    position: absolute;
    border: 1px dashed rgba(20, 20, 20, .45);
    touch-action: none;
    transition: none;
}
.perso__print.is-preview,
.perso__print.is-sleeve { border-color: transparent; }
.perso__print.is-slots {
    border-color: transparent;
    pointer-events: none;
}
.perso__slot {
    position: absolute;
    box-sizing: border-box;
    border: 1px dashed rgba(20, 20, 20, .72);
    pointer-events: auto;
    touch-action: none;
    cursor: pointer;
}
.perso__slot.is-active {
    border-color: rgba(97, 124, 40, .95);
    background: rgba(97, 124, 40, .07);
    z-index: 1;
}
.perso__print.is-preview .perso__slot {
    border-color: transparent;
    background: transparent;
}
.perso__item {
    position: absolute;
    touch-action: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    user-select: none;
    z-index: 1;
}
.perso__item.is-selected {
    z-index: 2;
    outline: 2px solid var(--c-green, #617C28);
    outline-offset: 0;
}
.perso__item:has(.perso__art) {
    outline: none;
    pointer-events: none;
}
.perso__art {
    position: absolute;
    pointer-events: auto;
}
.perso__ink {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.perso__item.is-selected .perso__art {
    outline: 2px solid var(--c-green, #617C28);
    outline-offset: 0;
}
.perso__item:active { cursor: grabbing; }
.perso__item img, .perso__text { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.perso__text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    font-weight: 700;
    line-height: 1.05;
    text-align: center;
    overflow: hidden;
    contain: paint;
    white-space: pre;
}
.perso__text-line {
    display: inline-block;
    max-width: none;
    white-space: pre;
    line-height: 1.05;
    transform-origin: center center;
}
.perso__print.is-preview .perso__item.is-selected,
.perso__print.is-preview .perso__art { outline: none; }
.perso__cm {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 4px);
    transform: translateX(-50%);
    background: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 4px;
    white-space: nowrap;
}
.perso__handle {
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid var(--c-green, #617C28);
    border-radius: 50%;
    background: #fff;
    padding: 0;
    z-index: 3;
    touch-action: none;
}
.perso__handle--nw { left: -8px; top: -8px; cursor: nwse-resize; }
.perso__handle--ne { right: -8px; top: -8px; cursor: nesw-resize; }
.perso__handle--sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.perso__handle--se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.perso__handle--w { left: -8px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.perso__handle--e { right: -8px; top: 50%; transform: translateY(-50%); cursor: ew-resize; }
.perso__handle--n { left: 50%; top: -8px; transform: translateX(-50%); cursor: ns-resize; }
.perso__handle--s { left: 50%; bottom: -8px; transform: translateX(-50%); cursor: ns-resize; }
.perso__handle--axis {
    width: 18px;
    height: 18px;
    border-color: #c41e3a;
    z-index: 4;
}
.perso__handle--rot { left: 50%; bottom: -28px; transform: translateX(-50%); background: var(--c-btn, #8DAA45); cursor: grab; }
@media (max-width: 980px) {
    .perso__cm {
        z-index: 6;
        bottom: calc(100% + 6px);
        font-size: 13px;
        font-weight: 800;
        color: #111;
        background: #fff;
        border: 1px solid #1a1a1a;
        border-radius: 6px;
        padding: 2px 7px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
    }
    .perso__handle,
    .perso__handle--axis {
        width: 16px;
        height: 16px;
        border-color: #617C28;
        background: #fff;
    }
    .perso__handle::after {
        content: "";
        position: absolute;
        inset: -12px;
    }
    .perso__handle--nw { left: -8px; top: -8px; }
    .perso__handle--ne { right: -8px; top: -8px; }
    .perso__handle--sw { left: -8px; bottom: -8px; }
    .perso__handle--se { right: -8px; bottom: -8px; }
    .perso__handle--w { left: -8px; }
    .perso__handle--e { right: -8px; }
    .perso__handle--n { top: -8px; }
    .perso__handle--s { bottom: -8px; }
    .perso__handle--rot {
        width: 20px;
        height: 20px;
        bottom: -28px;
        background: #617C28;
        border-color: #617C28;
    }
    .perso__handle--axis.perso__handle--w { left: -16px; }
    .perso__handle--axis.perso__handle--e { right: -16px; }
    .perso__handle--axis.perso__handle--n { top: -16px; }
    .perso__handle--axis.perso__handle--s { bottom: -16px; }
    .perso__art:has(.perso__handle--axis) .perso__handle--rot,
    .perso__item:has(.perso__handle--axis) .perso__handle--rot { bottom: -40px; }
}
.perso__thumbs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .4rem;
    margin-top: .65rem;
}
.perso__steps,
.perso__step-tools { display: none; }
.perso__thumb {
    border: 1px solid #e4e0d6;
    background: #fff;
    border-radius: 10px;
    padding: .25rem;
    min-width: 0;
}
.perso__thumb.is-active { border-color: var(--c-green, #617C28); border-width: 2px; }
.perso__mini {
    position: relative;
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    background: #fafafa;
}
.perso__mini > img { width: 100%; height: 100%; object-fit: contain; }
.perso__mini-print { position: absolute; }
.perso__mini-item { position: absolute; overflow: hidden; font-size: 8px; font-weight: 700; line-height: 1.05; text-align: center; }
.perso__upload-text {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f6f4;
    border-radius: 6px;
    font-weight: 700;
    color: var(--c-green, #617C28);
}
.perso__mini-item img { width: 100%; height: 100%; object-fit: contain; }
.perso__thumb-label {
    display: block;
    margin-top: .2rem;
    font-size: .72rem;
    line-height: 1.15;
    text-align: center;
    color: #333;
}
.perso__side {
    display: none;
    background: #fff;
}
.perso__close {
    display: block;
    margin: 0 0 .4rem auto;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: 700;
    color: var(--c-green, #617C28);
}
.perso__side.is-open {
    display: block;
    position: fixed;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: calc(4.5rem + env(safe-area-inset-bottom) + var(--vv-bottom, 0px));
    max-height: min(52dvh, var(--perso-sheet, 26rem));
    overflow: auto;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .14);
    padding: .85rem .9rem 1rem;
}
.perso__side h2 {
    margin: 0 0 .55rem;
    font-family: "DM Sans", sans-serif;
    font-size: .95rem;
    font-weight: 700;
}
.perso__card {
    background: #fff;
    border: 1px solid #e4e0d6;
    border-radius: 12px;
    padding: .75rem .8rem .85rem;
}
.perso__product-card { margin-top: .75rem; }
.perso__product { margin: 0; padding: 0; border: 0; }
.perso__product > .perso__kicker:first-of-type { margin-top: .15rem; }
.perso__pick {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin: 0 0 .7rem;
    min-width: 0;
}
.perso__pick img,
.perso__pick .perso__upload-text {
    width: 42px;
    height: 42px;
    flex: none;
    object-fit: contain;
    background: #f6f6f4;
    border-radius: 8px;
}
.perso__pick strong {
    min-width: 0;
    font-size: .9rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.perso__dims {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}
.perso__measure {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
    font-size: .78rem;
    font-weight: 700;
}
.perso__measure-box {
    display: flex;
    align-items: center;
    gap: .3rem;
    min-width: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 0 .5rem;
    background: #fff;
    color: #444;
    font-weight: 600;
}
.perso__measure-box input {
    width: 100%;
    min-width: 0;
    border: 0;
    padding: .42rem 0;
    background: transparent;
    font: inherit;
    font-weight: 600;
    color: #111;
}
.perso__check {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin: .6rem 0 .35rem;
    font-size: .85rem;
    font-weight: 600;
}
.perso__check input { width: 1rem; height: 1rem; margin: 0; flex: none; }
.perso__rot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin: .15rem 0 .55rem;
    font-size: .85rem;
    font-weight: 700;
}
.perso__rot .perso__measure-box { width: 6.5rem; flex: none; }
.perso__turn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 .55rem;
    padding: .28rem .7rem;
    border: 1px solid #ddd;
    border-radius: 999px;
    background: #fff;
    color: #444;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.perso__turn:hover { border-color: #bbb; color: #111; }
.perso__wide,
.perso__pair button {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    padding: .45rem .6rem;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
}
.perso__wide { display: block; width: 100%; margin: .35rem 0; }
.perso__wide:not(.perso__danger) { color: var(--c-green, #617C28); border-color: var(--c-green, #617C28); }
.perso__pair { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-top: .35rem; }
.perso__pair button { width: 100%; }
.perso__hex {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2.4rem;
    gap: .4rem;
    align-items: center;
}
.perso__hex-code {
    font: inherit;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: .45rem .55rem;
    width: 100%;
    background: #fff;
}
.perso__hex-swatch {
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    border: 1px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
}
.perso__hex-pop {
    position: fixed;
    z-index: 90;
    width: 220px;
    padding: .65rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14);
}
.perso__hex-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
}
.perso__hex-sv,
.perso__hex-hue { position: relative; touch-action: none; }
.perso__hex-sv {
    height: 130px;
    border-radius: 6px;
    cursor: crosshair;
    background-image: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent);
}
.perso__hex-hue {
    height: 14px;
    border-radius: 999px;
    cursor: pointer;
    background: linear-gradient(90deg, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
.perso__hex-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .45);
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.perso__hex-hue .perso__hex-dot { top: 50%; }
.perso__logo-list { display: flex; flex-direction: column; align-items: stretch; gap: .3rem; margin-bottom: .75rem; }
.perso__logo {
    display: flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    text-align: left;
}
.perso__logo img { width: 28px; height: 28px; object-fit: contain; background: #f6f6f4; border-radius: 6px; flex: none; }
.perso__logo .perso__upload-text { width: 28px; height: 28px; flex: none; }
.perso__logo > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.perso__sizes, .perso__colors, .perso__actions { display: flex; flex-wrap: wrap; gap: .35rem; }
.perso__logo, .perso__sizes button, .perso__actions button, .perso__danger {
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    padding: .4rem .6rem;
    font: inherit;
    font-size: .85rem;
}
.perso__logo.is-active, .perso__sizes button.is-active { border-color: var(--c-green, #617C28); background: #f3f6ea; }
.perso__swatch {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, .15);
    padding: 0;
}
.perso__swatch.is-active { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #222; }
.perso__swatch.is-light { border-color: #ccc; }
.perso__field { display: flex; flex-direction: column; gap: .2rem; margin: .45rem 0; font-size: .85rem; font-weight: 600; }
.perso__field input, .perso__field textarea, .perso__field select {
    font: inherit;
    font-weight: 500;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: .45rem .55rem;
    width: 100%;
    background: #fff;
}
@font-face {
    font-family: "Gagalin";
    src: url("../fonts/Gagalin-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
.perso__font { position: relative; }
.perso__font-btn {
    position: relative;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: .45rem 1.7rem .45rem .55rem;
    background: #fff;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.3;
}
.perso__font-btn::after {
    content: "";
    position: absolute;
    right: .7rem;
    top: 50%;
    width: .4rem;
    height: .4rem;
    border-right: 2px solid #333;
    border-bottom: 2px solid #333;
    transform: translateY(-70%) rotate(45deg);
}
.perso__font-list {
    position: absolute;
    z-index: 6;
    left: 0;
    right: 0;
    top: calc(100% + .2rem);
    max-height: 16rem;
    margin: 0;
    padding: .2rem 0;
    overflow: auto;
    list-style: none;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
}
.perso__font-list button {
    display: block;
    width: 100%;
    margin: 0;
    padding: .4rem .7rem;
    border: 0;
    background: transparent;
    text-align: left;
    font-size: 1.2rem;
    line-height: 1.25;
    color: #111;
}
.perso__font-list button.is-active,
.perso__font-list button:hover { background: #f3f6ea; }
.perso__kicker { margin: .7rem 0 .3rem; font-size: .8rem; font-weight: 700; }
.perso__hint { color: #555; font-size: .78rem; font-weight: 500; margin: .35rem 0; }
.perso__bg-note { margin: 0 0 .15rem; padding: 0; border: 0; background: none; color: #767676; font-size: .72rem; font-weight: 400; line-height: 1.35; }
.perso__wide[aria-busy="true"] { opacity: .55; }
.perso__bg-dots { display: inline-block; width: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom; animation: bsBgDots 1.4s steps(4, end) infinite; }
@keyframes bsBgDots { to { width: 1.45em; } }
@media (prefers-reduced-motion: reduce) {
    .perso__bg-dots { width: auto; animation: none; }
}
.perso__price { margin-top: .65rem; }
.perso__retry {
    display: inline-block;
    margin-top: .35rem;
    padding: .35rem .7rem;
    border: 1px solid var(--c-green, #617C28);
    border-radius: 8px;
    background: #fff;
    color: var(--c-green, #617C28);
    font: inherit;
    font-size: .8rem;
    font-weight: 700;
}
.perso__deal {
    text-align: center;
    background: #f3f6ea;
    border-radius: 12px;
    padding: .7rem .65rem .8rem;
    margin: 0 0 .65rem;
}
.perso__deal-amount {
    margin: 0;
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #0d0d0d;
}
.perso__deal-label {
    margin: .12rem 0 .28rem;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.15;
    color: #0d0d0d;
}
.perso__deal-note,
.perso__deal-meta {
    margin: 0;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.3;
    color: #6d6d6d;
}
.perso__deal-meta { margin-top: .15rem; color: #8a8a8a; }
.perso__breakdown { margin: 0; }
.perso__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem;
    margin: .28rem 0;
    font-size: .875rem;
    line-height: 1.3;
    color: #333;
}
.perso__row span { min-width: 0; }
.perso__row strong { font-weight: 700; color: #0d0d0d; white-space: nowrap; }
.perso__total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: .6rem;
    margin: .45rem 0 0;
    padding-top: .5rem;
    border-top: 1px solid #e4e0d6;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0d0d0d;
}
.perso__total-row strong { font-size: 1rem; white-space: nowrap; }
.perso__danger { color: #8d1d1d; }
.perso__delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
}
.perso__delete svg,
.perso__delete-long { display: none; }
.perso__undo-delete[hidden] { display: none; }
.perso__desktop-actions { display: none; }
.perso__bar {
    position: fixed;
    z-index: 40;
    left: 0;
    right: 0;
    bottom: var(--vv-bottom, 0px);
    background: #fff;
    border-top: 1px solid #e6e2d8;
    padding: .4rem .6rem calc(.45rem + env(safe-area-inset-bottom));
}
.perso__bar-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .25rem; }
.perso__bar-tools button {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: .78rem;
    font-weight: 700;
    padding: .35rem .1rem;
    color: var(--c-green, #617C28);
}
.perso__bar-buy { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .5rem; }
.perso [data-order].btn--primary,
.perso [data-order].btn--primary:focus,
.perso [data-order].btn--primary:active {
    background: #000000;
    background-image: none;
    border-color: #000000;
    color: #FFFFFF;
    opacity: 1;
    filter: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.perso [data-order].btn--primary:hover {
    background: #222222;
    background-image: none;
    border-color: #222222;
    color: #FFFFFF;
    opacity: 1;
    filter: none;
    box-shadow: none;
}
.perso__bar-buy p { margin: 0; min-width: 0; }
.perso__bar-buy strong { display: block; font-size: 1rem; }
.perso__bar-buy span { font-size: .75rem; color: #555; }
.perso__bar-buy .btn { width: 100%; white-space: normal; line-height: 1.15; padding: .6rem .7rem; }
.perso__toast {
    position: fixed;
    z-index: 50;
    left: .7rem;
    right: .7rem;
    bottom: calc(5.2rem + var(--vv-bottom, 0px));
    margin: 0;
    background: #243018;
    color: #fff;
    border-radius: 10px;
    padding: .55rem .7rem;
    font-size: .85rem;
}
.perso__modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}
.perso__modal[hidden] { display: none; }
.perso__modal-panel {
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    width: min(100%, 720px);
    max-height: calc(100dvh - 2.5rem);
    overflow: auto;
}
.perso__modal-panel--preview {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.perso__modal-panel--preview .perso__preview-grid {
    min-height: 0;
    overflow: auto;
}
.perso__modal-panel--preview > .btn {
    flex: none;
    margin-top: .75rem;
}
.perso__preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.perso__preview-grid img { width: 100%; background: #fafafa; border-radius: 8px; }
.perso__preview-grid figcaption { font-size: .85rem; text-align: center; }
.perso .btn--ghost { background: #fff; color: var(--c-green, #617C28); border: 1px solid var(--c-green, #617C28); }

@media (max-width: 979px) {
    .perso {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
        padding-bottom: calc(5.6rem + env(safe-area-inset-bottom) + var(--vv-bottom, 0px));
    }
    .perso__top {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "back heading actions";
        gap: .25rem .5rem;
        align-items: center;
        padding: .4rem .7rem;
    }
    .perso__top .perso__logo { display: none; }
    .perso__heading h1 { display: none; }
    .perso__heading p {
        margin: 0;
        font-size: .92rem;
        font-weight: 700;
        line-height: 1.2;
        color: #1a1a1a;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .perso__back { font-size: .78rem; white-space: nowrap; }
    .perso__actions { gap: .15rem; }
    .perso__cart { min-width: 2.2rem; }
    .perso__cart-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .perso .perso__save {
        padding: .2rem .15rem;
        background: transparent;
        color: var(--c-green, #617C28);
        border: 0;
        font-size: .75rem;
        font-weight: 700;
        line-height: 1.1;
    }
    .perso-body { overflow-x: clip; }
    .perso__layout {
        display: block;
        min-height: 0;
        overflow: visible;
    }
    .perso__center { display: contents; }
    .perso__stage {
        display: block;
        position: sticky;
        top: 0;
        z-index: 8;
        min-height: 0;
        margin: 0;
        padding: .45rem .7rem 0;
        background: #f3f1ec;
    }
    .perso__frame,
    .perso__frame.perso__frame--native {
        width: 100%;
        max-width: none;
        height: auto;
        aspect-ratio: 1;
        margin: 0 auto;
    }
    .perso__print { touch-action: pan-y; }
    .perso__item,
    .perso__art,
    .perso__handle,
    .perso__slot { touch-action: none; }
    .perso.is-keyboard .perso__frame,
    .perso.is-keyboard .perso__frame.perso__frame--native {
        width: min(100%, max(9.25rem, calc(var(--vv-height, 320px) * 0.4)));
        height: auto;
        aspect-ratio: 1;
    }
    .perso__thumbs {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        z-index: 1;
        display: flex;
        align-items: stretch;
        justify-content: center;
        gap: .5rem;
        width: auto;
        margin: .4rem 0 0;
        pointer-events: auto;
    }
    .perso__thumb {
        display: flex;
        flex-direction: column;
        box-sizing: border-box;
        flex: 0 0 50px;
        width: 50px;
        height: 64px;
        min-width: 0;
        padding: 2px 2px 3px;
        border: 2px solid #c4bfb4;
        border-radius: 8px;
        background: #fff;
        box-shadow: none;
        overflow: hidden;
    }
    .perso__thumb .perso__mini {
        flex: 1 1 auto;
        min-height: 0;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        background: #fff;
        border-radius: 4px;
    }
    .perso__thumb.is-active {
        background: #e7f3c4;
        border-color: #3e6412;
    }
    .perso__thumb-label {
        flex: 0 0 auto;
        margin-top: 1px;
        font-size: 10px;
        font-weight: 700;
        line-height: 1.05;
        max-height: 2.15em;
        color: #111;
        white-space: nowrap;
        overflow: hidden;
    }
    .perso__thumb.is-active .perso__thumb-label { font-weight: 800; color: #1a2a08; }
    .perso__steps {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: .35rem;
        margin: .45rem .7rem 0;
        flex: none;
    }
    .perso__steps button {
        margin: 0;
        border: 1px solid #e4e0d6;
        border-radius: 10px;
        background: #fff;
        color: #243018;
        font: inherit;
        font-size: .68rem;
        font-weight: 700;
        line-height: 1.15;
        padding: .45rem .2rem;
        white-space: normal;
        text-align: center;
    }
    .perso__steps button.is-on {
        background: #92CC1C;
        border-color: #92CC1C;
        color: #000000;
    }
    .perso__step-tools {
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: .4rem;
        margin: .45rem .7rem 0;
    }
    .perso[data-mobile-step="visual"] .perso__step-tools { display: grid; }
    .perso__step-tools button {
        margin: 0;
        border: 1px solid #e4e0d6;
        border-radius: 10px;
        background: #fff;
        color: var(--c-green, #617C28);
        font: inherit;
        font-size: .82rem;
        font-weight: 700;
        padding: .65rem .45rem;
    }
    .perso__step-tools .perso__import {
        grid-column: 1 / -1;
        background: #92CC1C;
        border-color: #92CC1C;
        color: #111;
        font-size: .92rem;
        padding: .75rem .6rem;
    }
    .perso__tools { display: none; }
    .perso__bar {
        position: fixed;
        z-index: 45;
        left: 0;
        right: 0;
        bottom: var(--vv-bottom, 0px);
        background: #fff;
        border-top: 1px solid #e6e2d8;
        padding: .4rem .7rem calc(.4rem + env(safe-area-inset-bottom));
    }
    .perso__bar-tools { display: none; }
    .perso__bar-buy {
        position: static;
        z-index: auto;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        border-top: 0;
        padding: 0;
        background: transparent;
    }
    .perso__side,
    .perso__side.is-open {
        display: block;
        position: static;
        z-index: 1;
        left: auto;
        right: auto;
        bottom: auto;
        max-height: none;
        overflow: visible;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: transparent;
        scroll-margin-top: .4rem;
    }
    .perso__close { display: none; }
    .perso__side-scroll {
        overflow: visible;
        max-height: none;
        padding: .35rem .7rem .2rem;
    }
    .perso__logo-list {
        flex-direction: row;
        gap: .35rem;
        overflow-x: auto;
        margin-bottom: .4rem;
    }
    .perso__side .perso__logo {
        width: auto;
        flex: 0 0 auto;
        max-width: 16rem;
        border-radius: 8px;
        padding: .3rem .45rem;
    }
    .perso__kicker { margin: .35rem 0 .4rem; font-size: .84rem; }
    .perso__hint { font-size: .84rem; line-height: 1.35; }
    .perso__field { font-size: .9rem; }
    .perso__delete {
        min-height: 44px;
        color: #7a1414;
        border-color: #7a1414;
        background: #fff6f6;
        font-weight: 800;
    }
    .perso__delete svg { display: block; flex: none; }
    .perso__delete-long { display: inline; }
    .perso__delete-short { display: none; }
    .perso__pair:has(.perso__delete) { grid-template-columns: 1fr; }
    .perso__undo-delete {
        position: fixed;
        z-index: 46;
        left: .7rem;
        right: .7rem;
        bottom: calc(4.7rem + env(safe-area-inset-bottom) + var(--vv-bottom, 0px));
        min-height: 44px;
        margin: 0;
        border: 1px solid #3e6412;
        border-radius: 10px;
        background: #fff;
        color: #1a2a08;
        font: inherit;
        font-size: .9rem;
        font-weight: 800;
    }
    .perso__side h2 { margin-bottom: .3rem; font-size: .9rem; }
    .perso__pick { margin-bottom: .4rem; }
    .perso__card { padding: .6rem .65rem .7rem; }
    .perso__bar [data-retry-quote],
    .perso__price .perso__retry {
        margin-top: .25rem;
        padding: .2rem .45rem;
        border: 1px solid var(--c-green, #617C28);
        border-radius: 8px;
        background: #fff;
        color: var(--c-green, #617C28);
        font: inherit;
        font-size: .75rem;
        font-weight: 700;
    }
    .perso[data-mobile-step="visual"]:not([data-has-item]) .perso__side { display: none; }
    .perso[data-mobile-step="visual"] [data-product],
    .perso[data-mobile-step="visual"] [data-price] { display: none; }
    .perso[data-mobile-step="order"] [data-settings],
    .perso[data-mobile-step="order"] [data-price] { display: none; }
    .perso[data-mobile-step="price"] [data-settings],
    .perso[data-mobile-step="price"] [data-product] { display: none; }
    .perso[data-mobile-step="order"] .perso__product-card,
    .perso[data-mobile-step="price"] .perso__product-card { margin-top: 0; }
}

@media (min-width: 980px) {
    .perso { padding-bottom: 0; height: 100dvh; overflow: hidden; }
    .perso-body { height: 100dvh; overflow: hidden; }
    .perso__top {
        grid-template-columns: auto auto 1fr auto;
        grid-template-areas: "logo back heading actions";
        padding: .55rem 1rem;
    }
    .perso__heading p { white-space: normal; }
    .perso__layout {
        flex: 1;
        min-height: 0;
        display: grid;
        grid-template-columns: 168px minmax(0, 1fr) 380px;
        background: #f3f1ec;
    }
    .perso__tools {
        display: flex;
        flex-direction: column;
        gap: .35rem;
        padding: .7rem;
        background: #fff;
        border-right: 1px solid #e6e2d8;
        min-height: 0;
        overflow: auto;
    }
    .perso__tools > button {
        border: 1px solid #e4e0d6;
        background: #fff;
        border-radius: 10px;
        padding: .55rem .3rem;
        font: inherit;
        font-size: .75rem;
        font-weight: 700;
        color: #243018;
    }
    .perso__center {
        overflow: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: .7rem .85rem 1rem;
    }
    .perso__stage { width: min(100%, 640px); margin-inline: auto; }
    .perso__frame,
    .perso__thumbs { width: min(100%, 640px); }
    .perso__frame { position: relative; }
    .perso__thumbs { position: static; }
    .perso__close { display: none; }
    .perso__side,
    .perso__side.is-open {
        display: flex;
        flex-direction: column;
        position: static;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
        border-left: 1px solid #e6e2d8;
        padding: 0;
        overflow: hidden;
        bottom: auto;
        background: #f3f1ec;
    }
    .perso__side-scroll { overflow: auto; padding: .75rem .8rem .9rem; flex: 1; min-height: 0; }
    .perso__desktop-actions {
        display: flex;
        align-items: stretch;
        gap: .5rem;
        padding: .7rem 1rem;
        border-top: 1px solid #eee;
    }
    .perso__desktop-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
        white-space: normal;
        line-height: 1.15;
        padding: .65rem .75rem;
        text-align: center;
    }
    .perso__desktop-actions .btn--ghost { flex: 0 0 auto; }
    .perso__bar { display: none; }
    .perso__toast { bottom: 1rem; left: auto; right: 1rem; width: min(360px, 40vw); }
    .perso__deal { padding: .85rem .7rem .95rem; margin-bottom: .75rem; }
    .perso__deal-amount { font-size: 2.25rem; }
    .perso__deal-label { font-size: 1.05rem; }
}

.order-block { min-width: 0; max-width: 100%; }
.order-block h2.order-title {
    margin: 0;
    font-family: "DM Serif Display", serif;
    font-size: 1.45rem;
    font-weight: 400;
    line-height: 1.1;
}
.order-lead { margin: .35rem 0 .75rem; color: #555; font-size: .85rem; line-height: 1.35; }
.order-lead__wide { display: none; }
.order-swatches { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 .75rem; }
.order-swatches .perso__swatch { position: relative; width: 32px; height: 32px; }
.order-swatches .perso__swatch.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--c-green, #617C28); }
.order-tick {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}
.order-head { display: none; }
.order-line {
    position: relative;
    border: 1px solid #e4e0d6;
    border-radius: 12px;
    padding: .7rem .7rem .65rem;
    margin-top: .55rem;
    background: #fff;
}
.order-line__color { display: flex; align-items: center; gap: .4rem; min-width: 0; margin-bottom: .55rem; padding-right: 1.2rem; }
.order-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex: none;
    border: 1px solid rgba(0, 0, 0, .12);
}
.order-dot.is-light { border-color: #ccc; }
.order-line__name { font-weight: 700; font-size: .92rem; min-width: 0; }
.order-line__sum { margin-left: auto; font-size: .82rem; color: #333; white-space: nowrap; }
.order-line__sizes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .4rem .45rem;
}
.order-cell { display: flex; flex-direction: column; gap: .15rem; min-width: 0; font-size: .72rem; font-weight: 700; color: #666; }
.order-cell input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    text-align: center;
    border: 1px solid #d9d4c8;
    border-radius: 8px;
    padding: .4rem .15rem;
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    color: #0d0d0d;
    background: #fff;
}
.order-cell input::-webkit-outer-spin-button,
.order-cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.order-cell input[type="number"],
.order-cell input[type="text"] { -moz-appearance: textfield; appearance: textfield; }
.order-line__total { display: none; }
.order-line__remove {
    position: absolute;
    top: .45rem;
    right: .4rem;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 1.15rem;
    line-height: 1;
    padding: .15rem .25rem;
}
.order-summary { margin: .75rem 0 .25rem; font-size: .88rem; }
.order-hint { margin: .15rem 0 .35rem; color: #617C28; }

@media (min-width: 980px) {
    .order-lead__wide { display: inline; }
    .order-lead__narrow { display: none; }
    .order-sheet { border: 1px solid #ece8df; border-radius: 10px; overflow: hidden; }
    .order-head,
    .order-line {
        display: grid;
        grid-template-columns: minmax(4.4rem, 1.15fr) repeat(var(--n), minmax(0, 1fr)) 1.55rem 1.15rem;
        gap: .18rem;
        align-items: center;
    }
    .order-head {
        background: #f6f4ef;
        padding: .35rem .3rem;
        font-size: .68rem;
        font-weight: 700;
        color: #666;
    }
    .order-head span:not(:first-child) { text-align: center; }
    .order-line {
        position: static;
        border: 0;
        border-radius: 0;
        border-bottom: 1px solid #eee;
        margin: 0;
        padding: .4rem .3rem;
        background: transparent;
    }
    .order-line:last-child { border-bottom: 0; }
    .order-line__color { display: flex; margin: 0; padding: 0; gap: .3rem; }
    .order-line__name {
        font-size: .75rem;
        font-weight: 600;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .order-line__sum { display: none; }
    .order-line__sizes { display: contents; }
    .order-cell span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }
    .order-cell input { padding: .3rem .05rem; font-size: .8rem; }
    .order-line__total { display: block; text-align: center; font-size: .82rem; }
    .order-line__remove { position: static; justify-self: center; }
}
.order-cell.is-off input { visibility: hidden; }
.order-cell.is-off::after {
    content: '–';
    color: #b5b5b5;
    font-size: .9rem;
    line-height: 1;
}
