/*
 * The Website Services checkout, redesigned (2026-12-01): step 1 Choose Your Options (/checkout/website-services) and
 * step 2 Review and Confirm (/checkout/website-services/review). Ported from the Brand Designer's mockup
 * (Design/checkout-redesign-2026-12-01/styles/checkout.css), which uses the live tokens only: no colour, size or radius
 * here that the site does not already have. Loaded only by the two checkout pages.
 */

/* ---------- The page ---------- */

.checkout-page {
    padding-bottom: var(--space-10);
}

.checkout-hero {
    padding-top: calc(var(--header-height) + var(--space-8));
    padding-bottom: var(--space-7);
}

.checkout-hero-inner {
    display: grid;
    gap: var(--space-4);
}

.checkout-hero-title {
    font-size: var(--text-heading-1);
    line-height: 1;
    letter-spacing: -0.03em;
}

.checkout-hero-lead {
    max-width: var(--measure);
    color: var(--color-text-muted);
    font-size: var(--text-lead);
    line-height: 1.55;
}

/* ---------- The three steps: a real sequence, so numbered ---------- */

.checkout-steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-5);
    margin: 0 0 var(--space-2);
    padding: 0;
    list-style: none;
    color: var(--color-text-faint);
    font-size: var(--text-small);
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.checkout-step-number {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-pill);
    font-family: var(--font-mono);
    font-size: var(--text-label);
}

.checkout-step[aria-current="step"] {
    color: var(--color-text);
}

.checkout-step[aria-current="step"] .checkout-step-number {
    border-color: var(--service-hue);
    background: var(--service-hue);
    color: var(--color-ink);
}

.checkout-step.is-done .checkout-step-number {
    border-color: color-mix(in srgb, var(--service-hue) 55%, transparent);
    color: var(--service-hue);
}

/* ---------- Choices in seven columns, the total in five ---------- */

.checkout-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-7) var(--space-6);
    align-items: start;
}

.checkout-main {
    grid-column: 1 / span 7;
    display: grid;
    gap: var(--space-8);
    min-width: 0;
}

.checkout-aside {
    grid-column: 8 / span 5;
    position: sticky;
    top: calc(var(--header-height) + 24px);
    min-width: 0;
}

/* ---------- A group of choices: a heading, never a box ---------- */

.choice-group {
    display: grid;
    gap: var(--space-4);
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* A fieldset's legend ignores gap and grid, so it floats full width and the next item clears it */
.choice-group-title {
    float: left;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-2) var(--space-3);
    width: 100%;
    margin: 0 0 var(--space-2);
    padding: 0;
    font-family: var(--font-display);
    font-stretch: 108%;
    font-weight: 620;
    font-size: var(--text-heading-3);
    line-height: 1.25;
}

.choice-group-title + * {
    clear: both;
}

.required-tag {
    color: var(--service-hue);
    font-family: var(--font-body);
    font-stretch: 100%;
    font-weight: 500;
    font-size: var(--text-small);
}

.choice-group-intro {
    max-width: var(--measure);
    color: var(--color-text-muted);
    font-size: var(--text-small);
}

.choice-group-note {
    color: var(--color-text-faint);
    font-size: var(--text-small);
}

/* ---------- Your Plan: already chosen, so a statement, not a control ---------- */

/* Laid out as an add-on card (its lines and foot reuse the add-on card's classes), with no checkbox */
.plan-card {
    display: grid;
    gap: var(--space-5);
    padding: var(--space-6);
    border: 1px solid color-mix(in srgb, var(--service-hue) 55%, transparent);
    border-radius: var(--radius-medium);
    background: var(--color-raised-high);
    container-type: inline-size;
}

.plan-card-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2) var(--space-5);
    align-items: baseline;
}

/* The plan's name in the add-on card name's face, so the plan reads as the first card of the set */
.plan-card-name {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-stretch: 108%;
    font-weight: 620;
    font-size: var(--text-heading-3);
    line-height: 1.2;
}

.plan-card-name svg {
    width: 20px;
    height: 20px;
    color: var(--service-hue);
}

/* ---------- Prices: the number in the display face, the unit quiet beside it ---------- */

.price {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    white-space: nowrap;
}

