/* Copyright (c) 2026 DNA Genics, S.L. All rights reserved. */
.hdo-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--hd-bg);
    color: var(--hd-ink);
    font: 400 1rem/1.6 var(--hd-sans);
}

.hdo-shell :focus-visible {
    outline: 3px solid #87652d;
    outline-offset: 3px;
}

.hdo-shell [hidden] { display: none !important; }

.hdo-skip {
    position: fixed;
    inset: 12px auto auto 12px;
    z-index: 2000;
    transform: translateY(-200%);
    padding: 10px 16px;
    background: var(--hd-primary);
    color: white;
}

.hdo-skip:focus { transform: none; color: white; }
.hdo-header { background: var(--hd-surface); border-bottom: 1px solid var(--hd-border); }
.hdo-header__inner,
.hdo-footer__inner,
.hdo-progress,
.hdo-shell .hdo-page {
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: clamp(16px, 4vw, 56px);
}

.hdo-header__inner,
.hdo-footer__inner,
.hdo-header__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hdo-header__inner { min-height: 68px; padding-block: 8px; }
.hdo-brand { display: flex; align-items: center; min-width: 0; min-height: 44px; }
.hdo-brand img { display: block; width: 154px; max-width: 100%; height: auto; }
.hdo-header__actions { flex-shrink: 0; }
.hdo-header__actions .dna-currency-switcher__btn { min-height: 44px; }
.hdo-exit { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
.hdo-exit, .hdo-footer a { color: var(--hd-primary); }
.hdo-main { flex: 1; min-width: 0; }
.hdo-progress { padding-top: 18px; }
.hdo-shell .hdo-page { padding-block: 24px 48px; }
.hdo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 340px);
    gap: clamp(16px, 3vw, 36px);
    align-items: start;
}

.hdo-grid > :only-child { grid-column: 1 / -1; }
.hdo-panel, .hdo-aside {
    min-width: 0;
    border: 1px solid var(--hd-border);
    border-radius: var(--hd-radius);
    overflow-wrap: anywhere;
}

.hdo-panel { background: var(--hd-surface); padding: clamp(20px, 3vw, 40px); }
.hdo-aside { background: var(--hd-cream); padding: clamp(18px, 2vw, 28px); }
.hdo-heading { margin-bottom: 24px; }
.hdo-aside__section { border-top: 1px solid var(--hd-line); margin-top: 20px; padding-top: 18px; }
.hdo-aside__section p, .hdo-product__category { color: var(--hd-muted); font-size: .875rem; margin: 0 0 8px; }
.hdo-subtitle { font: 600 1.55rem/1.15 var(--hd-serif); color: var(--hd-primary); margin: 0 0 12px; }

.hdo-shell .ob-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #765b30;
    font: 700 .75rem/1.4 var(--hd-sans);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hdo-shell .ob-title {
    margin: 0;
    color: var(--hd-primary);
    font: 600 clamp(2.15rem, 4vw, 3.6rem)/1.04 var(--hd-serif);
}

