/**
 * Hawkes' Impossible Portraits — private order page styles.
 *
 * SIBLING to configurator.css (enqueued as a dependency): every color / font / radius /
 * shadow is a shared var(--hac-*) token, so this screen shares ONE visual identity with
 * the Art Pack Configurator + Three Lives (dark app canvas, gold, Cinzel/EB Garamond).
 * HIP-namespaced classes only ADD the order-flow chrome (slots, subject tray, generation,
 * card text). The mount div carries .hac-configurator, so it gets the dark canvas.
 */

.hac-hip-order-page {
    --hip-gap: 16px;
    position: relative;
    font-family: var(--hac-font-body);
    color: var(--hac-text);
}
/* Center the flow content within the .hac-configurator dark canvas. */
.hac-hip-order-page > * {
    max-width: var(--global-content-width, 1100px);
    margin-left: auto;
    margin-right: auto;
}

.hac-hip-op__h { font-family: var(--hac-font-heading); font-size: 22px; color: var(--hac-gold); margin: 0 0 4px; }
.hac-hip-op__intro { color: var(--hac-text-muted); margin: 0 0 var(--hip-gap); }
.hac-hip-op__sub { font-size: 15px; margin: 0 0 10px; color: var(--hac-text); }
#hac-hip-order-page .hac-hip-op__err { color: #ffd6cc; background: #342724; border-left: 3px solid #ffad94; padding: 12px 14px; line-height: 1.6; overflow-wrap: anywhere; }

/* Consent */
.hac-hip-consent { display: flex; flex-direction: column; gap: 12px; margin-bottom: var(--hip-gap); }
.hac-hip-consent__row { display: flex; gap: 10px; align-items: flex-start; line-height: 1.4; cursor: pointer; color: var(--hac-text); }
.hac-hip-consent__row input { margin-top: 3px; }

/* Layout */
.hac-hip-op__layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 760px) { .hac-hip-op__layout { grid-template-columns: 1fr; } }

/* Numbered how-to steps (guidance so nobody hunts for the next action). */
.hac-hip-op__steps {
    margin: 0 0 20px; padding-left: 1.25em; display: flex; flex-direction: column; gap: 6px;
    color: var(--hac-text-muted); font-size: 14px; line-height: 1.45;
}
.hac-hip-op__steps li { padding-left: 4px; }
.hac-hip-op__steps li::marker { color: var(--hac-gold); font-weight: 700; }

/* Slots — rendered as shared .hac-card so they match the APC/TL card UI. */
.hac-hip-slots { display: flex; flex-direction: column; gap: 12px; }
.hac-hip-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.hac-hip-slot-card {
    font: inherit; color: inherit; width: 100%; text-align: left; cursor: pointer;
    display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; min-height: 78px;
}
.hac-hip-slot-card .hac-card__title {
    white-space: normal; overflow: visible; text-overflow: clip; max-width: none;
    color: var(--hac-text); font-size: 0.95rem; font-weight: 600; padding: 0; letter-spacing: 0;
}
.hac-hip-slot-card__who { font-size: 13px; color: var(--hac-text-muted); }
.hac-hip-slot-card,
.hac-hip-slot-card:hover,
.hac-hip-slot-card:focus,
.hac-hip-slot-card:active { background: var(--hac-bg-raised); }
.hac-hip-slot-card.is-required { border-left: 4px solid var(--hac-gold); }
.hac-hip-slot-card.is-optional { border-left: 4px solid var(--hac-border); }
.hac-hip-slot-card.is-filled { border-left-color: var(--hac-gold); box-shadow: inset 0 0 0 1px var(--hac-gold-deep); }
.hac-hip-slot-card.is-selected { box-shadow: 0 0 0 2px var(--hac-gold-deep); border-color: var(--hac-gold); }
.hac-hip-slot-card.is-incompatible { opacity: .4; }

/* Subject Tray */
.hac-hip-tray { display: flex; flex-direction: column; gap: 12px; }
.hac-hip-subject {
    border: 1px solid var(--hac-border); border-radius: var(--hac-radius-lg); background: var(--hac-bg-card);
    color: var(--hac-text); display: flex; flex-direction: column; overflow: hidden;
    transition: opacity var(--hac-transition), box-shadow var(--hac-transition);
}

