.motif-viewer-launch {
    position: fixed; right: 0; top: 42%; z-index: 1030;
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px 12px 16px;
    border: 0; border-radius: 12px 0 0 12px; background: var(--main-color); color: var(--main-text-color);
    box-shadow: -2px 4px 14px rgba(0, 0, 0, .25); font-size: 13px; font-weight: 700; cursor: pointer;
    transform: translateX(calc(100% - 46px)); transition: transform .2s ease;
}
.motif-viewer-launch:hover, .motif-viewer-launch:focus-visible { transform: translateX(0); }
.motif-viewer-launch[hidden] { display: none; }
.motif-viewer-launch svg { flex: none; }
html.mv-open { overflow: hidden; }
.motif-viewer {
    width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0;
    border: 0; background: #f4f4f4; color: var(--second-color); overflow: hidden;
}
.motif-viewer::backdrop { background: rgba(0, 0, 0, .8); }
.motif-viewer .mv-stage { position: relative; width: 100%; height: 100%; overflow: hidden; touch-action: pan-y; user-select: none; }
.motif-viewer .mv-track { position: absolute; inset: 0; will-change: transform; }
.motif-viewer .mv-slide { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.motif-viewer .mv-slide img { flex: none; height: 100dvh; width: auto; max-width: none; aspect-ratio: 1; object-fit: cover; pointer-events: none; }
.motif-viewer .mv-close {
    position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--second-color);
    font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.motif-viewer .mv-counter {
    position: absolute; top: 22px; left: 16px; z-index: 3; padding: 4px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .92); font-size: 13px; font-weight: 600;
}
.motif-viewer .mv-arrow {
    position: absolute; top: 50%; z-index: 3; display: none; width: 52px; height: 52px; margin-top: -26px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--second-color);
    font-size: 30px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}
.motif-viewer .mv-arrow:disabled { opacity: .35; cursor: default; }
.motif-viewer .mv-prev { left: 18px; }
.motif-viewer .mv-next { right: 18px; }
@media (min-width: 768px) {
    .motif-viewer .mv-arrow {
        top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; width: 50%; height: auto; margin: 0; padding: 0 18px;
        border-radius: 0; background: transparent; box-shadow: none; font-size: 0;
    }
    .motif-viewer .mv-prev { left: 0; justify-content: flex-start; }
    .motif-viewer .mv-next { right: 0; justify-content: flex-end; }
    .motif-viewer .mv-arrow::after {
        display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%;
        background: rgba(255, 255, 255, .92); box-shadow: 0 2px 10px rgba(0, 0, 0, .2); color: var(--second-color); font-size: 30px; line-height: 1;
    }
    .motif-viewer .mv-prev::after { content: '\2039'; }
    .motif-viewer .mv-next::after { content: '\203A'; }
    .motif-viewer .mv-arrow:not(:disabled):hover::after { background: #fff; }
    .motif-viewer .mv-arrow:disabled { opacity: 1; cursor: default; }
    .motif-viewer .mv-arrow:disabled::after { opacity: .35; }
}
.motif-viewer .mv-info {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(0deg, rgba(255, 255, 255, .96) 65%, rgba(255, 255, 255, 0));
}
.motif-viewer .mv-name { margin: 0; font-size: 24px; font-weight: 700; line-height: 1.25; }
.motif-viewer .mv-price { margin: 2px 0 0; font-size: 20px; font-weight: 700; color: var(--main-color); }
.motif-viewer .mv-btn-price { display: none; }
.motif-viewer .mv-info .t-btn { padding: .9em 1.8em; font-size: 17px; white-space: nowrap; }
@media (max-width: 767px) {
    .motif-viewer .mv-stage { touch-action: none; }
    .motif-viewer .mv-info { flex-direction: column; align-items: stretch; gap: 12px; padding: 56px 16px calc(16px + env(safe-area-inset-bottom)); }
    .motif-viewer .mv-name { font-size: 22px; }
    .motif-viewer .mv-price { display: none; }
    .motif-viewer .mv-info .t-btn { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 1em 1.2em; font-size: 17px; }
    .motif-viewer .mv-btn-price { display: inline; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .5); font-weight: 700; }
}

body:has(.mobile-menu[open]) .motif-viewer-launch { display: none; }
@media (max-width: 767px) {
    .motif-viewer-launch { transform: none; transition: none; gap: 0; padding: 12px 12px 12px 14px; }
    .motif-viewer-launch > span { display: none; }
}

.motif-viewer .mv-info .t-btn.is-loading { opacity: .75; pointer-events: none; }