.price-amount {
    font-family: var(--font-display);
    font-stretch: 108%;
    font-weight: 620;
    font-size: 1.75rem;
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.price-unit {
    color: var(--color-text-muted);
    font-size: var(--text-small);
}

/* ---------- Add-on cards: the whole card toggles; Important Details sits above the toggle layer ---------- */

.add-on-list {
    display: grid;
    gap: var(--space-4);
}

.add-on-card {
    position: relative;
    display: grid;
    gap: var(--space-5);
    padding: var(--space-6);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-medium);
    background: var(--color-raised);
    container-type: inline-size;
    transition: border-color var(--duration-standard) var(--ease-out), background-color var(--duration-standard) var(--ease-out), box-shadow var(--duration-gentle) var(--ease-out);
}

.add-on-card:hover {
    border-color: rgba(242, 239, 250, 0.4);
}

.add-on-card:has(.add-on-card-input:checked) {
    border-color: color-mix(in srgb, var(--service-hue) 65%, transparent);
    background: var(--color-raised-high);
    box-shadow: var(--service-glow);
}

.add-on-card:has(.add-on-card-input:focus-visible) {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.add-on-card-head {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: var(--space-4);
    align-items: center;
}

/* The checkbox: a circle that fills with the hue and a tick */
.add-on-card-input {
    appearance: none;
    width: 28px;
    height: 28px;
    margin: 0;
    border: 1.5px solid var(--color-field-edge);
    border-radius: var(--radius-pill);
    background: var(--color-ink);
    cursor: pointer;
    transition: background-color var(--duration-quick) var(--ease-out), border-color var(--duration-quick) var(--ease-out), transform var(--duration-standard) var(--ease-out);
}

.add-on-card-input:focus-visible {
    outline: none;
}

.add-on-card-input:checked {
    border-color: var(--service-hue);
    background: var(--service-hue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307060B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
    animation: tick-pop var(--duration-gentle) var(--ease-out);
}

@keyframes tick-pop {
    0% { transform: scale(0.7); }
    60% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.add-on-card-name {
    font-family: var(--font-display);
    font-stretch: 108%;
    font-weight: 620;
    font-size: var(--text-heading-3);
    line-height: 1.2;
    cursor: pointer;
}

/* The label stretches over the whole card, so a click anywhere toggles it */
.add-on-card-name::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
}

.add-on-card-lines {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--list-item-gap) var(--space-6);
    margin: 0;
    padding: 0;
    font-size: var(--text-list);
    line-height: var(--leading-list);
    list-style: none;
}

@container (min-width: 560px) {
    .add-on-card-lines {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.add-on-card-lines li {
    display: grid;
    grid-template-columns: var(--list-mark-size) minmax(0, 1fr);
    gap: var(--list-mark-gap);
    align-items: start;
    line-height: var(--leading-list);
}

/* The tick, centred on the line's first line of text */
.add-on-card-lines svg {
    width: var(--list-mark-size);
    height: var(--list-mark-size);
    margin-top: calc((var(--leading-list) * 1em - var(--list-mark-size)) / 2);
    color: var(--service-hue);
}

/* The allowance takes the width it needs; Important Details always sits at the right, on the same line */
.add-on-card-foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: var(--space-3) var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--color-line);
}

/* Counsel's allowance line stays on the card, in small type, as visible as the price it adds to */
.add-on-card-allowance {
    color: var(--color-text-muted);
    font-size: var(--text-small);
}

.add-on-card-foot .details-button {
    grid-column: 2;
    justify-self: end;
}

/* Narrow cards: the allowance on its own line, Important Details under it at the left, where the thumb is */
@container (max-width: 459px) {
    .add-on-card-foot {
        grid-template-columns: minmax(0, 1fr);
    }

    .add-on-card-foot .details-button {
        grid-column: 1;
        justify-self: start;
        margin-left: calc(-1 * var(--space-1));
    }
}

/* ---------- Important Details: a text button above the card's toggle layer ---------- */

.details-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 var(--space-1);
    border: 0;
    background: transparent;
    color: var(--color-text);
    font-size: var(--text-small);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--service-hue) 70%, transparent);
    text-underline-offset: 5px;
    cursor: pointer;
}

.details-button svg {
    width: 18px;
    height: 18px;
    color: var(--service-hue);
}

.details-button:hover {
    text-decoration-color: var(--color-text);
}

