/* Photo calendar wizard v2 (flag calendar_v2, view wizard-v2.blade.php).
   Loads after photo-calendar-wizard.css. New regions use .pc2-* classes; elements whose classes the
   wizard JS renders or reads (.pc-type-pick, .pc-size-card, .pc-slot, .pc-mini-btn, .pc-progress-step …)
   are restyled under #pc-wizard-root, with !important only where the classic mobile block uses it. */

#pc-wizard-root.pc2,
.pc2-pin { /* the pin lives on <body> (photo-calendar-wizard-v2.js) and needs the same tokens */
    --pc2-navy: #1b2f5b;
    --pc2-navy-2: #223a6e;
    --pc2-gold: #c9a45c;
    --pc2-paper: #f7f4ee;
    --pc2-bar: rgba(251, 249, 244, 0.94);
    --pc2-ink: #5b6478;
    --pc2-mute: #646d84; /* ~4.7:1 on the paper (#6f7890 was ~4.1:1) */
    --pc2-line: #e7e1d4;
    --pc2-line-2: #cfc6b2;
    --pc2-sand: #f1ebdf;
    --pc2-green: #2f6b46;
    --pc2-green-bg: #e8f3ec;
    --pc2-ring: 0 0 0 4px rgba(201, 164, 92, 0.45);
    --pc2-head: 'Playfair Display', Georgia, serif;
    --pc2-gutter: 16px;
    background: var(--pc2-paper);
    color: var(--pc2-navy);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip; /* not hidden: hidden makes a scroll box and breaks the sticky stage */
}

@media (min-width: 768px) {
    #pc-wizard-root.pc2 { --pc2-gutter: 32px; }
}

#pc-wizard-root [hidden],
#pc-wizard-root .is-hidden { display: none !important; }

.pc2 .pc2-sr,
#pc-wizard-root .pc-progress-mobile-hint {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.pc2 :is(a, button, [role="button"], select):focus-visible {
    outline: 2px solid transparent; /* visible in forced-colors */
    box-shadow: var(--pc2-ring);
}

/* ---------------------------------------------------------------- Header + progress */
.pc2-head {
    background: var(--pc2-bar);
    border-bottom: 1px solid var(--pc2-line);
}

.pc2-head-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 10px var(--pc2-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pc2-head-link,
.pc2-help {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pc2-navy);
    text-decoration: none;
    white-space: nowrap;
}

.pc2-head-link:hover { background: #efe9dc; color: var(--pc2-navy); text-decoration: none; }
.pc2-head-link:first-child { margin-left: -10px; }
.pc2-head-link--muted { color: var(--pc2-mute); font-size: 13px; }

.pc2-help { font-size: 13px; font-weight: 600; color: var(--pc2-green); }
.pc2-help:hover { background: var(--pc2-green-bg); color: var(--pc2-green); text-decoration: none; }

.pc2-head-actions { display: flex; align-items: center; gap: 2px; margin-right: -10px; }

.pc2-head-title {
    display: none;
    margin: 0;
    font-family: var(--pc2-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--pc2-navy);
    letter-spacing: -0.01em;
}

@media (max-width: 639px) { /* phones: no room, but keep the page's h1 for screen readers */
    .pc2-head-title { display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}
@media (min-width: 640px) {
    .pc2-head-title { display: block; }
}

.pc2-progress { padding: 4px var(--pc2-gutter) 14px; }

.pc2-progress-inner {
    position: relative;
    max-width: 36rem;
    margin: 0 auto;
}

.pc2-track {
    position: absolute;
    top: 13px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    border-radius: 2px;
    background: #e7e1d4;
    overflow: hidden;
}

.pc2-track-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: var(--pc2-gold);
    transition: width 0.7s ease-out;
}

.pc2-steps {
    position: relative;
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
}

#pc-wizard-root .pc-progress-step {
    flex: 1 1 0 !important;
    height: auto !important;
    background: none !important;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px !important;
    min-width: 0;
}

.pc2-step-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #d8d2c4;
    background: #fff;
    color: var(--pc2-mute);
    font-size: 12px;
    font-weight: 600;
    transition: background 0.4s, color 0.4s, box-shadow 0.4s;
}

.pc2-step-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--pc2-mute);
    white-space: nowrap;
}

.pc-progress-step.is-active .pc2-step-dot {
    border-color: var(--pc2-gold);
    background: var(--pc2-gold);
    color: var(--pc2-navy);
    box-shadow: 0 0 0 4px rgba(201, 164, 92, 0.25);
}

.pc-progress-step.is-active .pc2-step-label { color: var(--pc2-navy); font-weight: 600; }

.pc-progress-step.is-done .pc2-step-dot { border-color: var(--pc2-navy); background: var(--pc2-navy); color: #fff; }
.pc-progress-step.is-done .pc2-step-num { display: none; }
.pc-progress-step.is-done .pc2-step-dot::before {
    content: '';
    width: 10px;
    height: 6px;
    margin-top: -2px;
    border: solid currentColor;
    border-width: 0 0 2px 2px;
    transform: rotate(-45deg);
}

/* ---------------------------------------------------------------- Body + shared type */
.pc2-body {
    max-width: 72rem;
    margin: 0 auto;
    padding: 24px var(--pc2-gutter) calc(124px + env(safe-area-inset-bottom, 0px));
}

#pc-wizard-root .pc-wizard-step { animation: pc2-rise 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }

.pc2-eyebrow {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #9a7a3a; /* gold darkened for AA contrast on paper */
}

#pc-wizard-root .pc2-title {
    margin: 0;
    font-family: var(--pc2-head);
    font-size: clamp(30px, 7.6vw, 46px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.01em;
    color: var(--pc2-navy);
}

#pc-wizard-root .pc2-lead {
    margin: 12px 0 0;
    max-width: 36rem;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pc2-ink);
}