.hdo-shell .ob-lede { margin: 10px 0 0; color: var(--hd-muted); max-width: 64ch; }
.hdo-shell .ob-link, .hdo-shell .ob-check__text a { color: var(--hd-primary); text-decoration: underline; text-underline-offset: 3px; }
.hdo-product { display: flex; align-items: flex-start; gap: 14px; }
.hdo-product__image { flex-shrink: 0; width: 64px; height: 64px; object-fit: contain; border-radius: 8px; background: var(--hd-surface); }
.hdo-product__text { min-width: 0; }
.hdo-product__title { font: 600 1.55rem/1.08 var(--hd-serif); color: var(--hd-primary); margin: 0 0 4px; }
.hdo-product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-top: 14px; }
.hdo-product__price strong { font-size: 1.375rem; color: var(--hd-primary); }
.hdo-product__price del { color: var(--hd-muted); }
.hdo-next { padding-inline-start: 24px; margin: 0 0 24px; }
.hdo-next li { padding: 10px 0 10px 4px; border-bottom: 1px solid var(--hd-line); }
.hdo-next li::marker { color: #765b30; font-weight: 700; }
.hdo-next li span { display: block; color: var(--hd-muted); font-size: .875rem; }
.hdo-signin { margin: 14px 0 0; }

.hdo-shell .ob-cta-cluster { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hdo-shell .ob-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--hd-primary);
    border-radius: 8px;
    background: var(--hd-primary);
    color: white;
    font: 600 .9rem/1.4 var(--hd-sans);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.hdo-shell .ob-btn:hover { background: #172a21; color: white; }
.hdo-shell .ob-btn--ghost { background: var(--hd-surface); border-color: #c8bdac; color: var(--hd-primary); }
.hdo-shell .ob-btn--ghost:hover { background: var(--hd-sand); color: var(--hd-primary); }
.hdo-shell .ob-btn:disabled { background: var(--hd-sage); border-color: #b9c9b8; color: #405446; cursor: not-allowed; }
.hdo-shell .ob-btn--block { width: 100%; }
.hdo-shell .ob-form, .hdo-shell .ob-form__row { display: grid; gap: 14px; }
.hdo-shell .ob-form__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hdo-shell .ob-field { position: relative; min-width: 0; }
.hdo-shell .ob-field__label { display: block; color: var(--hd-primary); font-weight: 600; margin-bottom: 5px; }
.hdo-shell .ob-field__input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #8a8174;
    border-radius: 8px;
    background: var(--hd-surface);
    color: var(--hd-ink);
    padding: 8px 12px;
    font: inherit;
}
.hdo-shell .ob-field:has(.ob-field__action) .ob-field__input { padding-inline-end: 52px; }
.hdo-shell .ob-field__action {
    position: absolute;
    inset: 31px 1px auto auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 7px;
    background: var(--hd-surface);
    color: var(--hd-primary);
    cursor: pointer;
}
.hdo-shell .ob-field__help { color: var(--hd-muted); margin: 5px 0 0; font-size: .875rem; }
.hdo-shell .ob-field__error { color: #8a302c; font-size: .875rem; }
.hdo-shell .ob-field__error:not(:empty) { display: block; margin-top: 4px; }
.hdo-shell .ob-field__input:is(.is-invalid, .input-validation-error) { border-color: #8a302c; }
.hdo-shell .ob-check { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; padding-block: 8px; }
.hdo-shell .ob-check input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 4px; accent-color: var(--hd-primary); }
.hdo-shell .ob-check__required { color: #8a302c; }
.hdo-shell .ob-alert { border: 1px solid #e2b7b0; border-radius: 8px; padding: 12px 16px; margin-bottom: 16px; color: #732722; background: #fff3f0; }
.hdo-shell .ob-alert ul { margin-bottom: 0; padding-inline-start: 20px; }
.hdo-shell .ob-social { display: flex; flex-wrap: wrap; gap: 10px; }
.hdo-shell .ob-social button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 14px;
    border: 1px solid #c8bdac;
    border-radius: 8px;
    background: var(--hd-surface);
    color: var(--hd-primary);
    font: inherit;
    cursor: pointer;
}
.hdo-shell .ob-social button:hover { background: var(--hd-sand); }
.hdo-shell .ob-social svg { width: 18px; height: 18px; flex-shrink: 0; }
.hdo-shell .ob-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--hd-muted); font-size: .875rem; }
.hdo-shell .ob-divider::before, .hdo-shell .ob-divider::after { content: ""; flex: 1; border-top: 1px solid var(--hd-line); }
.hdo-shell .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-inline-end-color: transparent;
    border-radius: 50%;
    animation: hdo-spin .8s linear infinite;
}
@keyframes hdo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .hdo-shell .spinner { animation: none; }
}

.hdo-confirmation-mark {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--hd-sage);
    color: var(--hd-primary);
}
.hdo-reference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px;
    border-radius: 10px;
    background: var(--hd-cream);
}
.hdo-reference > div { min-width: 0; }
.hdo-reference__label { display: block; font-size: .875rem; color: var(--hd-muted); }
.hdo-reference__status { flex-basis: 100%; margin: 0; font-size: .875rem; }
.hdo-reference__status:empty { position: absolute; }
.hdo-shell .ob-footer-note { margin: 18px 0 0; color: var(--hd-muted); font-size: .875rem; }
.hdo-shell .ob-footer-note a { color: var(--hd-primary); }
.hdo-footer { background: var(--hd-sand); border-top: 1px solid var(--hd-border); }
.hdo-footer__inner { flex-wrap: wrap; padding-block: 10px; }
.hdo-footer nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hdo-footer nav a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }

@media (max-width: 899px) {
    .hdo-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
    .hdo-brand img { width: 122px; }
    .hdo-header__actions { gap: 4px; }
    .hdo-shell .hdo-page { padding-top: 16px; }
    .hdo-shell .ob-form__row { grid-template-columns: minmax(0, 1fr); }
    .hdo-shell .ob-cta-cluster > * { width: 100%; }
}
