.hco-tab {
    position: fixed;
    z-index: 1190;
    top: 63%;
    right: 0;
    display: flex;
    flex-direction: column;
    width: 33px;
    height: 154px;
    transform: translateY(-50%);
    background: #4f1e00;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

.hco-tab button {
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    cursor: pointer;
}

.hco-tab-close {
    display: grid;
    place-items: center;
    width: 33px;
    height: 31px;
    padding: 0;
    font-size: 20px;
    line-height: 1;
}

.hco-tab-open {
    display: grid;
    place-items: center;
    min-height: 123px;
    width: 33px;
    padding: 10px 6px;
    font-size: 14px;
    line-height: 20px;
    white-space: nowrap;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.hco-overlay {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.53);
    font-family: Arial, Helvetica, sans-serif;
    color: #181818;
}

.hco-panel {
    position: relative;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    width: min(550px, 100%);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    min-height: 0;
    padding: 24px;
    overflow: hidden;
    border-radius: 2px;
    background: #fff;
    outline: none;
}

.hco-panel * {
    box-sizing: border-box;
}

.hco-panel button {
    cursor: pointer;
    font: inherit;
}

.hco-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex: none;
}

.hco-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 29px;
}

.hco-close {
    display: grid;
    place-items: center;
    flex: none;
    width: 27px;
    height: 27px;
    padding: 0;
    border: 0;
    background: none;
    color: #111;
    font-size: 28px !important;
    font-weight: 300 !important;
    line-height: 1;
}

.hco-description {
    flex: none;
    margin: 10px 0 22px;
    color: #777;
    font-size: 16px;
    line-height: 22px;
}

.hco-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 0 1 auto;
    max-height: 455px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #cdb9a5 transparent;
    scrollbar-width: thin;
}

.hco-ticket {
    position: relative;
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    flex: none;
    min-height: 141px;
    background: #fff4df;
}

.hco-ticket::before,
.hco-ticket::after {
    position: absolute;
    z-index: 1;
    top: 0;
    bottom: 0;
    width: 20px;
    background: radial-gradient(circle, #fff 0 11px, transparent 11.5px)
            center / 20px 20px no-repeat,
        radial-gradient(circle, #fff 0 4px, transparent 4.5px) center top / 20px
            16px repeat-y;
    content: '';
    pointer-events: none;
}

.hco-ticket::before {
    left: -10px;
}

.hco-ticket::after {
    right: -10px;
}

.hco-ticket-side {
    display: grid;
    place-items: center;
    background: #aa8a70;
    color: #fff;
    font-size: 16px;
    letter-spacing: 1px;
    line-height: 20px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.hco-ticket-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 16px 25px 12px;
    text-align: center;
}

.hco-headline {
    display: block;
    color: #4f1e00;
    font-size: 34px;
    font-weight: 400;
    line-height: 42px;
}

.hco-details {
    margin-top: 8px;
    padding-top: 9px;
    border-top: 1px solid #d7cdbb;
    color: #777;
    font-size: 14px;
    line-height: 20px;
}

.hco-code {
    padding: 0;
    border: 0;
    background: none;
    color: #4f1e00;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hco-terms {
    margin: 5px 0 0;
    color: #777;
    font-size: 14px;
    line-height: 20px;
    overflow-wrap: anywhere;
}

.hco-shop {
    flex: none;
    width: 100%;
    min-height: 40px;
    margin-top: 24px;
    padding: 8px 16px;
    border: 0;
    border-radius: 2px;
    background: #4f1e00;
    color: #fff;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 24px;
    text-align: center;
}

.hco-message {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 48px);
    padding: 9px 13px;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    background: rgba(75, 75, 75, 0.72);
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
}

.hco-message svg {
    flex: none;
    color: #56c32c;
}

.hco-tab button:focus-visible,
.hco-panel button:focus-visible {
    outline: 2px solid #4f1e00;
    outline-offset: 2px;
}

.hco-tab button:focus-visible {
    outline-color: #fff;
    outline-offset: -3px;
}

@media (max-width: 600px) {
    .hco-tab,
    .hco-tab-close,
    .hco-tab-open {
        width: 29px;
    }

    .hco-tab {
        height: 141px;
    }

    .hco-tab-open {
        min-height: 110px;
        font-size: 12px;
    }

    .hco-overlay {
        padding: 16px;
    }

    .hco-panel {
        padding: 18px;
    }

    .hco-header h2 {
        font-size: 20px;
        line-height: 27px;
    }

    .hco-description {
        margin: 9px 0 18px;
        font-size: 14px;
        line-height: 20px;
    }

    .hco-list {
        gap: 12px;
        max-height: 399px;
    }

    .hco-ticket {
        grid-template-columns: 65px minmax(0, 1fr);
        min-height: 125px;
    }

    .hco-ticket-side {
        font-size: 13px;
    }

    .hco-ticket-body {
        padding: 12px 10px 10px;
    }

    .hco-headline {
        font-size: 26px;
        line-height: 34px;
    }

    .hco-details {
        margin-top: 5px;
        padding-top: 7px;
        font-size: 12px;
        line-height: 18px;
    }

    .hco-terms {
        margin-top: 4px;
        font-size: 12px;
        line-height: 17px;
    }

    .hco-shop {
        margin-top: 18px;
        font-size: 14px !important;
    }
}
