/* Highland Huts customer form styles. All customer-facing rules are scoped to the plugin. */
body.hhcs-customer-page .entry-header,
body.hhcs-customer-page .page-header,
body.hhcs-customer-page .page-title,
body.hhcs-customer-page .entry-title,
body.hhcs-customer-page .breadcrumbs,
body.hhcs-customer-page .breadcrumb {
    display: none !important;
}

body.hhcs-customer-page .entry-content,
body.hhcs-customer-page main {
    margin-top: 0 !important;
}

.hhcs-app,
.hhcs-app * {
    box-sizing: border-box;
}

.hhcs-app {
    --hhcs-accent: #2f5146;
    --hhcs-ink: #203047;
    --hhcs-muted: #697480;
    --hhcs-line: #dfe4e8;
    --hhcs-soft: #f5f7f8;
    --hhcs-white: #fff;
    position: relative;
    z-index: 1;
    width: min(100%, 980px);
    margin: 20px auto 56px;
    color: var(--hhcs-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.hhcs-app button,
.hhcs-app input,
.hhcs-app textarea,
.hhcs-app select,
.hhcs-app label {
    font: inherit;
}

.hhcs-app button,
.hhcs-app input,
.hhcs-app textarea,
.hhcs-app select,
.hhcs-app label,
.hhcs-app a {
    pointer-events: auto !important;
}


.hhcs-app {
    isolation: isolate;
}

.hhcs-app :where(h1, h2, h3, p, label, small, strong, span, button, input, textarea, select) {
    text-shadow: none;
}

.hhcs-app :where(button, input, textarea, select) {
    appearance: auto;
    -webkit-appearance: auto;
}

.hhcs-app input[type="radio"],
.hhcs-app input[type="checkbox"] {
    accent-color: var(--hhcs-accent);
}

.hhcs-header {
    overflow: hidden;
    background: var(--hhcs-white);
    border: 1px solid var(--hhcs-line);
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(24, 39, 58, .06);
}

.hhcs-brand-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px 19px;
}

.hhcs-logo {
    flex: 0 0 auto;
    width: auto;
    max-width: 128px;
    height: auto;
    max-height: 50px;
    object-fit: contain;
}

.hhcs-header-copy {
    min-width: 0;
}

.hhcs-eyebrow {
    display: block;
    margin-bottom: 4px;
    color: var(--hhcs-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.hhcs-app .hhcs-main-title {
    margin: 0 !important;
    color: var(--hhcs-ink) !important;
    font-size: clamp(22px, 3vw, 28px) !important;
    font-weight: 750 !important;
    letter-spacing: -.025em !important;
    line-height: 1.15 !important;
    text-transform: none !important;
}

.hhcs-header-copy p {
    max-width: 720px;
    margin: 7px 0 0 !important;
    color: var(--hhcs-muted) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
}

.hhcs-customer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 24px;
    background: var(--hhcs-soft);
    border-top: 1px solid var(--hhcs-line);
}

.hhcs-customer-details {
    display: flex;
    align-items: baseline;
    gap: 7px;
    min-width: 0;
}

.hhcs-customer-details span {
    color: var(--hhcs-muted);
    font-size: 12px;
}

.hhcs-customer-details strong {
    overflow: hidden;
    color: var(--hhcs-ink);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hhcs-save-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    color: var(--hhcs-muted);
    font-size: 12px;
    white-space: nowrap;
}

.hhcs-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #5d8978;
}

.hhcs-save-status[data-state="saving"] .hhcs-status-dot {
    background: #ad7c2c;
    animation: hhcs-pulse 1s infinite;
}

.hhcs-save-status[data-state="unsaved"] .hhcs-status-dot {
    background: #ad7c2c;
}

.hhcs-save-status[data-state="unsaved"] .hhcs-save-message {
    color: #7b5d25;
    font-weight: 700;
}

.hhcs-save-status[data-state="error"] .hhcs-status-dot {
    background: #b34545;
}

.hhcs-save-status[data-state="error"] .hhcs-save-message {
    color: #943737;
}

.hhcs-progress-wrap {
    padding: 11px 24px 15px;
    border-top: 1px solid var(--hhcs-line);
}

.hhcs-progress-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: var(--hhcs-muted);
    font-size: 11px;
}

