/* Personal Order page (design: isPersonal). Shared form/aside styles live in precast-pages.css. */

.pm-po-steps { margin-bottom: 56px; }
.pm-po-step__n { display: block; font-family: var(--pm-serif); font-size: 32px; line-height: 32px; color: var(--pm-red); }

/* White form panel */
.pm-form-panel { background: var(--pm-white); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-panel); padding: 32px; }
.pm-panel__title { font-family: var(--pm-serif); font-size: 28px; line-height: 36px; font-weight: 500; color: var(--pm-ink); margin: 0 0 6px; }
.pm-panel__intro { font-size: 14px; line-height: 22px; color: var(--pm-body); margin: 0 0 28px; }
.pm-panel__section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--pm-line); }
.pm-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.pm-panel__legend { display: block; font-size: 12px; letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; color: var(--pm-ink); margin: 0 0 16px; padding: 0; }
.pm-panel__note { font-size: 12px; line-height: 18px; color: var(--pm-muted); }

/* Radio chips (style / finish) */
.pm-chips { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-chips + .pm-chips { margin-top: 14px; }
.pm-chip { position: relative; display: inline-flex; cursor: pointer; }
.pm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pm-chip span { display: inline-block; padding: 10px 18px; border: 1px solid var(--pm-line-strong); background: transparent; color: var(--pm-body); border-radius: 9999px; font-size: 14px; line-height: 20px; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.pm-chip:hover span { border-color: var(--pm-red); color: var(--pm-red); }
.pm-chip input:checked + span { background: var(--pm-red); border-color: var(--pm-red); color: var(--pm-white); }
.pm-chip input:focus-visible + span { outline: 2px solid var(--pm-red); outline-offset: 3px; }

/* "Based on" product chip */
.pm-po-based { display: flex; align-items: center; gap: 14px; margin: 0 0 24px; padding: 10px 14px 10px 10px; background: var(--pm-band); border: 1px solid var(--pm-line); border-radius: var(--pm-radius-card); width: fit-content; max-width: 100%; }
.pm-po-based img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--pm-radius); flex: 0 0 auto; background: var(--pm-well); }
.pm-po-based__label { display: block; font-size: 11px; letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; color: var(--pm-muted); }
.pm-po-based a { font-size: 15px; font-weight: 600; color: var(--pm-ink); }
.pm-body .pm-po-based a:hover { color: var(--pm-red); }

/* Upload + chosen files: .pm-po-upload / .pm-po-files live in precast-pages.css (also used by the measurement forms). */

.pm-po-included { list-style: none; margin: 0; padding: 0; }
.pm-po-included li { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-top: 1px solid var(--pm-line); font-size: 14px; line-height: 22px; color: var(--pm-muted); }
.pm-po-included .ms { color: var(--pm-red); font-size: 20px; }

.pm-po-talk h3 { font-size: 22px; line-height: 28px; color: var(--pm-ink); margin: 0 0 8px; font-weight: 500; }
.pm-po-talk p { font-size: 14px; line-height: 22px; color: var(--pm-body); margin: 0 0 18px; }
.pm-cta-card > .ms { font-size: 28px; display: block; margin-bottom: 10px; }

@media (max-width: 900px) {
    /* Design mobile: 24px / 20px form panel, chips 12px apart (no label margin). */
    .pm-form-panel { padding: 24px 20px; }
    .pm-chip { margin: 0; }

    /* Design text at `normal` line height: section headings, field labels, chips (40px). */
    .pm-po-page .pm-panel__legend, .pm-po-page .pm-box__title,
    .pm-po-page .pm-fields--caps .pm-field > span:first-child { line-height: normal; }
    .pm-po-page .pm-chip span { line-height: 18px; }
    /* Visible FINISH heading 24px under the style chips (design); screen-reader only on desktop. */
    .pm-po-page .pm-fieldset:has(> .pm-po-finish-legend) { margin-top: 24px !important; }
    .pm-po-page .pm-po-finish-legend {
        position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal;
        display: block; float: none; padding: 0; margin: 0 0 16px;
        font-size: 0; line-height: normal; color: var(--pm-ink);
    }
    /* The legend keeps its longer accessible name; the design shows the short word. */
    .pm-po-page .pm-po-finish-legend::before { content: "Finish"; font-size: 12px; letter-spacing: 0.1em; font-weight: 600; text-transform: uppercase; }
    /* Upload box: 24px padding, 15px title, 12px note (design). */
    .pm-po-page .pm-po-upload { padding: 24px; gap: 16px; margin-bottom: 0; }
    /* Icon boxes shrink as in the design (22.5px / 11px) while the glyph overflows them unclipped. */
    .pm-po-page .pm-po-upload > .ms { width: 22.5px; flex: 0 0 22.5px; overflow: visible; }
    .pm-po-page .pm-po-upload strong { font-size: 15px; font-weight: 400; line-height: normal; margin: 0 0 2px; }
    .pm-po-page .pm-po-upload small { display: block; line-height: normal; }
    .pm-po-included .ms { width: 11px; flex: 0 0 11px; overflow: visible; }
    .pm-po-page .pm-contact-lines li { line-height: 22px; }
    .pm-po-page .pm-cta-card > .ms { height: 34px; line-height: 34px; }
}
