.tbhc-global-popup {
    width: min(680px, calc(100vw - 2rem));
    max-width: 680px;
    max-height: calc(100dvh - 2rem);
    margin: auto;
    padding: 0;
    border: 1px solid #d9d9d9;
    border-radius: 12px;
    overflow: hidden;
    color: #333333;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
}

.tbhc-global-popup::backdrop {
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.tbhc-global-popup[open] {
    animation: tbhc-popup-enter 220ms ease-out;
}

@keyframes tbhc-popup-enter {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tbhc-global-popup__inner {
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 2rem);
}

.tbhc-global-popup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid #d9d9d9;
    background: #054252;
    color: #ffffff;
}

.tbhc-global-popup__title {
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
}

.tbhc-global-popup__close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    background: transparent;
    color: #ffffff;
    font-size: 2.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
}

.tbhc-global-popup__close:hover,
.tbhc-global-popup__close:focus {
    background: #b1a061;
    border-color: #b1a061;
    color: #054252;
    outline: none;
}

.tbhc-global-popup__body {
    padding: 1.25rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.tbhc-global-popup__body > :first-child {
    margin-top: 0;
}

.tbhc-global-popup__body > :last-child {
    margin-bottom: 0;
}

.tbhc-global-popup__body a:not(.btn) {
    color: #054252;
    text-decoration: underline;
}

.tbhc-global-popup__body .btn {
    margin-top: 0.5rem;
}

@media (max-width: 575px) {
    .tbhc-global-popup {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
    }

    .tbhc-global-popup__inner {
        max-height: calc(100dvh - 1rem);
    }

    .tbhc-global-popup__header {
        padding: 1rem;
    }

    .tbhc-global-popup__title {
        font-size: 1.6rem;
    }

    .tbhc-global-popup__body {
        padding: 1rem;
    }
}