.hhcs-progress-meta strong {
    color: var(--hhcs-ink);
    font-size: 11px;
}

.hhcs-progress {
    height: 6px;
    overflow: hidden;
    background: #e6eaed;
    border-radius: 99px;
}

.hhcs-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--hhcs-accent);
    border-radius: inherit;
    transition: width .2s ease;
}

.hhcs-save-confirmation {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 14px 16px;
    background: #eef5f1;
    border: 1px solid #cbded4;
    border-radius: 10px;
    color: #29483d;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 4px 16px rgba(24, 39, 58, .04);
}

.hhcs-save-confirmation[hidden] {
    display: none !important;
}

.hhcs-save-confirmation strong {
    flex: 0 0 auto;
    color: #213c33;
    font-weight: 800;
}

.hhcs-save-confirmation span {
    color: #405d53;
}

.hhcs-save-confirmation b {
    color: #213c33;
}

.hhcs-save-confirmation:focus {
    outline: none;
}

.hhcs-banner {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f8f5ec;
    border: 1px solid #e6dcc2;
    border-radius: 10px;
    color: #685b38;
    font-size: 13px;
}

.hhcs-section {
    margin-top: 24px;
}

.hhcs-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 9px;
    color: #596675;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.3;
    text-transform: uppercase;
}

.hhcs-section-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--hhcs-line);
}

.hhcs-question {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    padding: 18px;
    background: var(--hhcs-white);
    border: 1px solid var(--hhcs-line);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(24, 39, 58, .035);
}

.hhcs-question.has-error {
    border-color: #b94b4b;
    box-shadow: 0 0 0 3px rgba(185, 75, 75, .08);
}

.hhcs-information {
    background: #f8fafb;
}

.hhcs-question-head {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
}

.hhcs-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: #edf1f3;
    color: #536170;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}

.hhcs-app .hhcs-question h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin: 1px 0 0 !important;
    color: var(--hhcs-ink) !important;
    font-size: 16px !important;
    font-weight: 720 !important;
    letter-spacing: -.005em !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.hhcs-question-head p {
    margin: 4px 0 0 !important;
    color: var(--hhcs-muted) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.hhcs-required {
    padding: 2px 6px;
    border-radius: 99px;
    background: #eef1f3;
    color: #66727d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.5;
    text-transform: uppercase;
}

.hhcs-answer-area {
    margin-top: 14px;
    margin-left: 39px;
}

.hhcs-input,
.hhcs-supplement-grid textarea,
.hhcs-supplement-grid input,
.hhcs-update-form textarea,
.hhcs-update-form input[type="file"] {
    position: relative;
    z-index: 2;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border: 1px solid #cbd3da !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--hhcs-ink) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    user-select: text !important;
}

.hhcs-input,
.hhcs-supplement-grid input {
    min-height: 42px;
    padding: 9px 11px !important;
}

textarea.hhcs-input,
.hhcs-supplement-grid textarea,
.hhcs-update-form textarea {
    min-height: 96px;
    padding: 10px 11px !important;
    resize: vertical;
}

.hhcs-input:focus,
.hhcs-supplement-grid textarea:focus,
.hhcs-supplement-grid input:focus,
.hhcs-update-form textarea:focus,
.hhcs-update-form input[type="file"]:focus {
    outline: 0 !important;
    border-color: var(--hhcs-accent) !important;
    box-shadow: 0 0 0 3px rgba(47, 81, 70, .12) !important;
}

.hhcs-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 9px;
}

.hhcs-option {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0 !important;
    cursor: pointer !important;
    user-select: none;
}

.hhcs-option > .hhcs-choice-input {
    position: absolute !important;
    z-index: 3;
    top: 14px;
    left: 14px;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
}

.hhcs-option-body {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 11px 38px 11px 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #d3dae0;
    border-radius: 9px;
    cursor: pointer;
    transition: border-color .14s ease, background .14s ease, box-shadow .14s ease, transform .14s ease;
}

.hhcs-option:hover .hhcs-option-body {
    border-color: #aeb8c1;
}

.hhcs-option > .hhcs-choice-input:focus-visible + .hhcs-option-body {
    outline: 0;
    border-color: var(--hhcs-accent);
    box-shadow: 0 0 0 3px rgba(47, 81, 70, .12);
}

