.hasepost-curtain-drop[hidden] {
    display: none !important;
}

.hasepost-curtain-drop {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    contain: strict;
    overflow: hidden;
    background: transparent;
    opacity: 1;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.hasepost-curtain-drop.is-closing {
    opacity: 0;
    pointer-events: none;
}

.hasepost-curtain-drop__link,
.hasepost-curtain-drop__canvas {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.hasepost-curtain-drop__link {
    background: transparent;
    cursor: pointer;
    pointer-events: none;
}

.hasepost-curtain-drop.is-complete .hasepost-curtain-drop__link {
    pointer-events: auto;
}

.hasepost-curtain-drop.is-mobile .hasepost-curtain-drop__link,
.hasepost-curtain-drop.is-desktop-compact .hasepost-curtain-drop__link {
    bottom: auto;
    height: var(--hasepost-curtain-display-height, 28vh);
}

.hasepost-curtain-drop.is-mobile,
.hasepost-curtain-drop.is-desktop-compact,
.hasepost-curtain-drop.is-below-header {
    top: var(--hasepost-curtain-anchor-top, 0px);
}

.hasepost-curtain-drop.is-mobile,
.hasepost-curtain-drop.is-desktop-compact {
    bottom: auto;
    height: var(--hasepost-curtain-canvas-height, 36vh);
}

.hasepost-curtain-drop__label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 3px 5px;
    border-radius: 2px;
    background: rgba(76, 76, 76, 0.68);
    color: #fff;
    font: 700 8px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
    pointer-events: none;
    z-index: 2;
}

.hasepost-curtain-drop__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: rgba(76, 76, 76, 0.68);
    box-shadow: none;
    color: #fff;
    appearance: none;
    font: inherit;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
}

.hasepost-curtain-drop__close::before {
    content: "";
    position: absolute;
    inset: -10px;
}

.hasepost-curtain-drop__close svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.hasepost-curtain-drop__close:hover,
.hasepost-curtain-drop__close:focus-visible {
    border-color: #fff;
    background: #00679e;
    color: #fff;
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 2px;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hasepost-curtain-drop {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hasepost-curtain-drop.is-mobile .hasepost-curtain-drop__label {
        top: 12px;
        left: max(12px, env(safe-area-inset-left));
    }

    .hasepost-curtain-drop.is-mobile .hasepost-curtain-drop__close {
        top: 10px;
        right: max(10px, env(safe-area-inset-right));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hasepost-curtain-drop {
        transition: none;
    }
}
