/*
 * designer-piagam_lari.css — the running medal display designer (lib/products/piagam_lari.php):
 * the stage view switch (3D product / 2D photo placement), the camera chips and the sample-route
 * badge on the 3D stage, the poster canvas over it, the form tabs, upload cards, theme / layout pickers. Loaded on every page that shows designs (shop_designer_assets()).
 */

/* ---- stage ---- */
.pl-views { display: flex; gap: 6px; margin: 0 0 10px; padding: 5px; border-radius: 14px; background: var(--surface, #fff); border: 1px solid var(--line, #e2e8f0);
    overflow-x: auto; scrollbar-width: none; }
.pl-views::-webkit-scrollbar { display: none; }
.pl-view { flex: 1 1 0; min-width: max-content; padding: 9px 14px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2, #334155);
    font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.pl-view:hover { background: var(--tint-1, #f1f0f7); }
.pl-view[aria-selected="true"] { background: var(--accent); color: var(--accent-ink, #fff); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.pl-view:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 2px; }

.designer-piagam_lari .designer-canvas { background: radial-gradient(120% 95% at 50% 0%, #fbfaf8 0%, #efebe4 65%, #e4ded3 100%); }
.designer-canvas .pl-poster { position: absolute; inset: 0; z-index: 1; cursor: default; touch-action: none; }
.designer-canvas .pl-poster.pl-can-drag { cursor: grab; }
.designer-canvas .pl-poster.pl-dragging { cursor: grabbing; }
.designer-canvas .pl-poster[hidden] { display: none !important; }
/* the 2D view covers the (paused) 3D canvas completely */
.designer-canvas.pl-is-poster .pl-poster { background: radial-gradient(120% 95% at 50% 0%, #fbfaf8 0%, #efebe4 65%, #e4ded3 100%); }

/* camera chips (front / relief / medal) and the sample-route badge, over the 3D stage */
.pl-cams { position: absolute; top: 10px; left: 10px; z-index: 2; display: flex; gap: 4px; padding: 3px; border-radius: 999px;
    background: color-mix(in srgb, var(--surface, #fff) 82%, transparent); backdrop-filter: blur(6px); box-shadow: 0 2px 10px -4px rgba(30, 20, 60, .25); }
.pl-cams[hidden] { display: none; }
.pl-cam { padding: 5px 11px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2, #334155); font: inherit; font-size: .78rem;
    font-weight: 700; cursor: pointer; }
.pl-cam:hover { background: var(--tint-1, #f1f0f7); color: var(--accent-text, var(--accent)); }
.pl-cam:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.pl-demo { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; width: fit-content; margin: 0 auto; display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 999px; background: rgba(20, 16, 12, .78); color: #fff; font-size: .76rem;
    font-weight: 700; line-height: 1.25; pointer-events: none; }
.pl-demo .icon { width: 14px; height: 14px; flex: none; }
.pl-demo[hidden] { display: none; }
@media (max-width: 420px) { .pl-cam { padding: 4px 9px; font-size: .74rem; } .pl-demo { font-size: .7rem; padding: 5px 10px; } }

/* read-only views (cart, order page, admin): a small switch on the picture */
.pl-views-sm { position: absolute; left: 6px; right: 6px; bottom: 6px; z-index: 3; margin: 0; padding: 3px; gap: 3px; border-radius: 10px;
    background: color-mix(in srgb, var(--surface, #fff) 88%, transparent); backdrop-filter: blur(6px); }
.pl-views-sm .pl-view { padding: 4px 6px; font-size: .72rem; border-radius: 7px; min-width: 0; }
.pl-png { margin-top: 4px; }

/* ---- form tabs ---- */
.pl-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin: 14px 0 2px; padding: 4px; border-radius: 14px;
    background: var(--bg-alt, #f6f6f9); border: 1px solid var(--line, #e2e8f0); }
.pl-tab { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 6px; border: 0; border-radius: 10px; background: transparent;
    font: inherit; font-weight: 700; font-size: .88rem; color: var(--ink-2, #334155); cursor: pointer; line-height: 1.15; text-align: center; }
.pl-tab .icon { width: 16px; height: 16px; flex: none; }
.pl-tab:hover { color: var(--accent-text, var(--accent)); }
.pl-tab[aria-selected="true"] { background: var(--surface, #fff); color: var(--accent-text, var(--accent)); box-shadow: 0 2px 10px -4px rgba(30, 20, 60, .25), inset 0 0 0 1px var(--line, #e2e8f0); }
.pl-tab:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
@media (max-width: 420px) { .pl-tab { flex-direction: column; gap: 3px; font-size: .78rem; padding: 8px 4px; } }
.pl-panel { display: grid; min-width: 0; }
.pl-panel > .opt:first-child { margin-top: 10px; }
.pl-lead { margin: -2px 0 0; }

/* ---- upload cards ---- */
.pl-up { position: relative; display: grid; gap: 6px; }
.pl-up-drop { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px dashed var(--line-2, #cbd5e1); border-radius: 14px;
    background: var(--surface, #fff); cursor: pointer; transition: border-color .15s, background .15s; min-height: 72px; }
.pl-up-drop:hover, .pl-up-drop:focus-within { border-color: var(--accent); background: var(--tint-1, #f1f0f7); }
.pl-up.is-set .pl-up-drop { border-style: solid; border-color: color-mix(in srgb, var(--accent) 55%, var(--line-2, #cbd5e1)); }
.pl-up-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; padding: 0; cursor: pointer; }
.pl-up-ico { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--tint-1, #f1f0f7); color: var(--accent-text, var(--accent)); flex: none; }
.pl-up-ico .icon { width: 22px; height: 22px; }
.pl-up-txt { display: grid; gap: 1px; min-width: 0; flex: 1; }
.pl-up-txt strong { font-size: .95rem; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.pl-up-txt strong em { font-style: normal; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #64748b); }
.pl-up-txt strong em.is-req { color: var(--accent-text, var(--accent)); }
.pl-up-txt small { color: var(--muted, #64748b); font-size: .8rem; line-height: 1.3; }
.pl-up-txt .pl-up-state { color: var(--ink-2, #334155); font-weight: 600; }
.pl-up.is-set .pl-up-state { color: #047857; }
.pl-up-thumb { width: 56px; height: 56px; border-radius: 10px; flex: none; box-shadow: 0 0 0 1px var(--line-2, #cbd5e1); background: var(--bg-alt, #f6f6f9); }
.pl-up-x { position: absolute; top: -8px; right: -8px; z-index: 2; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%;
    border: 1px solid var(--line-2, #cbd5e1); background: var(--surface, #fff); color: var(--ink-2, #334155); cursor: pointer; box-shadow: 0 2px 8px -3px rgba(0, 0, 0, .3); }
.pl-up-x .icon { width: 14px; height: 14px; }
.pl-up-x:hover { color: #b91c1c; border-color: #fca5a5; }

/* ---- texts ---- */
.pl-quick { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.pl-quick-btn { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-2, #cbd5e1); background: var(--surface, #fff); font: inherit; font-size: .72rem;
    font-weight: 700; letter-spacing: .03em; color: var(--ink-2, #334155); cursor: pointer; }
.pl-quick-btn:hover { border-color: var(--accent); color: var(--accent-text, var(--accent)); }

/* ---- theme / font / layout pickers ---- */
.pl-themes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 480px) { .pl-themes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pl-theme > span { padding: 8px 6px 7px; gap: 6px; font-size: .8rem; }
.pl-th { position: relative; display: block; width: 100%; height: 38px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); overflow: hidden; }
.pl-th b { position: absolute; left: 10%; top: 26%; width: 42%; height: 18%; border-radius: 3px; }
.pl-th::after { content: ""; position: absolute; right: 12%; top: 22%; width: 26%; aspect-ratio: 1; border-radius: 50%; border: 2px solid; }
.pl-th-ember { background: linear-gradient(135deg, #2a1f19, #0a0807); }
.pl-th-ember b { background: #ff5a1f; } .pl-th-ember::after { border-color: #ff5a1f; }
.pl-th-light { background: linear-gradient(135deg, #fffaf2, #e9dfcf); }
.pl-th-light b { background: #1a1613; } .pl-th-light::after { border-color: #e04e1b; }
.pl-th-navy { background: linear-gradient(135deg, #1a355c, #071325); }
.pl-th-navy b { background: #f2b632; } .pl-th-navy::after { border-color: #f2b632; }
.pl-th-forest { background: linear-gradient(135deg, #1f4636, #08170f); }
.pl-th-forest b { background: #b9e35a; } .pl-th-forest::after { border-color: #b9e35a; }
.pl-hfonts .ochip > span { min-width: 110px; font-size: 1rem; }
.pl-hf-tegas { font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.pl-hf-sporty { font-weight: 800; letter-spacing: -.01em; text-transform: uppercase; font-stretch: condensed; font-style: italic; }
.pl-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pl-layout > span { padding: 8px 6px; gap: 4px; font-size: .82rem; }
.pl-layout svg { color: var(--accent-text, var(--accent)); max-width: 100%; height: auto; }
.pl-pkg .opt-step span .icon { width: 15px; height: 15px; }

/* the stage is closer to the product's own shape (A4 landscape); a little taller on phones */
.designer-piagam_lari .designer-canvas { aspect-ratio: 3 / 2; }
@media (max-width: 600px) { .designer-piagam_lari .designer-canvas { aspect-ratio: 4 / 3; } }
@media (max-width: 420px) { .pl-view { padding: 8px 10px; font-size: .84rem; } }
@media (max-width: 900px) {
    /* a long form: keep the price and the button in view while scrolling */
    .designer-piagam_lari .designer-buy { position: sticky; bottom: 0; z-index: 5; background: var(--surface, #fff); padding-bottom: 12px; margin: 0 -8px;
        padding-left: 8px; padding-right: 8px; box-shadow: 0 -12px 18px -14px rgba(40, 20, 80, .35); }
    .designer-piagam_lari .designer-buy .btn { padding: 11px 20px; }
}
.pl-pkg .ochips-list .ochip > span { grid-template-columns: 1fr; gap: 2px; padding: 10px 14px; }
/* frame colour (printed frame package only) and the studio's assembly sheet */
.pl-fcolor { display: grid; gap: 6px; margin-top: 10px; }
.pl-fcolor[hidden] { display: none; }
.pl-asm { margin-top: 8px; font-size: .85rem; }
.pl-asm ol { margin: 6px 0 0; padding-left: 1.2em; display: grid; gap: 4px; }
/* fixings: the buyer's reassurance line; the admin designer's per-part choice (tool-free / screws) */
.pl-mount-note { display: flex; align-items: flex-start; gap: 6px; }
.pl-mount-note .icon { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--accent-text, var(--accent)); }
.pl-mounts { display: grid; gap: 6px; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line, #e2e8f0); }
.pl-mounts .opt-sub { margin-top: 4px; }
.pl-mounts .ochips-list.pl-mount { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pl-mounts .ochips-list.pl-mount .ochip > span { grid-template-columns: 1fr; gap: 2px; padding: 8px 10px; }
@media (max-width: 420px) { .pl-mounts .ochips-list.pl-mount { grid-template-columns: 1fr; } }