.hhcs-option > .hhcs-choice-input:checked + .hhcs-option-body {
    border-color: var(--hhcs-accent);
    background: #f5f8f7;
    box-shadow: inset 0 0 0 1px var(--hhcs-accent);
}

.hhcs-option-body::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 12px;
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-top: -9px;
    border: 1px solid #bcc6ce;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.hhcs-choice-grid[data-choice-type="checkbox"] .hhcs-option-body::after {
    border-radius: 5px;
}

.hhcs-option > .hhcs-choice-input:checked + .hhcs-option-body::after {
    content: "✓";
    border-color: var(--hhcs-accent);
    background: var(--hhcs-accent);
}

.hhcs-choice-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hhcs-choice-copy strong {
    overflow-wrap: anywhere;
    color: var(--hhcs-ink);
    font-size: 13px;
    font-weight: 720;
    line-height: 1.3;
}

.hhcs-choice-copy small {
    margin-top: 2px;
    color: var(--hhcs-muted);
    font-size: 11px;
    line-height: 1.35;
}

.hhcs-display-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 12px;
}

.hhcs-display-cards .hhcs-option {
    height: 100%;
}

.hhcs-display-cards .hhcs-option-body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 238px;
    height: 100%;
    padding: 0;
}

.hhcs-choice-media {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 112px;
    margin: 0;
    overflow: hidden;
    background: #eef1f3;
}

.hhcs-choice-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hhcs-choice-placeholder {
    display: grid;
    place-items: center;
    color: #8a959e;
}

.hhcs-display-cards .hhcs-choice-copy {
    flex: 1 1 auto;
    justify-content: flex-start;
    padding: 13px 42px 14px 14px;
}

.hhcs-display-cards .hhcs-choice-copy strong {
    font-size: 14px;
    line-height: 1.35;
}

.hhcs-display-cards .hhcs-choice-copy small {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
}

.hhcs-display-cards .hhcs-option-body::after {
    top: 12px;
    right: 12px;
    margin-top: 0;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .1);
}

.hhcs-display-colours {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.hhcs-colour-swatch {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 0, 0, .17);
    border-radius: 7px;
    background: var(--hhcs-choice-colour);
}

.hhcs-supplement-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf0f2;
}

.hhcs-supplement-grid label,
.hhcs-update-form label {
    display: block;
    margin: 0 !important;
}

.hhcs-supplement-grid label > span,
.hhcs-field-label {
    display: block;
    margin-bottom: 5px;
    color: #566473;
    font-size: 11px;
    font-weight: 750;
}

.hhcs-question-files {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf0f2;
}

.hhcs-upload-zone {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 11px;
    background: #f8fafb;
    border: 1px dashed #b5c0c8;
    border-radius: 9px;
}

.hhcs-upload-zone.is-dragging {
    border-color: var(--hhcs-accent);
    background: #f1f5f3;
}

.hhcs-upload-zone.is-uploading {
    opacity: .65;
}

.hhcs-file-input {
    display: block !important;
    width: min(100%, 470px) !important;
    min-height: 40px;
    margin: 0 !important;
    padding: 5px !important;
    border: 1px solid #cbd3da !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--hhcs-ink) !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

.hhcs-file-input::file-selector-button,
.hhcs-update-form input[type="file"]::file-selector-button {
    margin-right: 9px;
    padding: 7px 10px;
    border: 0;
    border-radius: 6px;
    background: var(--hhcs-accent);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.hhcs-upload-zone small {
    margin-left: auto;
    color: #78838d;
    font-size: 10px;
}

.hhcs-upload-progress-list {
    display: grid;
    width: 100%;
    gap: 8px;
    margin-top: 2px;
}

.hhcs-upload-progress-list:empty {
    display: none;
}

.hhcs-upload-progress-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    width: 100%;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #dfe5e8;
    border-radius: 8px;
}

.hhcs-upload-progress-details {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 7px;
}

.hhcs-upload-progress-name {
    min-width: 0;
    overflow: hidden;
    color: var(--hhcs-ink);
    font-size: 11px;
    font-weight: 740;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hhcs-upload-progress-meta,
.hhcs-upload-progress-percent,
.hhcs-upload-progress-status {
    color: #74808a;
    font-size: 10px;
    line-height: 1.3;
}

.hhcs-upload-progress-percent {
    font-weight: 750;
    text-align: right;
}

.hhcs-upload-progress-track {
    position: relative;
    grid-column: 1 / -1;
    height: 7px;
    overflow: hidden;
    background: #e7ecef;
    border-radius: 99px;
}

.hhcs-upload-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--hhcs-accent);
    border-radius: inherit;
    transition: width .15s linear;
}