/* Accordion header — always visible, toggles the body. Background is locked across
   hover/focus so the theme's button:hover cannot repaint it cream. */
.hac-hip-subject__header,
.hac-hip-subject__header:hover,
.hac-hip-subject__header:focus,
.hac-hip-subject__header:active { background: var(--hac-bg-card); }
.hac-hip-subject__header {
    font: inherit; color: inherit; width: 100%; border: 0; cursor: pointer; text-align: left;
    display: flex; align-items: center; gap: 10px; padding: 12px;
}
.hac-hip-subject__htitle { font-weight: 600; color: var(--hac-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hac-hip-subject__hstatus { margin-left: auto; font-size: 12px; color: var(--hac-text-muted); white-space: nowrap; }
.hac-hip-subject__chevron { color: var(--hac-gold); font-size: 12px; transition: transform var(--hac-transition); flex-shrink: 0; }
.hac-hip-subject.is-open .hac-hip-subject__chevron { transform: rotate(180deg); }

/* Collapsible body */
.hac-hip-subject__body { display: none; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.hac-hip-subject.is-open .hac-hip-subject__body { display: flex; }
.hac-hip-subject.is-selected { box-shadow: 0 0 0 2px var(--hac-gold-deep); border-color: var(--hac-gold); }
.hac-hip-subject.is-dimmed { opacity: .4; }
.hac-hip-subject.is-assigned { box-shadow: inset 0 0 0 1px var(--hac-gold-deep); }
.hac-hip-subject__name, .hac-hip-subject__type {
    padding: 6px 8px; border: 1px solid var(--hac-border-strong); border-radius: var(--hac-radius); font-size: 14px;
    background: var(--hac-bg); color: var(--hac-text); font-family: var(--hac-font-body);
}
.hac-hip-subject__status { font-size: 12px; color: var(--hac-text-muted); margin: 0; }
.hac-hip-subject__upload, .hac-hip-subject__assign, .hac-hip-subject__clear, .hac-hip-subject__remove {
    border: 1px solid var(--hac-border-strong); border-radius: var(--hac-radius); padding: 7px 10px;
    background: var(--hac-bg-raised); color: var(--hac-text); cursor: pointer; font-size: 13px; text-align: center;
}
.hac-hip-subject__assign.is-selected { border-color: var(--hac-gold); color: var(--hac-gold); font-weight: 600; }
.hac-hip-subject__remove { color: var(--hac-crimson); border-color: transparent; background: none; }
.hac-hip-tray__add {
    border: 1px dashed var(--hac-border-strong); border-radius: var(--hac-radius-lg); padding: 12px;
    background: none; cursor: pointer; color: var(--hac-gold); font-weight: 600;
}

/* Summary + generate */
.hac-hip-summary { margin: var(--hip-gap) 0; }
.hac-hip-summary__label { font-weight: 600; margin: 8px 0 4px; color: var(--hac-text); }
.hac-hip-summary__blockers { color: #e0736b; margin: 0 0 8px; padding-left: 20px; }
.hac-hip-summary__warnings { color: var(--hac-orange); margin: 0 0 8px; padding-left: 20px; }
.hac-hip-generate { margin-top: 8px; }
.hac-hip-generate:disabled { opacity: .5; cursor: not-allowed; }

/* Generation / preview / approval */
.hac-hip-gen { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.hac-hip-gen__spinner {
    width: 36px; height: 36px; border-radius: 50%;
    border: 3px solid var(--hac-border); border-top-color: var(--hac-gold);
    animation: hac-hip-spin 0.9s linear infinite;
}
@keyframes hac-hip-spin { to { transform: rotate(360deg); } }
.hac-hip-gen__status { font-weight: 600; margin: 0; color: var(--hac-text); }
.hac-hip-gen__card { max-width: 440px; align-self: flex-start; }
.hac-hip-gen__img { display: block; width: 100%; height: auto; }
.hac-hip-gen__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hac-hip-gen__regen { background: none; color: var(--hac-gold); border: 1px solid var(--hac-gold); }
.hac-hip-gen__approved { font-size: 18px; font-weight: 700; color: var(--hac-gold); margin: 0; }
.hac-hip-gen__note { font-size: 13px; color: var(--hac-text-muted); margin: 0; }

/* Card text (Stage 9) */
.hac-hip-card__layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
@media (max-width: 760px) { .hac-hip-card__layout { grid-template-columns: 1fr; } }
.hac-hip-card__form { display: flex; flex-direction: column; gap: 8px; }
.hac-hip-card__flabel { font-weight: 600; font-size: 14px; margin-top: 6px; color: var(--hac-text); }
.hac-hip-card__input, .hac-hip-card__select, .hac-hip-card__textarea {
    padding: 8px 10px; border: 1px solid var(--hac-border-strong); border-radius: var(--hac-radius); font-size: 14px;
    width: 100%; box-sizing: border-box; background: var(--hac-bg); color: var(--hac-text); font-family: var(--hac-font-body);
}
.hac-hip-card__textarea { min-height: 90px; resize: vertical; }
.hac-hip-card__count { font-size: 12px; color: var(--hac-text-muted); margin: 2px 0 0; }
.hac-hip-card__count.is-over { color: var(--hac-crimson); font-weight: 600; }
.hac-hip-card__saved { color: var(--hac-gold); font-size: 13px; margin: 6px 0 0; }

/* Card preview — this represents the PHYSICAL printed card, so the inside panel stays
   paper-light on purpose; only the frame uses shared tokens. */
.hac-hip-card__preview { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 4px; }
.hac-hip-card__front {
    position: relative; width: 100%; aspect-ratio: 7 / 5; border-radius: var(--hac-radius-lg); overflow: hidden;
    background: var(--hac-bg-card) center/cover no-repeat; border: 1px solid var(--hac-border);
    display: flex; align-items: flex-end; justify-content: center;
}
.hac-hip-card__greeting {
    width: 100%; text-align: center; padding: 10px 12px 16px; font-size: 26px; line-height: 1.15;
    color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.55); background: linear-gradient(transparent, rgba(0,0,0,.25));
}
.hac-hip-card__inside {
    width: 100%; aspect-ratio: 7 / 5; border-radius: var(--hac-radius-lg); border: 1px solid var(--hac-border);
    background: #fffdf8; color: #1c1c1e; display: flex; align-items: center; justify-content: center; padding: 18px; box-sizing: border-box;
}
.hac-hip-card__inside-msg { text-align: center; font-size: 16px; line-height: 1.4; white-space: pre-wrap; }
.hac-hip-card__preview-label { font-size: 11px; color: var(--hac-text-muted); text-transform: uppercase; letter-spacing: .04em; margin: 0 0 8px; }

/* Toast */
.hac-hip-op__toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
    background: var(--hac-bg); color: var(--hac-text); border: 1px solid var(--hac-gold-deep);
    padding: 10px 16px; border-radius: var(--hac-radius-lg);
    font-size: 14px; z-index: 9999; max-width: 90%;
}


/* G4 order setup: visible fields, explicit placement, persistent feedback. */
#hac-hip-order-page .hac-hip-op__layout { grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.3fr); }
#hac-hip-order-page .hac-hip-scene-preview { width: 100%; height: auto; border-radius: var(--hac-radius-lg); }
#hac-hip-order-page .hac-hip-slot-grid { grid-template-columns: 1fr; }
#hac-hip-order-page .hac-hip-slot-card { cursor: default; }
#hac-hip-order-page .hac-hip-subject__heading { padding: 12px; margin: 0; color: var(--hac-text); font-size: 18px; }
#hac-hip-order-page .hac-hip-field { display: flex; flex-direction: column; gap: 5px; color: var(--hac-text); font-size: 15px; }
#hac-hip-order-page .hac-hip-field input, #hac-hip-order-page .hac-hip-field select { width: 100%; min-height: 44px; box-sizing: border-box; background: var(--hac-bg); color: var(--hac-text); padding: 8px; border: 1px solid var(--hac-border-strong); }
#hac-hip-order-page .hac-hip-inline-error { color: var(--hac-text); border-left: 3px solid var(--hac-orange); padding: 10px; margin: 0; line-height: 1.5; }
#hac-hip-order-page .hac-hip-save-exit { margin-bottom: 20px; }
#hac-hip-order-page .hac-hip-subject button:is(:hover, :focus, :active), #hac-hip-order-page .hac-hip-notice-dismiss { background: var(--hac-bg-raised); color: var(--hac-text); }
#hac-hip-order-page .hac-hip-subject__remove { color: var(--hac-text-muted); text-decoration: underline; }
#hac-hip-order-page .hac-hip-op__toast { position: sticky; top: 12px; left: auto; bottom: auto; transform: none; max-width: 100%; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
#hac-hip-order-page .hac-hip-notice-dismiss { flex-shrink: 0; border: 1px solid var(--hac-border-strong); padding: 8px; cursor: pointer; }
#hac-hip-order-page button:focus-visible, #hac-hip-order-page select:focus-visible, #hac-hip-order-page input:focus-visible { outline: 2px solid var(--hac-gold); outline-offset: 2px; }
@media (max-width: 760px) { #hac-hip-order-page .hac-hip-op__layout { grid-template-columns: 1fr; } }

#hac-hip-order-page .hac-hip-assignment-image { position: relative; }
#hac-hip-order-page .hac-hip-scene-preview { display: block; }
#hac-hip-order-page .hac-hip-hotspot { position: absolute; transform: translate(-50%, -50%); border: 2px solid var(--hac-gold); border-radius: 8px; padding: 8px; min-height: 44px; max-width: 46%; background: var(--hac-bg); color: var(--hac-text); cursor: pointer; font: inherit; font-size: 14px; }
#hac-hip-order-page .hac-hip-hotspot:is(:hover,:focus) { background: var(--hac-bg-raised); color: var(--hac-text); }
#hac-hip-order-page .hac-hip-hotspot:disabled { opacity: .5; cursor: not-allowed; }
#hac-hip-order-page .hac-hip-hotspot.is-filled { border-style: double; border-width: 4px; }
#hac-hip-order-page .hac-hip-choose-photo { display: flex; align-items: center; gap: 12px; width: 100%; border: 2px solid var(--hac-border-strong); border-radius: 8px; padding: 8px; background: var(--hac-bg); color: var(--hac-text); text-align: left; cursor: pointer; }
#hac-hip-order-page .hac-hip-choose-photo img { width: 72px; height: 90px; object-fit: contain; background: var(--hac-bg); }
#hac-hip-order-page .hac-hip-choose-photo.is-selected { border-color: var(--hac-gold); box-shadow: 0 0 0 2px var(--hac-gold-deep); }
#hac-hip-order-page .hac-hip-op__layout { grid-template-columns: minmax(300px, 1.4fr) minmax(280px, 1fr); }
@media (max-width: 760px) { #hac-hip-order-page .hac-hip-op__layout { grid-template-columns: 1fr; } }
#hac-hip-order-page .hac-hip-slot-card { box-sizing: border-box; min-width: 0; }
#hac-hip-order-page .hac-hip-op__layout > * { min-width: 0; }
#hac-hip-order-page .hac-hip-save-exit, #hac-hip-order-page .hac-hip-save-exit:is(:hover,:focus) { background: var(--hac-bg-raised); color: var(--hac-text); border: 1px solid var(--hac-gold); padding: 10px 16px; }

/* Native dropdown menus must remain readable before hover/selection. */
#hac-hip-order-page select { color-scheme: dark; }
#hac-hip-order-page select option {
    background-color: var(--hac-bg);
    color: var(--hac-text);
}
#hac-hip-order-page select option:checked {
    background-color: Highlight;
    color: HighlightText;
}
#hac-hip-order-page select option:disabled {
    color: GrayText;
}

/* Drag targets supplement the existing keyboard/touch assignment controls. */
#hac-hip-order-page .hac-hip-choose-photo[draggable="true"] { cursor: grab; }
#hac-hip-order-page .hac-hip-choose-photo[draggable="true"]:active { cursor: grabbing; }
#hac-hip-order-page.is-dragging-photo .hac-hip-slot-card.is-drop-available {
    outline: 2px dashed var(--hac-gold);
    outline-offset: 3px;
}
#hac-hip-order-page.is-dragging-photo .hac-hip-slot-card.is-drop-over {
    outline: 3px solid var(--hac-gold);
    background: var(--hac-bg-raised);
}