/* ---------- Hosting: two tiles that share a top edge and a height ---------- */

/* The container is the outer box, so the query can size the grid inside it */
.hosting-choices {
    container-type: inline-size;
}

.hosting-choices-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-3);
}

@container (min-width: 480px) {
    .hosting-choices-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.tile {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: var(--space-1) var(--space-4);
    align-content: start;
    padding: var(--space-5);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-medium);
    background: var(--color-raised);
    cursor: pointer;
    transition: border-color var(--duration-standard) var(--ease-out), background-color var(--duration-standard) var(--ease-out);
}

.tile:hover {
    border-color: rgba(242, 239, 250, 0.4);
}

.tile:has(input:checked) {
    border-color: color-mix(in srgb, var(--service-hue) 65%, transparent);
    background: var(--color-raised-high);
}

.tile:has(input:focus-visible) {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.tile input {
    grid-row: 1 / span 2;
    appearance: none;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
    border: 1.5px solid var(--color-field-edge);
    border-radius: var(--radius-pill);
    background: var(--color-ink);
    cursor: inherit;
}

.tile input:focus-visible {
    outline: none;
}

.tile input:checked {
    border-color: var(--service-hue);
    box-shadow: inset 0 0 0 5px var(--service-hue);
}

.tile-label {
    font-weight: 600;
}

.tile-help {
    grid-column: 2;
    color: var(--color-text-muted);
    font-size: var(--text-small);
}

.choice-group.has-error .tile {
    border-color: var(--color-error);
}

.field-error {
    display: flex;
    gap: var(--space-2);
    align-items: center;
    color: var(--color-error);
    font-size: var(--text-small);
}

.field-error:empty {
    display: none;
}

/* ---------- Planning: each question a quiet row of answer chips, no outlines around the question ---------- */

.planning-questions {
    display: grid;
    gap: var(--space-6);
}

/* No gap: the legend's own 8 px margin is the house label gap */
.planning-question {
    display: grid;
    gap: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

/* Same gap above the chips as a label above its input (8 px), so every form reads alike */
.planning-question-text {
    float: left;
    width: 100%;
    margin: 0 0 var(--space-2);
    padding: 0;
    font-weight: 600;
}

.planning-question-text + * {
    clear: both;
}

/* The optional file under the questions: its label reads as one more question, at the same size and the same distance
   (the section's own 16 px gap plus this 16 px make the 32 px between questions) */
.planning-attachment {
    margin-top: var(--space-4);
}

.field.planning-attachment > label {
    font-size: inherit;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;
    padding: 0 var(--space-5);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-pill);
    background: var(--color-raised);
    color: var(--color-text-muted);
    font-size: var(--text-small);
    font-weight: 500;
    cursor: pointer;
    transition: background-color var(--duration-quick) var(--ease-out), border-color var(--duration-quick) var(--ease-out), color var(--duration-quick) var(--ease-out);
}

.chip:hover {
    border-color: rgba(242, 239, 250, 0.4);
    color: var(--color-text);
}

.chip input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: inherit;
}

.chip:has(input:checked) {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-ink);
}

.chip:has(input:focus-visible) {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

/* ---------- The total panel ---------- */

.total-panel {
    display: grid;
    gap: var(--space-5);
    padding: var(--space-6);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-large);
    background: var(--color-raised);
    box-shadow: var(--shadow-floating);
}

.total-panel-title {
    font-size: var(--text-heading-3);
    line-height: 1.25;
}

.total-lines {
    display: grid;
    gap: var(--space-3);
    margin: 0;
    padding: 0 0 var(--space-5);
    border-bottom: 1px solid var(--color-line);
    list-style: none;
}

.total-line {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    color: var(--color-text-muted);
}

.total-line-amount {
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: var(--text-small);
    font-variant-numeric: tabular-nums;
}

.total-line.is-arriving {
    animation: line-arrive var(--duration-gentle) var(--ease-out);
}

@keyframes line-arrive {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.total-amount-row {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--space-3);
}

.total-amount {
    font-family: var(--font-display);
    font-stretch: 108%;
    font-weight: 620;
    font-size: var(--text-heading-2);
    line-height: 1.08;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    transition: color var(--duration-slow) var(--ease-out);
}

