/* Shop Garage – hlídací pes (F6-33): modální okno a stránka potvrzení / zrušení. Jen třídy esh-, nic globálního. */

.esh.esh-hp-dialog {
    width: min(520px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
    overscroll-behavior: contain;
}

/* kořen .esh má display:block (eshop.css) — zavřený <dialog> musí zůstat skrytý */
.esh.esh-hp-dialog:not([open]) {
    display: none;
}

.esh.esh-hp-dialog::backdrop {
    background: rgba(17, 18, 20, .62);
    backdrop-filter: blur(2px);
}

.esh.esh-hp-dialog[open] {
    animation: esh-hp-in .22s var(--esh-ease, ease-out);
}

@keyframes esh-hp-in {
    from { opacity: 0; transform: translateY(14px) scale(.98); }
    to { opacity: 1; transform: none; }
}

.esh .esh-hp {
    position: relative;
    margin: 0;
    padding: 30px 26px 26px;
}

.esh .esh-hp__zavrit {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.esh .esh-hp__zavrit:hover {
    background: var(--esh-paper);
}

.esh .esh-hp__nadtitulek {
    margin: 0 0 6px;
    color: var(--esh-red);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.esh .esh-hp__titulek {
    margin: 0 44px 6px 0;
    color: var(--esh-ink);
    font-size: clamp(22px, 5vw, 26px);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.2;
}

.esh .esh-hp__cena {
    margin: 0 0 18px;
    color: var(--esh-muted);
    font-size: 14px;
}

.esh .esh-hp__pole {
    margin: 0 0 16px;
}

.esh .esh-hp__popisek {
    display: block;
    margin: 0 0 8px;
    padding: 0;
    color: var(--esh-ink);
    font-size: 14px;
    font-weight: 800;
}

.esh .esh-hp__vstup {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--esh-line-strong);
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
}

.esh .esh-hp__vstup:focus {
    border-color: var(--esh-ink);
    outline: none;
    box-shadow: 0 0 0 3px rgba(226, 100, 56, .25);
}

.esh .esh-hp__vstup[aria-invalid="true"] {
    border-color: var(--esh-red);
}

.esh .esh-hp__skupina {
    min-width: 0;
    margin: 0 0 16px;
    padding: 0;
    border: 0;
}

.esh .esh-hp__volba {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 8px;
    padding: 12px 14px;
    border: 1px solid var(--esh-line);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color .15s, background-color .15s;
}

.esh .esh-hp__volba[hidden] {
    display: none;
}

.esh .esh-hp__volba:hover {
    border-color: var(--esh-line-strong);
}

.esh .esh-hp__volba:has(input:checked) {
    border-color: var(--esh-ink);
    background: var(--esh-paper);
}

.esh .esh-hp__volba input,
.esh .esh-hp__souhlas input {
    flex: none;
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    accent-color: var(--esh-red);
}

.esh .esh-hp__volba-text {
    display: flex;
    flex-direction: column;
    line-height: 1.35;
}

.esh .esh-hp__volba-text strong {
    font-size: 15px;
    font-weight: 800;
}

.esh .esh-hp__volba-text small {
    color: var(--esh-muted);
    font-size: 13px;
}

.esh .esh-hp__castka {
    position: relative;
    margin: -2px 0 10px 46px;
}

.esh .esh-hp__castka[hidden] {
    display: none;
}

.esh .esh-hp__castka .esh-hp__vstup {
    padding-right: 48px;
}

.esh .esh-hp__mena {
    position: absolute;
    top: 50%;
    right: 14px;
    color: var(--esh-muted);
    font-weight: 700;
    transform: translateY(-50%);
}

.esh .esh-hp__doby {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.esh .esh-hp__doba {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.esh .esh-hp__doba input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.esh .esh-hp__doba span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 8px;
    border: 1px solid var(--esh-line-strong);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    transition: background-color .15s, color .15s, border-color .15s;
}

.esh .esh-hp__doba input:checked + span {
    border-color: var(--esh-ink);
    color: #fff;
    background: var(--esh-ink);
}

.esh .esh-hp__doba input:focus-visible + span {
    outline: 3px solid var(--esh-focus);
    outline-offset: 2px;
}

.esh .esh-hp__souhlas {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 4px 0 8px;
    color: var(--esh-muted);
    font-size: 13px;
    line-height: 1.45;
    cursor: pointer;
}

.esh .esh-hp__chyba {
    margin: 6px 0 0;
    color: var(--esh-red-dark, #ad211c);
    font-size: 13px;
    font-weight: 700;
}

.esh .esh-hp__chyba[hidden] {
    display: none;
}

.esh .esh-hp__chyba--formular {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fbeceb;
}

.esh .esh-hp__past {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.esh .esh-hp__odeslat {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    margin: 16px 0 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: var(--esh-red);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: background-color .15s;
}

.esh .esh-hp__odeslat:hover {
    background: var(--esh-red-dark, #ad211c);
}

.esh .esh-hp__odeslat:disabled {
    opacity: .7;
    cursor: progress;
}

html.esh-hp-otevreno {
    overflow: hidden;
}

@media (max-width: 480px) {
    .esh.esh-hp-dialog {
        width: 100vw;
        max-height: 92dvh;
        margin: auto 0 0;
        border-radius: 14px 14px 0 0;
    }

    .esh .esh-hp {
        padding: 26px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    }

    .esh .esh-hp__castka {
        margin-left: 0;
    }
}

/* ---------- stránka /hlidaci-pes/potvrdit|zrusit ---------- */
.esh .esh-hp-vysledek {
    max-width: 640px;
    margin: 40px auto 0;
    padding: 40px 28px;
    border: 1px solid var(--esh-line);
    border-radius: 10px;
    background: #fff;
    text-align: center;
}

.esh .esh-hp-vysledek__ikona {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin: 0 0 16px;
    border-radius: 50%;
    color: var(--esh-ink);
    background: var(--esh-paper);
}

.esh .esh-hp-vysledek--ok .esh-hp-vysledek__ikona {
    color: #fff;
    background: var(--esh-green, #1d6b35);
}

.esh .esh-hp-vysledek--chyba .esh-hp-vysledek__ikona {
    color: #fff;
    background: var(--esh-red);
}

.esh .esh-hp-vysledek__nadpis {
    margin: 0 0 10px;
    color: var(--esh-ink);
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 800;
    letter-spacing: -.01em;
    line-height: 1.15;
}

.esh .esh-hp-vysledek__text {
    margin: 0 auto 20px;
    max-width: 52ch;
    color: var(--esh-muted);
}

.esh .esh-hp-vysledek__udaje {
    margin: 0 0 20px;
    padding: 0;
    border-top: 1px solid var(--esh-line);
    text-align: left;
}

.esh .esh-hp-vysledek__udaje > div {
    display: grid;
    grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--esh-line);
}

.esh .esh-hp-vysledek__udaje dt {
    color: var(--esh-muted);
    font-size: 14px;
}

.esh .esh-hp-vysledek__udaje dd {
    margin: 0;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.esh .esh-hp-vysledek__udaje a {
    color: var(--esh-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.esh .esh-hp-vysledek__pozn {
    margin: 0 0 18px;
    font-size: 14px;
}

.esh .esh-hp-vysledek__pozn a {
    color: var(--esh-red);
    text-decoration: underline;
}

.esh .esh-hp-vysledek__akce {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .esh.esh-hp-dialog[open] {
        animation: none;
    }
}