.hhcs-upload-progress-track.is-indeterminate .hhcs-upload-progress-bar {
    width: 35% !important;
    animation: hhcs-upload-indeterminate 1.1s ease-in-out infinite;
}

.hhcs-upload-progress-status {
    grid-column: 1 / -1;
}

.hhcs-upload-progress-item[data-state="complete"] {
    border-color: #cbded4;
    background: #f5faf7;
}

.hhcs-upload-progress-item[data-state="complete"] .hhcs-upload-progress-status,
.hhcs-upload-progress-item[data-state="complete"] .hhcs-upload-progress-percent {
    color: #35624f;
}

.hhcs-upload-progress-item[data-state="error"] {
    border-color: #e4c7c7;
    background: #fff8f8;
}

.hhcs-upload-progress-item[data-state="error"] .hhcs-upload-progress-bar {
    background: #a84b4b;
}

.hhcs-upload-progress-item[data-state="error"] .hhcs-upload-progress-status,
.hhcs-upload-progress-item[data-state="error"] .hhcs-upload-progress-percent {
    color: #8b3333;
}

.hhcs-upload-list {
    display: grid;
    gap: 7px;
    margin-top: 8px;
}

.hhcs-upload-item {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 6px 8px;
    background: #fafbfc;
    border: 1px solid #e1e6e9;
    border-radius: 8px;
}

.hhcs-upload-item img,
.hhcs-file-icon,
.hhcs-upload-item > .dashicons {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.hhcs-upload-item img {
    object-fit: cover;
}

.hhcs-file-icon,
.hhcs-upload-item > .dashicons {
    display: grid;
    place-items: center;
    background: #e9edf0;
    color: #66727d;
    font-size: 9px;
    font-weight: 800;
}

.hhcs-upload-item a {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    color: #315246;
    font-size: 12px;
    text-decoration: none;
}

.hhcs-upload-item a:hover {
    text-decoration: underline;
}

.hhcs-remove-file {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 9px !important;
    border: 1px solid #e1c9c9 !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: #8c3a3a !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    cursor: pointer !important;
}

.hhcs-remove-file:hover {
    background: #fbf0f0 !important;
}

.hhcs-documents-section .hhcs-question {
    background: #fbfcfc;
}

.hhcs-file-number {
    background: #e9eef1;
    font-size: 16px;
}

.hhcs-form-footer {
    display: block;
    margin-top: 28px;
    padding: 22px;
    background: #f3f6f7;
    border: 1px solid #d7e0e4;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(24, 39, 58, .05);
}

.hhcs-footer-copy {
    margin-bottom: 15px;
}

.hhcs-form-footer .hhcs-footer-copy > strong {
    display: block;
    color: var(--hhcs-ink) !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}

.hhcs-form-footer .hhcs-footer-copy > p {
    max-width: 760px;
    margin: 4px 0 0 !important;
    color: var(--hhcs-muted) !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
}

.hhcs-footer-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, .75fr);
    gap: 11px;
    align-items: stretch;
}

.hhcs-app button.hhcs-save-return-button,
.hhcs-app button.hhcs-complete-button,
.hhcs-app button.hhcs-update-submit {
    position: relative !important;
    z-index: 5 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    width: auto;
    margin: 0 !important;
    border-radius: 9px !important;
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    cursor: pointer !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    box-shadow: none !important;
}

.hhcs-app button.hhcs-save-return-button {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    min-height: 62px !important;
    padding: 12px 18px !important;
    border: 1px solid var(--hhcs-accent) !important;
    background: var(--hhcs-accent) !important;
    color: #fff !important;
    text-align: left !important;
}

.hhcs-save-return-button .hhcs-save-return-label {
    display: block;
    color: inherit !important;
    font-size: 16px !important;
    font-weight: 780 !important;
    line-height: 1.25 !important;
}