/* The one moment of excitement: the total glows in the hue as it counts to its new value */
.total-amount.is-changing {
    color: var(--service-hue);
    transition-duration: 0ms;
}

.total-unit {
    color: var(--color-text-muted);
    font-size: var(--text-small);
}

.total-note {
    color: var(--color-text-muted);
    font-size: var(--text-small);
}

.total-panel .button {
    width: 100%;
}

.total-next {
    color: var(--color-text-faint);
    font-size: var(--text-small);
    text-align: center;
}

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---------- Phones and tablets: the total stays in reach ---------- */

.total-bar {
    display: none;
}

@media (max-width: 1023px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .checkout-main,
    .checkout-aside {
        grid-column: 1 / -1;
    }

    .checkout-aside {
        position: static;
    }

    /* On Review the total comes first, so the charge box's amount was read before it is agreed to */
    [data-review-page] .checkout-aside {
        order: -1;
    }

    .total-bar {
        position: fixed;
        inset: auto 0 0 0;
        z-index: 40;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--space-4);
        min-height: calc(64px + env(safe-area-inset-bottom));
        padding: var(--space-2) var(--page-gutter) calc(var(--space-2) + env(safe-area-inset-bottom));
        border-top: 1px solid var(--color-line);
        background: rgba(7, 6, 11, 0.92);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        transition: transform var(--duration-standard) var(--ease-out), visibility var(--duration-standard);
    }

    .total-bar.is-stepped-aside {
        visibility: hidden;
        transform: translateY(100%);
    }

    .total-bar-text {
        display: grid;
        color: var(--color-text-muted);
        font-size: var(--text-label);
        line-height: 1.3;
    }

    .total-bar-amount {
        color: var(--color-text);
        font-family: var(--font-display);
        font-stretch: 108%;
        font-weight: 620;
        font-size: 1.375rem;
        font-variant-numeric: tabular-nums;
    }

    .total-bar .button {
        min-height: 44px;
        padding: 0 var(--space-5);
    }

    .checkout-page {
        padding-bottom: calc(var(--space-10) + 64px);
    }
}

@media (max-width: 767px) {
    .add-on-card,
    .total-panel {
        padding: var(--space-5);
    }

    .plan-card {
        padding: var(--space-5);
    }

    .plan-card-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .add-on-card-head {
        grid-template-columns: 28px minmax(0, 1fr);
        align-items: start;
    }

    .add-on-card-head .price {
        grid-column: 2;
    }

    .price-amount {
        font-size: 1.5rem;
    }
}

/* ---------- Important Details popup: a dialog on desktop, a sheet from the bottom on phones ---------- */

.details-dialog {
    width: min(640px, calc(100vw - 2 * var(--page-gutter)));
    max-height: min(82vh, 760px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-large);
    background: var(--color-raised);
    color: var(--color-text);
    box-shadow: var(--shadow-floating), var(--service-glow);
    overflow: hidden;
}

.details-dialog[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    animation: dialog-rise var(--duration-standard) var(--ease-out);
}

.details-dialog::backdrop {
    background: rgba(3, 2, 6, 0.72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

@keyframes dialog-rise {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: none; }
}

.details-dialog-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-2) var(--space-4);
    align-items: start;
    padding: var(--space-6) var(--space-6) var(--space-5);
    border-bottom: 1px solid var(--color-line);
}

.details-dialog-title {
    font-size: var(--text-heading-3);
    line-height: 1.2;
}

.details-dialog-price {
    grid-column: 1;
    color: var(--color-text-muted);
    font-size: var(--text-small);
}

.details-dialog-close {
    grid-row: 1 / span 2;
    grid-column: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -8px -8px 0 0;
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-pill);
    background: transparent;
    cursor: pointer;
}

.details-dialog-close svg {
    width: 18px;
    height: 18px;
}

.details-dialog-close:hover {
    border-color: var(--color-text);
}