/* Persistent save feedback, independent of the dismissible error/success notice. */
#hac-hip-order-page .hac-hip-busy-status {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 40px);
    box-sizing: border-box;
    padding: 12px 16px;
    border: 1px solid var(--hac-gold);
    border-radius: var(--hac-radius-lg);
    background: var(--hac-bg-raised);
    color: var(--hac-text);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .3);
    pointer-events: none;
}
#hac-hip-order-page .hac-hip-busy-spinner {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border: 2px solid var(--hac-border-strong);
    border-top-color: var(--hac-gold);
    border-radius: 50%;
    animation: hac-hip-save-spin .8s linear infinite;
}
@keyframes hac-hip-save-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    #hac-hip-order-page .hac-hip-busy-spinner { animation: none; }
}

#hac-hip-order-page .hac-hip-tray__add:disabled {
    opacity: .45;
    cursor: not-allowed;
    border-color: var(--hac-border);
    color: var(--hac-text-muted);
    background: var(--hac-bg);
}

/* Group members retain the original photo; markers are UI feedback, not masks. */
#hac-hip-order-page .hac-hip-group-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
#hac-hip-order-page .hac-hip-group-toggle input { width: 20px; height: 20px; flex: 0 0 20px; }
#hac-hip-order-page .hac-hip-selection-help { font-size: 14px; line-height: 1.5; }
#hac-hip-order-page .hac-hip-slot-card { cursor: pointer; }
#hac-hip-order-page .hac-hip-slot-card[aria-disabled="true"] { cursor: default; }
#hac-hip-order-page .hac-hip-hotspot.is-highlighted { outline: 4px solid var(--hac-gold); outline-offset: 5px; box-shadow: 0 0 18px 8px var(--hac-gold-deep); }
#hac-hip-order-page .hac-hip-member-dialog { box-sizing: border-box; width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; padding: 20px; border: 2px solid var(--hac-gold); border-radius: 12px; background: var(--hac-bg-card); color: var(--hac-text); font-family: var(--hac-font-body); }
#hac-hip-order-page .hac-hip-member-dialog::backdrop { background: rgb(0 0 0 / 75%); }
#hac-hip-order-page .hac-hip-member-dialog h2 { margin: 0 0 10px; color: var(--hac-text); }
#hac-hip-order-page .hac-hip-member-dialog p { line-height: 1.45; }
#hac-hip-order-page .hac-hip-member-viewport { display: flex; justify-content: center; }
#hac-hip-order-page .hac-hip-member-photo { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
#hac-hip-order-page .hac-hip-member-photo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 58dvh; image-orientation: from-image; cursor: crosshair; }
#hac-hip-order-page .hac-hip-member-marker { position: absolute; transform: translate(-50%,-50%); width: 26px; height: 26px; box-sizing: border-box; border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 3px #111; pointer-events: none; }
#hac-hip-order-page .hac-hip-member-marker[hidden] { display: none; }
#hac-hip-order-page .hac-hip-member-actions { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
#hac-hip-order-page .hac-hip-member-actions button { min-height: 44px; padding: 10px 16px; }
@media (max-width: 480px) { #hac-hip-order-page .hac-hip-member-dialog { padding: 12px; } }

/* Image-relative identity rings; labels appear beside the target on interaction. */
#hac-hip-order-page .hac-hip-assignment-image { padding: 0; border: 0; line-height: 0; }
#hac-hip-order-page .hac-hip-assignment-image .hac-hip-scene-preview { width: 100%; height: auto; max-height: none; margin: 0; padding: 0; border: 0; }
#hac-hip-order-page .hac-hip-hotspot { width: clamp(28px, 8%, 60px); height: auto; aspect-ratio: 1; min-height: 0; min-width: 0; padding: 0; border: 2px solid transparent; border-radius: 50%; background: transparent; line-height: 1.3; overflow: visible; }
#hac-hip-order-page .hac-hip-hotspot.is-filled { border: 2px solid transparent; }
#hac-hip-order-page .hac-hip-hotspot.is-highlighted { border: 3px solid var(--hac-gold); background: transparent; outline: 2px solid rgb(0 0 0 / 70%); outline-offset: 1px; box-shadow: 0 0 12px 5px var(--hac-gold-deep); z-index: 2; }
#hac-hip-order-page .hac-hip-hotspot.is-highlighted:disabled { opacity: 1; }
#hac-hip-order-page .hac-hip-hotspot-label { position: absolute; left: 50%; top: calc(100% + 7px); transform: translateX(-50%); width: max-content; max-width: 150px; padding: 3px 6px; border-radius: 4px; background: var(--hac-bg); color: var(--hac-text); font-size: 12px; opacity: 0; pointer-events: none; }
#hac-hip-order-page .hac-hip-hotspot.is-highlighted .hac-hip-hotspot-label { opacity: 1; }

/* End the visual cue after the JS timer, including when hover/focus remains. */
#hac-hip-order-page .hac-hip-hotspot { transition: border-color 300ms ease, outline-color 300ms ease, box-shadow 300ms ease, background-color 300ms ease; }
#hac-hip-order-page .hac-hip-hotspot:not(.is-highlighted) { border-color: transparent; outline-color: transparent; box-shadow: none; background: transparent; }
#hac-hip-order-page .hac-hip-hotspot-label { transition: opacity 300ms ease; }
@media (prefers-reduced-motion: reduce) {
    #hac-hip-order-page .hac-hip-hotspot, #hac-hip-order-page .hac-hip-hotspot-label { transition: none; }
}


.hac-hip-card__greeting { white-space: pre-wrap; }

/* Keep card-message fields readable through theme focus and selection states. */
#hac-hip-order-page :is(.hac-hip-card__input, .hac-hip-card__select, .hac-hip-card__textarea),
#hac-hip-order-page :is(.hac-hip-card__input, .hac-hip-card__select, .hac-hip-card__textarea):focus {
    background: var(--hac-bg); color: var(--hac-text); caret-color: var(--hac-text);
}
#hac-hip-order-page :is(.hac-hip-card__input, .hac-hip-card__textarea)::selection {
    background: var(--hac-gold); color: var(--hac-bg);
}