.hhcs-save-return-button small {
    display: block !important;
    margin-top: 2px !important;
    color: rgba(255, 255, 255, .78) !important;
    font-size: 10px !important;
    font-weight: 550 !important;
    line-height: 1.3 !important;
}

.hhcs-app button.hhcs-complete-button {
    min-height: 62px !important;
    padding: 11px 15px !important;
    border: 1px solid #b8c4ca !important;
    background: #fff !important;
    color: var(--hhcs-ink) !important;
    font-size: 13px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
}

.hhcs-app button.hhcs-update-submit {
    min-height: 40px !important;
    padding: 9px 13px !important;
    border: 1px solid var(--hhcs-accent) !important;
    background: var(--hhcs-accent) !important;
    color: #fff !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

.hhcs-app button.hhcs-save-return-button:hover,
.hhcs-app button.hhcs-update-submit:hover {
    filter: brightness(.94);
}

.hhcs-app button.hhcs-complete-button:hover {
    border-color: #8f9da5 !important;
    background: #f9fbfb !important;
}

.hhcs-app button.hhcs-save-return-button:focus-visible,
.hhcs-app button.hhcs-complete-button:focus-visible,
.hhcs-app button.hhcs-update-submit:focus-visible,
.hhcs-app button.hhcs-remove-file:focus-visible {
    outline: 3px solid rgba(47, 81, 70, .18) !important;
    outline-offset: 2px;
}

.hhcs-app button.hhcs-save-return-button:disabled,
.hhcs-app button.hhcs-complete-button:disabled,
.hhcs-app button.hhcs-update-submit:disabled,
.hhcs-app button.hhcs-remove-file:disabled {
    opacity: .62 !important;
    cursor: wait !important;
}

.hhcs-has-unsaved .hhcs-form-footer {
    border-color: #d9c998;
}

.hhcs-later-update-panel {
    margin-top: 24px;
    padding: 19px;
    background: #fff;
    border: 1px solid var(--hhcs-line);
    border-radius: 12px;
}

.hhcs-later-update-head {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.hhcs-later-update-head > .dashicons {
    margin-top: 1px;
    color: #52665e;
}

.hhcs-app .hhcs-later-update-head h2 {
    margin: 0 !important;
    color: var(--hhcs-ink) !important;
    font-size: 17px !important;
    font-weight: 720 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
}

.hhcs-later-update-head p {
    margin: 3px 0 0 !important;
    color: var(--hhcs-muted) !important;
    font-size: 12px !important;
}

.hhcs-warning {
    margin: 14px 0;
    padding: 11px 12px;
    background: #f8f5ec;
    border: 1px solid #e6dcc2;
    border-radius: 8px;
    color: #62583b;
    font-size: 12px;
    line-height: 1.5;
}

.hhcs-update-form {
    display: grid;
    gap: 12px;
}

.hhcs-update-form label > strong {
    display: block;
    margin-bottom: 5px;
    color: var(--hhcs-ink);
    font-size: 12px;
}

.hhcs-update-form input[type="file"] {
    min-height: 44px;
    padding: 5px !important;
}

.hhcs-update-files small {
    display: block;
    margin-top: 5px;
    color: var(--hhcs-muted);
    font-size: 10px;
}

.hhcs-update-upload-progress {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    padding: 10px 11px;
    background: #f8fafb;
    border: 1px solid #dfe5e8;
    border-radius: 8px;
}

.hhcs-update-upload-progress[hidden] {
    display: none !important;
}

.hhcs-update-upload-text,
.hhcs-update-upload-percent {
    color: #68757f;
    font-size: 11px;
}

.hhcs-update-upload-percent {
    font-weight: 750;
}

.hhcs-update-upload-track {
    grid-column: 1 / -1;
    height: 8px;
    overflow: hidden;
    background: #e5ebee;
    border-radius: 99px;
}

.hhcs-update-upload-bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--hhcs-accent);
    border-radius: inherit;
    transition: width .15s linear;
}

.hhcs-update-upload-progress[data-state="complete"] {
    border-color: #cbded4;
    background: #f5faf7;
}

.hhcs-update-upload-progress[data-state="complete"] .hhcs-update-upload-text,
.hhcs-update-upload-progress[data-state="complete"] .hhcs-update-upload-percent {
    color: #35624f;
}