.details-dialog-body {
    display: grid;
    align-content: start;
    gap: var(--space-5);
    padding: var(--space-5) var(--space-6);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.details-dialog-body section {
    display: grid;
    gap: var(--space-1);
}

.details-dialog-body h3 {
    font-family: var(--font-body);
    font-stretch: 100%;
    font-size: var(--text-body);
    font-weight: 600;
}

.details-dialog-body p,
.details-dialog-body li {
    color: var(--color-text-muted);
    font-size: var(--text-small);
    line-height: 1.6;
}

/* The plan's report sections and limits: a list under the paragraph, each item opening with its name in bold */
.details-dialog-body ol,
.details-dialog-body ul {
    display: grid;
    gap: var(--space-2);
    margin: var(--space-1) 0 0;
    padding-left: var(--space-5);
}

.details-dialog-body li::marker {
    color: var(--service-hue);
}

.details-dialog-body strong {
    color: var(--color-text);
    font-weight: 600;
}

.details-dialog-foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-6) var(--space-5);
    border-top: 1px solid var(--color-line);
}

.details-dialog-foot .button {
    min-height: 48px;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .details-dialog {
        width: 100vw;
        max-width: 100vw;
        max-height: 88vh;
        margin: auto 0 0;
        border-radius: var(--radius-large) var(--radius-large) 0 0;
        border-bottom: 0;
    }

    .details-dialog[open] {
        animation-name: sheet-rise;
    }

    .details-dialog-head,
    .details-dialog-body {
        padding-left: var(--space-5);
        padding-right: var(--space-5);
    }

    .details-dialog-foot {
        padding: var(--space-4) var(--space-5) calc(var(--space-4) + env(safe-area-inset-bottom));
    }

    .details-dialog-foot .button {
        flex: 0 0 auto;
    }

    .details-dialog-foot .button-primary {
        flex: 1 1 auto;
    }
}

@keyframes sheet-rise {
    from { transform: translateY(100%); }
    to { transform: none; }
}

/* ---------- Step 2: Review and Confirm ---------- */

.review-card {
    display: grid;
    gap: var(--space-4);
    padding: var(--space-6);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-medium);
    background: var(--color-raised);
}

.review-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-2) var(--space-4);
}

.review-card-title {
    font-size: var(--text-heading-3);
    line-height: 1.25;
}

/* Links in the review: normal weight, with a muted underline that brightens on hover (the Owner, 2026-12-04) */
.text-link {
    color: var(--color-text);
    font-size: var(--text-small);
    font-weight: 400;
    text-decoration: underline;
    text-decoration-color: var(--color-line-strong);
    text-underline-offset: 5px;
    transition: text-decoration-color var(--duration-quick) var(--ease-out);
}

.text-link:hover {
    text-decoration-color: currentColor;
}

/* Each list a set of quiet rows, with no divider lines between them (the Owner, 2026-12-04) */
.review-list {
    display: grid;
    gap: var(--space-3);
    margin: 0;
}

.review-list > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--space-4);
}

.review-list dt {
    color: var(--color-text-muted);
    font-size: var(--text-small);
}

.review-list dd {
    min-width: 0;
    font-size: var(--text-small);
    font-weight: 500;
    text-align: right;
}

.review-list .is-amount {
    font-family: var(--font-mono);
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

/* Your Business and Contact Details: one column on phones; on wider screens names, title and website, email and phone
   pair up, the address lines run full width, and city, state and ZIP code share a row */
.contact-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-5) var(--space-4);
}

@media (min-width: 640px) {
    .contact-fields {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .contact-field-full {
        grid-column: span 6;
    }

    .contact-field-half {
        grid-column: span 3;
    }

    .contact-field-third {
        grid-column: span 2;
    }
}

.contact-fields > .field {
    align-content: start; /* A shorter field in a pair keeps its label and control at the top */
}

.optional-tag {
    color: var(--color-text-faint);
    font-weight: 400;
}

/* Each detail: label, control, help, error, in that order, with the house gaps */
.field {
    display: grid;
    gap: var(--space-2);
}

.field label {
    color: var(--color-text-muted);
    font-size: var(--text-small);
    font-weight: 500;
}

.field input {
    width: 100%;
    min-height: 52px;
    padding: 0 var(--space-4);
    border: 1px solid var(--color-field-edge);
    border-radius: var(--radius-small);
    background: var(--color-ink);
    color: var(--color-text);
    font-size: 1rem;
    transition: border-color var(--duration-quick) var(--ease-out);
}

.field input:hover {
    border-color: var(--color-field-edge-hover);
}

.field input:focus-visible {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
    border-color: var(--color-focus);
}

.field-help {
    color: var(--color-text-faint);
    font-size: var(--text-small);
}

/* Payment Details: the processor's card fields in their own frame, styled to match these fields (card-panel.js) */
.card-fields {
    min-width: 0; /* The processor's frame never widens the panel on a phone */
    min-height: 168px; /* Holds the place while the processor's fields load, so the page doesn't jump */
}

.card-panel-note {
    color: var(--color-text-muted);
    font-size: var(--text-small);
}

.replacement-card-panel {
    display: grid;
    gap: var(--space-4);
    max-width: 560px;
    padding: var(--space-5);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-medium);
    background: var(--color-raised);
}