/* Greeting placement is confined to the card; other preview controls keep normal touch behavior. */
.hac-hip-card__greeting--movable { cursor: grab; touch-action: none; user-select: none; }
.hac-hip-card__greeting--movable:active { cursor: grabbing; }
.hac-hip-card__greeting--movable:focus-visible { outline: 2px dashed var(--hac-gold); outline-offset: -2px; }
.hac-hip-card__greeting--movable.has-position { position: absolute; padding: 0; display: flex; align-items: center; justify-content: center; box-sizing: border-box; background: none; overflow-wrap: anywhere; }
.hac-hip-card__position-help { color: var(--hac-text); font-size: 14px; line-height: 1.5; }

.hac-hip-card__front { container-type: inline-size; }

.hac-hip-card__colors { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
#hac-hip-order-page .hac-hip-card__colors input[type="color"] { width: 52px; height: 44px; padding: 3px; background: var(--hac-bg); border: 1px solid var(--hac-gold); cursor: pointer; }
#hac-hip-order-page .hac-hip-card__colors input[type="text"] { width: 130px; min-height: 44px; }
#hac-hip-order-page .hac-hip-card__swatch { min-height: 44px; padding: 6px 10px; border: 1px solid var(--hac-border-strong); border-bottom: 6px solid; border-radius: var(--hac-radius); background: var(--hac-bg); color: var(--hac-text); }
#hac-hip-order-page .hac-hip-card__swatch:focus-visible { outline: 2px solid var(--hac-gold); outline-offset: 2px; }