.hhcs-update-upload-progress[data-state="error"] {
    border-color: #e4c7c7;
    background: #fff8f8;
}

.hhcs-update-upload-progress[data-state="error"] .hhcs-update-upload-bar {
    background: #a84b4b;
}

.hhcs-update-upload-progress[data-state="error"] .hhcs-update-upload-text,
.hhcs-update-upload-progress[data-state="error"] .hhcs-update-upload-percent {
    color: #8b3333;
}

.hhcs-update-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.hhcs-update-status {
    flex: 1;
    color: var(--hhcs-muted);
    font-size: 12px;
}

.hhcs-update-status[data-state="error"] {
    color: #8b3333;
}

.hhcs-update-status[data-state="saved"] {
    color: #35624f;
}

.hhcs-update-submit {
    min-height: 40px;
    padding: 9px 13px !important;
    font-size: 12px !important;
}

.hhcs-standalone-notice {
    max-width: 760px;
    margin: 32px auto;
    padding: 15px 17px;
    background: #f8f5ec;
    border: 1px solid #e6dcc2;
    border-radius: 10px;
    color: #5d563c;
}

@keyframes hhcs-pulse {
    50% { opacity: .35; }
}

@keyframes hhcs-upload-indeterminate {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(320%); }
}


@media (min-width: 600px) and (max-width: 999px) {
    .hhcs-display-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1000px) {
    .hhcs-display-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .hhcs-app {
        margin-top: 10px;
    }

    .hhcs-brand-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 18px 16px 16px;
    }

    .hhcs-logo {
        max-width: 116px;
        max-height: 44px;
    }

    .hhcs-customer-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        padding: 11px 16px;
    }

    .hhcs-progress-wrap {
        padding-right: 16px;
        padding-left: 16px;
    }

    .hhcs-question {
        padding: 16px 14px;
    }

    .hhcs-answer-area {
        margin-left: 0;
    }

    .hhcs-choice-grid,
    .hhcs-display-colours {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hhcs-display-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hhcs-supplement-grid {
        grid-template-columns: 1fr;
    }

    .hhcs-upload-zone small {
        width: 100%;
        margin-left: 0;
    }

    .hhcs-upload-progress-details {
        display: block;
    }

    .hhcs-upload-progress-meta {
        display: block;
        margin-top: 2px;
    }

    .hhcs-form-footer {
        padding: 17px 14px;
    }

    .hhcs-footer-actions {
        grid-template-columns: 1fr;
    }

    .hhcs-app button.hhcs-save-return-button,
    .hhcs-app button.hhcs-complete-button {
        width: 100% !important;
    }

    .hhcs-update-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hhcs-update-submit {
        width: 100%;
    }
}

@media (max-width: 599px) {
    .hhcs-choice-grid,
    .hhcs-display-cards,
    .hhcs-display-colours {
        grid-template-columns: 1fr;
    }

    .hhcs-display-cards .hhcs-option-body {
        min-height: 0;
    }

    .hhcs-choice-media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}


.hhcs-update-icon {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 9px;
    background: var(--hhcs-accent);
    color: #fff;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
}

.hhcs-placeholder-icon,
.hhcs-file-icon {
    display: inline-grid;
    place-items: center;
    min-width: 36px;
    min-height: 24px;
    padding: 3px 6px;
    border: 1px solid #cbd3da;
    border-radius: 5px;
    color: #65717d;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1;
}

@media (max-width: 620px) {
    .hhcs-save-confirmation {
        display: block;
    }

    .hhcs-save-confirmation strong,
    .hhcs-save-confirmation span {
        display: block;
    }

    .hhcs-save-confirmation span {
        margin-top: 3px;
    }
}


/* v2.9 emailed-file receipt rows */
.hhcs-app .hhcs-upload-receipt {
    grid-template-columns: 46px minmax(0, 1fr) !important;
}
.hhcs-app .hhcs-upload-receipt-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}
.hhcs-app .hhcs-upload-receipt-copy strong {
    overflow-wrap: anywhere;
    color: #162331;
    font-size: 14px;
    line-height: 1.35;
}
.hhcs-app .hhcs-upload-receipt-copy small {
    color: #66727d;
    font-size: 12px;
    line-height: 1.35;
}