.replacement-card-panel .card-fields {
    min-height: 0;
}

/* The two boxes, then the button */
.confirm-card {
    display: grid;
    gap: var(--space-5);
}

.consents {
    display: grid;
    gap: var(--space-3);
}

/* Each box in normal-weight type, its heading a step stronger (the Owner, 2026-12-04) */
.consent {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: var(--space-4);
    align-items: start;
    padding: var(--space-4) var(--space-5);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-small);
    background: var(--color-raised);
    font-size: var(--text-small);
    font-weight: 400;
    line-height: 1.55;
    cursor: pointer;
    transition: border-color var(--duration-standard) var(--ease-out);
}

.consent:has(input:checked) {
    border-color: color-mix(in srgb, var(--service-hue) 65%, transparent);
}

.consent:has(input:focus-visible) {
    outline: 2px solid var(--color-focus);
    outline-offset: 3px;
}

.consent input {
    appearance: none;
    width: 24px;
    height: 24px;
    margin: 0;
    border: 1.5px solid var(--color-field-edge);
    border-radius: 6px;
    background: var(--color-ink);
    cursor: inherit;
}

.consent input:focus-visible {
    outline: none;
}

.consent input:checked {
    border-color: var(--service-hue);
    background: var(--service-hue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307060B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.consent-text {
    display: grid;
    gap: var(--space-1);
}

.consent-heading {
    color: var(--color-text);
    font-weight: 500;
}

.consent-wording {
    color: var(--color-text-muted);
}

/* A link in a box opens only when the link itself is clicked; it never ticks the box */
.consent a {
    color: var(--color-text);
    text-decoration: underline;
    text-decoration-color: var(--color-line-strong);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--duration-quick) var(--ease-out);
}

.consent a:hover {
    text-decoration-color: currentColor;
}

.confirm-actions {
    display: grid;
    gap: var(--space-3);
}

.confirm-actions .button {
    width: 100%;
}

.confirm-hint {
    color: var(--color-text-faint);
    font-size: var(--text-small);
    text-align: center;
}

@media (max-width: 767px) {
    .review-card {
        padding: var(--space-5);
    }

    /* While the processor's card fields are on the page, its own badge floats in the bottom right corner of a phone's
       screen; the hint keeps out of that corner's column, so it never sits under the badge (the Sentinel, 2026-12-04) */
    .checkout-page:has([data-card-fields]) .confirm-hint {
        padding-right: 112px;
        text-align: left;
    }

    html:has([data-card-fields]) {
        scroll-padding-bottom: 72px;
    }
}

/* ---------- The live site's own pieces: problems and the payment-not-open note ---------- */

.checkout-problem {
    color: var(--color-error);
    font-size: var(--text-small);
}

/* After Continue, the detail the server rejected, named at the top of the form with a link to its field */
.checkout-problem-summary {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    border: 1px solid var(--color-error);
    border-radius: var(--radius-small);
    background: var(--color-surface);
}

.checkout-problem-summary a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* A field the summary leads to clears the fixed total bar on phones */
[data-contact-field] input,
[data-website-services-options] [data-document-field] {
    scroll-margin: var(--space-9);
}

.checkout-payment-not-open {
    overflow-wrap: anywhere; /* A long setting name never widens the page on a phone */
    padding: var(--space-4);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-small);
    background: var(--color-surface);
    font-size: var(--text-small);
}

.field.has-error input,
.field input[aria-invalid="true"] {
    border-color: var(--color-error);
}

@media (max-width: 1023px) {
    /* Keyboard focus and anchors never end up under the fixed total bar */
    html:has(.checkout-page [data-options-total-bar]) {
        scroll-padding-bottom: 88px;
    }
}