.pc2 .pc-wizard-alert { border-radius: 12px; border-color: var(--pc2-line); background: #fff; color: var(--pc2-navy); }
.pc2 .pc-wizard-alert--error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }

/* ---------------------------------------------------------------- Step 1: contact sheet */
.pc2-photos-head {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 768px) {
    .pc2-photos-head { flex-direction: row; align-items: flex-end; justify-content: space-between; }
}

.pc2-count { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }

.pc2-ring { flex-shrink: 0; transform: rotate(-90deg); }
.pc2-ring circle { fill: none; stroke-width: 5; }
.pc2-ring-bg { stroke: #ece6d9; }
.pc2-ring-fg {
    stroke: var(--pc2-gold);
    stroke-linecap: round;
    stroke-dasharray: 169.65;
    stroke-dashoffset: calc(169.65px * (1 - var(--pc2-n, 0) / 12));
    transition: stroke-dashoffset 0.5s ease;
}

/* Ring fill = number of filled month tiles (a .is-filled with k-1 filled siblings before it). */
.pc2-photos:has(#pc-slots > .is-filled) { --pc2-n: 1; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled) { --pc2-n: 2; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled ~ .is-filled) { --pc2-n: 3; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled ~ .is-filled ~ .is-filled) { --pc2-n: 4; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled) { --pc2-n: 5; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled) { --pc2-n: 6; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled) { --pc2-n: 7; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled) { --pc2-n: 8; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled) { --pc2-n: 9; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled) { --pc2-n: 10; }
.pc2-photos:has(#pc-slots > .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled ~ .is-filled) { --pc2-n: 11; }
.pc2-photos:has(#pc-photo-counter.is-complete),
.pc2-photos:has(#pc-slots.is-single > .is-filled) { --pc2-n: 12 !important; } /* :has() takes its argument's specificity, so the long chains above would win */

#pc-wizard-root .pc2-counter {
    margin: 0;
    max-width: 9rem;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pc2-navy);
    font-variant-numeric: tabular-nums;
}

#pc-wizard-root .pc2-counter.is-complete { color: var(--pc2-green); }

.pc2-drop {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 20px;
    border: 1.5px dashed var(--pc2-line-2);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.pc2-drop:hover,
.pc2-drop.is-dragover { border-color: var(--pc2-gold); background: #fff; }
.pc2-drop.is-dragover { box-shadow: var(--pc2-ring); }

.pc2-drop-art { display: flex; height: 56px; align-items: flex-end; }
.pc2-drop-art i {
    display: block;
    width: 44px;
    height: 56px;
    margin: 0 -7px;
    border: 3px solid #fff;
    border-radius: 6px;
    background: linear-gradient(160deg, #e9dfcb 0%, #d9c7a6 100%);
    box-shadow: 0 6px 14px -6px rgba(27, 47, 91, 0.45);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pc2-drop-art i:nth-child(1) { transform: rotate(-8deg); background: linear-gradient(160deg, #dfe6ee, #b8c6d6); }
.pc2-drop-art i:nth-child(2) { position: relative; z-index: 1; background: linear-gradient(160deg, #f3e3c2, #c9a45c); }
.pc2-drop-art i:nth-child(3) { transform: rotate(8deg); background: linear-gradient(160deg, #e5ddd0, #c8b9a0); }
.pc2-drop:hover .pc2-drop-art i:nth-child(1) { transform: rotate(-12deg) translateY(-4px); }
.pc2-drop:hover .pc2-drop-art i:nth-child(2) { transform: translateY(-6px); }
.pc2-drop:hover .pc2-drop-art i:nth-child(3) { transform: rotate(12deg) translateY(-4px); }

.pc2-drop-title { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--pc2-navy); }
.pc2-drop-hint { font-size: 13px; line-height: 1.5; color: var(--pc2-mute); }

#pc-wizard-root .pc-upload-errors { margin: 16px 0 0; }
#pc-wizard-root .pc-upload-errors li { border-radius: 12px; font-size: 14px; }
#pc-wizard-root .pc-upload-queue { margin: 16px 0 0; }
#pc-wizard-root .pc-queue-item { border-color: var(--pc2-line); border-radius: 12px; }
#pc-wizard-root .pc-progress-bar { background: #ece6d9; }
#pc-wizard-root .pc-progress-bar > span { background: var(--pc2-gold); }

/* Small buttons rendered by the wizard JS (slot actions, retry, cancel). */
#pc-wizard-root .pc-mini-btn {
    width: auto;
    height: auto;
    min-width: 40px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--pc2-line);
    border-radius: 10px;
    background: #fff;
    color: var(--pc2-navy);
    font-size: 13px;
    font-weight: 600;
}
#pc-wizard-root .pc-mini-btn:hover:not(:disabled) { border-color: var(--pc2-line-2); background: #fbf9f4; }
#pc-wizard-root .pc-mini-btn--danger { color: #9b2c2c; }

.pc2-placing {
    position: sticky;
    top: 8px;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 0;
    padding: 8px 8px 8px 16px;
    border: 1px solid #ecd9b0;
    border-radius: 14px;
    background: #fbf3e2;
    color: #6b4f1a;
    font-size: 14px;
    font-weight: 600;
}

/* Month tiles */
.pc2-slots {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
}

@media (min-width: 640px) { .pc2-slots { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 12px; } }
@media (min-width: 1024px) { .pc2-slots { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

.pc2-slots.is-single { grid-template-columns: minmax(0, 280px); }

#pc-wizard-root .pc-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: none;
    box-shadow: none;
    min-width: 0;
}

#pc-wizard-root .pc-slot-month {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    right: 0;
    aspect-ratio: 4 / 5;
    display: flex;
    align-items: flex-end;
    padding: 0 10px 8px;
    border-radius: 12px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 38%);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    pointer-events: none;
}

#pc-wizard-root .pc-slot.is-empty .pc-slot-month { background: none; color: var(--pc2-mute); align-items: flex-start; padding-top: 9px; }

#pc-wizard-root .pc-slot-media,
#pc-wizard-root .pc-slot-add {
    position: relative;
    display: flex;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #efe9dc;
    transition: transform 0.3s, box-shadow 0.3s;
}

#pc-wizard-root .pc-slot-media img { animation: pc2-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
#pc-wizard-root .pc-slot.is-filled:hover .pc-slot-media { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(27, 47, 91, 0.6); }

#pc-wizard-root .pc-slot-add {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1.5px dashed var(--pc2-line-2);
    background: rgba(255, 255, 255, 0.55);
    color: var(--pc2-ink);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
#pc-wizard-root .pc-slot-add i { font-size: 18px; color: #b3a684; }
#pc-wizard-root .pc-slot-add:hover { border-color: var(--pc2-gold); background: #fff; color: var(--pc2-navy); }

/* Placing a tray photo: every tile becomes a drop target. */
.pc2-slots.is-placing .pc-slot-add,
.pc2-slots.is-placing button.pc-slot-media { box-shadow: inset 0 0 0 3px var(--pc2-gold); cursor: pointer; }
.pc2-slots.is-placing .pc-slot-add:focus-visible,
.pc2-slots.is-placing button.pc-slot-media:focus-visible { box-shadow: inset 0 0 0 3px var(--pc2-gold), var(--pc2-ring); }
#pc-wizard-root .pc-slot.is-drop-target .pc-slot-media,
#pc-wizard-root .pc-slot.is-drop-target .pc-slot-add { box-shadow: 0 0 0 4px var(--pc2-gold); transform: scale(0.97); }
#pc-wizard-root .pc-slot.is-dragging { opacity: 0.45; }

#pc-wizard-root .pc-slot-overlay { z-index: 3; font-size: 11px; background: rgba(27, 47, 91, 0.8); }
#pc-wizard-root .pc-slot-warn { font-size: 11.5px; line-height: 1.35; color: #8a5a12; }

#pc-wizard-root .pc-slot-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

#pc-wizard-root .pc-slot-actions .pc-mini-btn {
    width: 100%;
    min-width: 0;
    padding: 0 2px;
    font-size: 11.5px;
    border-radius: 8px;
}

.pc2-slots.is-single .pc-slot-actions { grid-template-columns: 1fr 1fr; }

/* Tray */
.pc2-tray { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--pc2-line); }
.pc2 .pc2-tray h3 { margin: 0; font-family: var(--pc2-head); font-size: 20px; font-weight: 600; color: var(--pc2-navy); }
.pc2 .pc2-tray p { margin: 4px 0 12px; font-size: 13px; color: var(--pc2-ink); }
.pc2-tray-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}
#pc-wizard-root .pc-tray-item {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    padding: 0;
    border: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #efe9dc;
    cursor: pointer;
    transition: transform 0.2s;
}
#pc-wizard-root .pc-tray-item[aria-pressed="true"] { transform: scale(0.94); box-shadow: 0 0 0 3px var(--pc2-gold); }

/* ---------------------------------------------------------------- Step 2: stage + configurator */
.pc2-choose-grid {
    display: grid;
    gap: 32px;
    counter-reset: pc2sec;
}

@media (min-width: 1024px) {
    .pc2-choose-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; }
    .pc2-stage-col { position: sticky; top: 24px; align-self: start; }
}

.pc2-stage-col,
.pc2-config { min-width: 0; }

.pc2-substeps { display: none !important; }

.pc2-stage {
    position: relative;
    margin-top: 22px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    border-radius: 22px;
    background:
        radial-gradient(120% 80% at 30% 10%, #fffdf8 0%, rgba(255, 253, 248, 0) 55%),
        linear-gradient(180deg, #efe7d8 0%, #e6dcc9 100%);
    box-shadow: inset 0 0 0 1px rgba(27, 47, 91, 0.06), 0 30px 60px -40px rgba(27, 47, 91, 0.55);
}

@media (min-width: 640px) { .pc2-stage { height: 520px; } }
@media (min-width: 1024px) { .pc2-stage { height: 560px; } }

/* Window light across the wall + plaster grain; the stage script draws the calendar above these. */
.pc2-stage::before {
    content: '';
    position: absolute;
    z-index: -1;
    top: -20%;
    right: -10%;
    width: 70%;
    height: 140%;
    transform: rotate(18deg);
    background: repeating-linear-gradient(90deg, rgba(255, 250, 236, 0.55) 0 70px, rgba(255, 250, 236, 0) 70px 92px);
    filter: blur(14px);
    opacity: 0.55;
    pointer-events: none;
    animation: pc2-breathe 7s ease-in-out infinite;
}

.pc2-stage::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    opacity: 0.35;
    pointer-events: none;
    background-image: radial-gradient(rgba(27, 47, 91, 0.08) 1px, transparent 1px);
    background-size: 3px 3px;
}

.pc2-config { display: flex; flex-direction: column; gap: 32px; }

.pc2-sec-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0;
    width: 100%;
}

.pc2-sec-num { counter-increment: pc2sec; font-family: var(--pc2-head); font-size: 15px; color: #9a7a3a; }
.pc2-sec-num::before { content: counter(pc2sec, decimal-leading-zero); }

#pc-wizard-root .pc2-sec-head h3 {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--pc2-navy);
    letter-spacing: 0;
}

.pc2-sec-note { margin-left: auto; font-size: 12px; color: var(--pc2-mute); text-align: right; }

.pc2-hint-text { margin: -4px 0 12px; font-size: 13px; line-height: 1.5; color: var(--pc2-ink); }

/* Format groups */
.pc2-formats { display: flex; flex-direction: column; gap: 20px; }

.pc2-group-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 2px 12px;
    margin: 0 0 8px;
    font-size: 12px;
}

.pc2-group-title { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(27, 47, 91, 0.75); }
.pc2-group-note { color: var(--pc2-mute); }

/* Phones: each group is a swipe row bleeding to the screen edge. */
.pc2-tiles {
    display: flex;
    gap: 10px;
    margin: 0 calc(-1 * var(--pc2-gutter));
    padding: 2px var(--pc2-gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--pc2-gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.pc2-tiles::-webkit-scrollbar { display: none; }

@media (min-width: 640px) {
    .pc2-tiles {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin: 0;
        padding: 0;
        overflow: visible;
    }
}

#pc-wizard-root .pc-type-pick {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 0 0 42% !important;
    gap: 0 !important;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid var(--pc2-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--pc2-navy);
    cursor: pointer;
    transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

#pc-wizard-root .pc-type-pick::before { content: none !important; display: none !important; }

@media (min-width: 640px) {
    #pc-wizard-root .pc-type-pick { flex: none !important; }
}

#pc-wizard-root .pc-type-pick:hover { transform: translateY(-2px); border-color: var(--pc2-line-2) !important; box-shadow: 0 10px 22px -16px rgba(27, 47, 91, 0.5) !important; }
#pc-wizard-root .pc-type-pick:active { transform: scale(0.98); }
#pc-wizard-root .pc-type-pick.is-selected {
    border-color: var(--pc2-navy) !important;
    background: #fff !important;
    box-shadow: 0 12px 28px -14px rgba(27, 47, 91, 0.55) !important;
}
#pc-wizard-root .pc-type-pick:focus-visible { box-shadow: var(--pc2-ring) !important; }

.pc2-tile-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 112px;
    overflow: hidden;
    background: var(--pc2-sand);
    color: #b3a684;
    font-size: 30px;
    transition: background 0.5s;
}
.pc-type-pick:hover .pc2-tile-art { background: #ece4d4; }
/* Placeholder sheet (photo block + date grid) until the v2 script draws the mini object. */
.pc2-tile-sheet {
    display: block;
    width: 52px;
    height: 70px;
    border-radius: 3px;
    background: linear-gradient(160deg, #e9dfcb, #c9b48b) 5px 5px / 42px 34px no-repeat, #fff;
    box-shadow: 0 8px 16px -8px rgba(27, 47, 91, 0.45);
    transition: transform 0.5s;
}
.pc2-tile-sheet::after {
    content: '';
    display: block;
    margin: 45px 7px 0;
    height: 19px;
    background: radial-gradient(circle, #c9cdd6 1.1px, transparent 1.3px) 0 0 / 6px 5px;
}
.pc-type-pick[data-group="yearly"] .pc2-tile-sheet,
.pc-type-pick[data-group="gift"] .pc2-tile-sheet { height: 66px; width: 50px; }
.pc-type-pick[data-calendar-type="desk"] .pc2-tile-sheet,
.pc-type-pick[data-calendar-type="magnetic"] .pc2-tile-sheet { width: 70px; height: 50px; background: linear-gradient(160deg, #e9dfcb, #c9b48b) 4px 4px / 30px 42px no-repeat, #fff; }
.pc-type-pick[data-calendar-type="desk"] .pc2-tile-sheet::after,
.pc-type-pick[data-calendar-type="magnetic"] .pc2-tile-sheet::after { margin: 8px 5px 0 38px; height: 34px; }
.pc-type-pick:hover .pc2-tile-sheet { transform: scale(1.06); }
.pc-type-pick.is-selected .pc2-tile-art { color: var(--pc2-navy); }
.pc-type-pick[data-calendar-type="desk"] .pc2-tile-art,
.pc-type-pick[data-calendar-type="acrylic"] .pc2-tile-art { background: linear-gradient(180deg, var(--pc2-sand) 78%, #dccbab 78%); }

.pc2-tile-body { display: flex; flex: 1; flex-direction: column; gap: 2px; padding: 9px 12px 11px; }
.pc2-tile-name { font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--pc2-navy); }
#pc-wizard-root .pc2-tile-price { font-size: 12px; font-weight: 500; color: var(--pc2-ink); }

.pc2-tile-check {
    position: absolute;
    top: 8px;
    right: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pc2-navy);
    color: #fff;
}
.pc-type-pick.is-selected .pc2-tile-check { display: flex; animation: pc2-pop 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }

/* Ready-made card */
.pc2-readymade {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--pc2-line);
    border-radius: 14px;
    background: #fff;
    color: var(--pc2-navy);
    text-decoration: none;
    transition: border-color 0.2s;
}
.pc2-readymade:hover { border-color: var(--pc2-line-2); color: var(--pc2-navy); text-decoration: none; }
.pc2-readymade-art { display: flex; flex-shrink: 0; padding-left: 6px; }
.pc2-readymade-art img {
    width: 32px;
    height: 40px;
    margin-left: -6px;
    object-fit: cover;
    border: 2px solid #fff;
    border-radius: 5px;
    box-shadow: 0 2px 6px -2px rgba(27, 47, 91, 0.4);
    background: var(--pc2-sand);
}
.pc2-readymade-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.45; color: var(--pc2-ink); }
.pc2-readymade-text b { display: block; font-weight: 600; color: var(--pc2-navy); }
.pc2-readymade-go { flex-shrink: 0; transition: transform 0.2s; }
.pc2-readymade:hover .pc2-readymade-go { transform: translateX(2px); }

/* Size cards (rendered by the wizard JS) */
.pc2-size-empty {
    padding: 22px 16px;
    border: 1.5px dashed var(--pc2-line-2);
    border-radius: 14px;
    text-align: center;
    font-size: 13px;
    color: var(--pc2-ink);
}
.pc2-size-empty p { margin: 0; }

.pc2-size-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { .pc2-size-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

#pc-wizard-root .pc-size-card {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    grid-template-areas: "vis label price" "vis dims mrp" "vis q q";
    align-items: center !important;
    column-gap: 14px;
    row-gap: 1px;
    width: 100%;
    height: auto;
    min-height: 72px !important;
    padding: 12px 16px !important;
    border: 1px solid var(--pc2-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
    color: var(--pc2-navy);
    text-align: left !important;
    justify-content: stretch !important;
    flex-direction: row !important;
    cursor: pointer;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s !important;
}
#pc-wizard-root .pc-size-card:hover { border-color: var(--pc2-line-2) !important; }
#pc-wizard-root .pc-size-card.is-selected {
    border-color: var(--pc2-navy) !important;
    background: #fbfaf6 !important;
    box-shadow: 0 10px 24px -16px rgba(27, 47, 91, 0.6) !important;
}
#pc-wizard-root .pc-size-card:focus-visible { box-shadow: var(--pc2-ring) !important; }

#pc-wizard-root .pc-size-visual {
    grid-area: vis !important;
    justify-self: center;
    align-self: center !important;
    margin: 0 !important;
    border: 1.5px solid #b9b2a2;
    border-radius: 2px;
    background: transparent;
    box-shadow: none;
    transition: border-color 0.4s, background 0.4s;
}
#pc-wizard-root .pc-size-visual::before { content: none !important; display: none !important; }
#pc-wizard-root .pc-size-visual:not([data-pc2-sized]) { visibility: hidden; }
#pc-wizard-root .pc-size-visual--portrait { width: 32px; height: 44px; }
#pc-wizard-root .pc-size-visual--landscape { width: 44px; height: 32px; }
#pc-wizard-root .pc-size-visual--square { width: 38px; height: 38px; }
#pc-wizard-root .pc-size-card.is-selected .pc-size-visual { border-color: var(--pc2-navy); background: rgba(27, 47, 91, 0.1); }

#pc-wizard-root .pc-size-card strong { grid-area: label !important; align-self: end !important; margin: 0 !important; font-size: 14px !important; font-weight: 600 !important; color: var(--pc2-navy) !important; }
#pc-wizard-root .pc-size-dims { grid-area: dims !important; align-self: start; margin: 0 !important; font-size: 12px !important; color: var(--pc2-mute) !important; }
#pc-wizard-root .pc-size-price {
    grid-area: price !important;
    justify-self: end;
    font-family: var(--pc2-head);
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--pc2-navy) !important;
    font-variant-numeric: tabular-nums;
}
#pc-wizard-root .pc2-size-mrp { grid-area: mrp; justify-self: end; align-self: start; font-size: 11px; color: var(--pc2-mute); }
#pc-wizard-root .pc-size-quality { grid-area: q !important; margin-top: 4px; font-size: 11.5px; font-weight: 500; color: var(--pc2-green); }
#pc-wizard-root .pc-size-quality.is-warn { color: #8a5a12; }
#pc-wizard-root .pc-size-card-check { display: none !important; }

.pc2-options { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--pc2-ink); }
.pc2-options-chips { display: flex; flex-wrap: wrap; gap: 6px; }
#pc-wizard-root .pc-option-chip { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--pc2-line); color: var(--pc2-navy); font-size: 12px; }

/* Reassurance row */
.pc2-assure {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 0;
    padding: 14px;
    list-style: none;
    border: 1px solid var(--pc2-line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--pc2-ink);
}
@media (min-width: 640px) { .pc2-assure { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc2-assure li { display: flex; align-items: flex-start; gap: 8px; }
.pc2-assure svg { flex-shrink: 0; margin-top: 2px; color: var(--pc2-gold); }
.pc2-assure b { display: block; font-weight: 600; color: var(--pc2-navy); }

/* Page design (a5-designs.js draws the list) */
.pc2-design { animation: pc2-fade 0.35s ease backwards; }
.pc2-design-fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pc2-design-live { margin: 0 0 12px; padding: 12px; border: 1px solid var(--pc2-line); border-radius: 14px; background: #fff; }
.pc2-design-live-label { margin: 0 0 8px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--pc2-mute); }
.pc2-design-live-name { margin: 8px 0 0; font-size: 12.5px; color: var(--pc2-ink); }

/* Year & first month */
.pc2-years { display: flex; flex-wrap: wrap; gap: 8px; }
.pc2-months { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
@media (min-width: 640px) { .pc2-months { grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.pc2-years:empty,
.pc2-months:empty { display: none; }

.pc2-selects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
/* Once the v2 script has drawn the pills, the selects stay in the DOM for the wizard JS but leave the screen. */
.pc2-dates:has(#pc2-years:not(:empty)) .pc2-selects {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.pc2-field label { display: block; margin: 0 0 6px; font-size: 12px; font-weight: 600; color: var(--pc2-ink); }
.pc2-field select {
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid var(--pc2-line);
    border-radius: 12px;
    background: #fff;
    color: var(--pc2-navy);
    font-size: 16px; /* stops iOS focus zoom */
    font-weight: 600;
}

/* Pills + chips drawn by photo-calendar-wizard-v2.js; they drive the hidden selects. */
.pc2 .pc2-pill,
.pc2 .pc2-chip {
    min-height: 40px;
    margin: 0;
    border: 0;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--pc2-line);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.pc2 .pc2-pill { padding: 0 18px; border-radius: 999px; font-size: 13px; color: var(--pc2-navy); }
.pc2 .pc2-chip { padding: 0; border-radius: 8px; font-size: 12px; color: var(--pc2-ink); }
.pc2 .pc2-pill:hover,
.pc2 .pc2-chip:hover { box-shadow: inset 0 0 0 1px var(--pc2-line-2); }
.pc2 .pc2-pill.is-on { background: var(--pc2-navy); color: #fff; box-shadow: none; }
.pc2 .pc2-chip.is-on { background: var(--pc2-gold); color: var(--pc2-navy); box-shadow: none; }
.pc2 .pc2-pill:focus-visible,
.pc2 .pc2-chip:focus-visible { box-shadow: var(--pc2-ring); }
.pc2-dates-note { margin: 10px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--pc2-mute); }
.pc2 .pc2-fy { min-height: 32px; margin: 0; padding: 0 2px; border: 0; background: none; color: var(--pc2-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pc2-type-line { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--pc2-ink); }
.pc2-type-line:empty { display: none; }

/* Stage contents (photo-calendar-wizard-v2.js) */
.pc2-stage-desk { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 26%; background: linear-gradient(180deg, #d9c7a6, #cbb48b); }
.pc2-stage.is-desk .pc2-stage-desk { display: block; }
.pc2-stage-obj { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; }
.pc2-stage.is-desk .pc2-stage-obj { margin-top: 40px; }
.pc2-stage.is-monthly:not(.is-desk) .pc2-stage-obj { margin-bottom: 40px; }
.pc2-stage-chip {
    position: absolute; z-index: 2; left: 16px; top: 16px; margin: 0; padding: 6px 12px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.88); box-shadow: 0 1px 3px rgba(27, 47, 91, 0.12);
    font-size: 12px; font-weight: 500; color: var(--pc2-navy);
}
.pc2-scrub {
    position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%);
    display: flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.92); box-shadow: 0 1px 3px rgba(27, 47, 91, 0.12);
}
.pc2-scrub[hidden] { display: none; }
.pc2 .pc2-scrub-btn {
    width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: var(--pc2-navy); font-size: 20px; line-height: 1; cursor: pointer;
}
.pc2 .pc2-scrub-btn:hover { background: var(--pc2-sand); }
.pc2-scrub-label { min-width: 88px; text-align: center; font-size: 12.5px; font-weight: 600; color: var(--pc2-navy); font-variant-numeric: tabular-nums; }
.pc2-stage-cap { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: var(--pc2-ink); }
.pc2-settle { animation: pc2-settle 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
.pc2-turn { animation: pc2-turn 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; transform-origin: 50% 0; }
.pc2-tile-obj { display: block; transition: transform 0.5s; }
.pc-type-pick:hover .pc2-tile-obj { transform: scale(1.06); }

/* The calendar object (port of CalendarObject.tsx); sizes come inline from the script. */
.pco { position: relative; flex-shrink: 0; }
.pco-paper {
    position: relative; overflow: hidden; border-radius: 2px;
    background: linear-gradient(180deg, #fffefb, #fbf8f1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 2px 4px rgba(27, 47, 91, 0.08), 0 18px 40px -18px rgba(27, 47, 91, 0.45);
}
.pco-paper--magnetic { border-radius: 10px; }
.pco-paper--magnetic::after { content: ''; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 3px rgba(27, 47, 91, 0.08); }
.pco-paper--acrylic { position: absolute; left: 9px; top: 0; border-radius: 10px; background: linear-gradient(180deg, #fff, #f6f8fb); }
.pco-glass {
    position: absolute; inset: 0; border-radius: 10px; pointer-events: none;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.35) 100%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9), inset 0 0 0 9px rgba(190, 214, 230, 0.35);
}
.pco-acrylic-base { position: absolute; bottom: 0; left: 50%; width: 70%; height: 22px; transform: translateX(-50%); border-radius: 4px; background: linear-gradient(180deg, #e8eef3, #c9d4dc); box-shadow: 0 10px 18px -8px rgba(27, 47, 91, 0.4); }
.pco-paper--canvas { position: absolute; left: 0; top: 0; background: repeating-linear-gradient(45deg, #fbf8f1 0 2px, #f6f1e6 2px 4px); }
.pco-edge-r { position: absolute; background: #e9e2d3; transform: skewY(45deg); transform-origin: left top; }
.pco-edge-b { position: absolute; background: #d9d0bd; transform: skewX(45deg); transform-origin: left top; }
.pco--desk { display: flex; flex-direction: column; align-items: center; }
.pco-paper--desk { transform: perspective(900px) rotateX(9deg); transform-origin: bottom; }
.pco-desk-base { height: 14px; border-radius: 0 0 4px 4px; background: linear-gradient(180deg, #2c3f6b, #1b2f5b); box-shadow: 0 14px 22px -10px rgba(27, 47, 91, 0.55); }
.pco-hanger { position: absolute; left: 50%; top: 0; transform: translateX(-50%); }
.pco-under { position: absolute; border-radius: 2px; background: #efe9dc; box-shadow: 0 2px 6px rgba(27, 47, 91, 0.12); }
.pco-wire { position: absolute; z-index: 2; left: 6%; right: 6%; top: -7px; display: flex; justify-content: space-between; }
.pco-wire span { display: block; width: 3px; height: 14px; border-radius: 99px; background: linear-gradient(90deg, #8a8f99, #e9ebef 45%, #7c818b); }
.pco-face { display: flex; flex-direction: column; width: 100%; height: 100%; box-sizing: border-box; }
.pco-corp { display: flex; align-items: center; justify-content: space-between; white-space: nowrap; }
.pco-corp > span:first-child { display: flex; align-items: center; gap: 0.4em; font-weight: 600; text-transform: uppercase; letter-spacing: 0.14em; color: var(--pc2-navy); }
.pco-corp i { display: block; border-radius: 3px; background: var(--pc2-navy); }
.pco-corp-url { color: #8b93a7; }
.pco-photo { position: relative; overflow: hidden; min-height: 0; }
.pco-photo img,
.pco-ph { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.pco-ph { background: linear-gradient(160deg, #e9dfcb, #c9b48b); }
.pco-flip-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 25%; background: linear-gradient(transparent, rgba(0, 0, 0, 0.18)); }
.pco-dates { flex: 1; min-height: 0; overflow: hidden; }
.pco-mg { display: flex; gap: 6%; width: 100%; height: 100%; }
.pco-mg-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pco-mg-head { display: flex; align-items: baseline; justify-content: space-between; }
.pco-mg-name { font-family: var(--pc2-head); font-weight: 600; line-height: 1; color: var(--pc2-navy); white-space: nowrap; }
.pco-mg-year { font-weight: 500; line-height: 1; letter-spacing: 0.1em; color: #9a7a3a; }
.pco-dow { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-weight: 600; letter-spacing: 0.08em; color: #8b93a7; }
.pco-days { display: grid; flex: 1; grid-template-columns: repeat(7, 1fr); min-height: 0; text-align: center; line-height: 1; color: #2b3448; }
.pco-days span { display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.pco-days i { display: block; border-radius: 50%; }
.pco-notes { display: flex; flex-direction: column; width: 26%; }
.pco-notes span { font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: #9a7a3a; }
.pco-notes i { display: block; border-bottom: 1px solid #d9dce4; }
.pco-yg { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); width: 100%; height: 100%; }
.pco-yg-m { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.pco-yg-m > span { font-family: var(--pc2-head); font-weight: 600; line-height: 1; color: var(--pc2-navy); }
.pco-yg-days { display: grid; grid-template-columns: repeat(7, 1fr); align-content: start; }
.pco-yg-days i { display: block; aspect-ratio: 1; border-radius: 1px; }

/* Phones: slim live preview pinned at the top once the stage scrolls away. */
.pc2-pin {
    position: fixed; z-index: 999990; left: 0; right: 0; top: 0;
    display: flex; align-items: center; gap: 12px; width: 100%; height: auto; min-height: 0; margin: 0; /* style.css sets button{width:100px;height:40px} */
    padding: 8px var(--pc2-gutter); border: 0; border-bottom: 1px solid var(--pc2-line); border-radius: 0;
    background: rgba(251, 249, 244, 0.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 8px 20px -14px rgba(27, 47, 91, 0.5);
    text-align: left; color: var(--pc2-navy); cursor: pointer;
    animation: pc2-fade 0.25s ease backwards;
}
.pc2-pin[hidden] { display: none; }
.pc2-pin:focus-visible { outline: 2px solid transparent; box-shadow: inset var(--pc2-ring); }
@media (min-width: 1024px) { .pc2-pin { display: none !important; } }
.pc2-pin-art { display: flex; flex-shrink: 0; align-items: center; justify-content: center; width: 48px; height: 56px; overflow: hidden; border-radius: 8px; background: #efe7d8; }
.pc2-pin-text { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.pc2-pin-text b { overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pc2-pin-text span { font-size: 12px; color: var(--pc2-mute); }
.pc2-pin-price { font-family: var(--pc2-head); font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Classic mobile summary: hooks only, never shown in v2. */
#pc-wizard-root .pc2-legacy-bar { display: none !important; }

/* ---------------------------------------------------------------- Bottom bar */
.pc2-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999991; /* same layer as the classic footer: above the site's floating widgets */
    border-top: 1px solid var(--pc2-line);
    background: var(--pc2-bar);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pc2-bar-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 10px var(--pc2-gutter);
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 68px;
}

.pc2-bar-hint { flex: 1; min-width: 0; margin: 0; font-size: 13px; line-height: 1.4; color: var(--pc2-ink); }

.pc2 .pc2-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-width: 40px;
    min-height: 40px;
    padding: 0 8px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--pc2-navy);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}
.pc2 .pc2-back:hover { background: #efe9dc; }

@media (max-width: 639px) {
    .pc2 .pc2-back { margin-left: -8px; }
    .pc2 .pc2-back-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

.pc2-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pc2:not(.pc-wizard-on-calendar) .pc2-sum { display: none; }

@media (min-width: 640px) {
    .pc2-sum { align-items: flex-end; text-align: right; }
}

.pc2-sum-line {
    display: flex;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--pc2-ink);
    white-space: nowrap;
}
.pc2-sum-line li { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.pc2-sum-line li:first-child { flex-shrink: 0; max-width: 55%; }
.pc2-sum-line li + li::before { content: '·'; margin: 0 5px; }
.pc2-sum-line strong { font-weight: 500; }

.pc2-sum-price { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.pc2-price { font-family: var(--pc2-head); font-size: 24px; font-weight: 600; line-height: 1; color: var(--pc2-navy); font-variant-numeric: tabular-nums; }
.pc2-mrp { font-size: 12px; color: var(--pc2-mute); }
.pc2-badge { padding: 2px 8px; border-radius: 999px; background: var(--pc2-green-bg); color: var(--pc2-green); font-size: 11px; font-weight: 600; }

.pc2 .pc2-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-shrink: 0;
    width: auto;
    height: auto;
    min-height: 48px;
    margin-left: auto;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--pc2-navy);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 24px -12px rgba(27, 47, 91, 0.8);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.pc2 .pc2-cta:hover:not(:disabled) { transform: translateY(-1px); background: var(--pc2-navy-2); box-shadow: 0 14px 28px -12px rgba(27, 47, 91, 0.85); }
.pc2 .pc2-cta:focus-visible:not(:disabled) { box-shadow: var(--pc2-ring), 0 14px 28px -12px rgba(27, 47, 91, 0.85); }
.pc2 .pc2-cta:disabled { background: #cfd3dc; color: #fff; box-shadow: none; cursor: not-allowed; }
.pc2 .pc2-cta[aria-busy="true"] { opacity: 0.75; }
.pc2 .pc2-cta--small { min-height: 44px; margin: 0; padding: 0 20px; font-size: 14px; }

@media (max-width: 379px) {
    .pc2 .pc2-cta { padding: 0 16px; font-size: 14px; }
    .pc2-badge { display: none; }
}

/* Phones, step 2: summary + price on the first row, back + full-width CTA below (the line never truncates to "Desk …"). */
@media (max-width: 639px) {
    .pc2.pc-wizard-on-calendar .pc2-bar-inner { flex-wrap: wrap; row-gap: 8px; padding-top: 8px; }
    .pc2.pc-wizard-on-calendar .pc2-sum { order: -1; flex: 1 1 100%; flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
    /* The summary gets its own full-width row above the price and wraps, so size and year range are never cut. */
    .pc2.pc-wizard-on-calendar .pc2-sum { flex-wrap: wrap; row-gap: 2px; }
    .pc2.pc-wizard-on-calendar .pc2-sum-line { flex: 1 1 100%; flex-wrap: wrap; }
    .pc2.pc-wizard-on-calendar .pc2-sum-line li,
    .pc2.pc-wizard-on-calendar .pc2-sum-line li:first-child { max-width: 100%; }
    .pc2.pc-wizard-on-calendar .pc2-cta { flex: 1; }
    .pc2.pc-wizard-on-calendar .pc2-body { padding-bottom: calc(170px + env(safe-area-inset-bottom, 0px)); }
    .pc2 .pc2-price { font-size: 21px; }
    /* The two-row bar is up to ~135px tall: lift the site WhatsApp / chat buttons clear of it. */
    body:has(#pc-wizard-root.pc2.pc-wizard-on-calendar) .watsapp_btn { bottom: calc(148px + env(safe-area-inset-bottom, 0px)) !important; }
    body:has(#pc-wizard-root.pc2.pc-wizard-on-calendar) #ppChatbot { bottom: calc(220px + env(safe-area-inset-bottom, 0px)) !important; }
}

/* Tablet/desktop: the bar is ~70px; desktop site CSS puts the WhatsApp button at 22px, under it. Use the tablet offsets. */
@media (min-width: 640px) {
    body:has(#pc-wizard-root.pc2) .watsapp_btn { bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
    body:has(#pc-wizard-root.pc2) #ppChatbot { bottom: calc(168px + env(safe-area-inset-bottom, 0px)) !important; }
}

#pc-wizard-root .pc-toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); z-index: 999992; border-radius: 12px; background: var(--pc2-navy); }
#pc-wizard-root .pc-toast.is-error { background: #9b2c2c; }

/* ---------------------------------------------------------------- Motion */
@keyframes pc2-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pc2-pop { 0% { opacity: 0; transform: scale(0.7); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes pc2-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pc2-settle { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes pc2-turn { from { opacity: 0.35; transform: perspective(900px) rotateX(-55deg); } to { opacity: 1; transform: none; } }
@keyframes pc2-breathe { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) {
    #pc-wizard-root.pc2 *,
    #pc-wizard-root.pc2 *::before,
    #pc-wizard-root.pc2 *::after {
        animation: none !important;
        transition: none !important;
    }
}
