.amhp-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(28, 24, 20, 0.58);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.amhp-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.amhp-overlay[hidden] {
    display: none;
}

.amhp-banner {
    position: relative;
    z-index: 99998;
    width: 100%;
    background: rgba(43, 43, 43, 0.97);
    color: #f9f9f4;
    border-bottom: 1px solid rgba(184, 155, 106, 0.45);
    transform: translateY(-100%);
    transition: transform 0.25s ease;
}

.amhp-banner.is-visible,
.amhp-banner.is-preview {
    transform: translateY(0);
}

.amhp-banner[hidden] {
    display: none;
}

.amhp-banner__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0;
}

.amhp-banner__text {
    margin: 0;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.amhp-banner__close {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f9f9f4;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.amhp-banner__close:hover,
.amhp-banner__close:focus-visible {
    opacity: 1;
    outline: none;
}

.amhp-dialog {
    position: relative;
    width: min(520px, 100%);
    padding: 44px 40px 36px;
    background: #f9f9f4;
    color: #555;
    text-align: center;
    box-shadow: 0 24px 60px rgba(28, 24, 20, 0.28);
    border: 1px solid rgba(184, 155, 106, 0.28);
    transform: translateY(16px) scale(0.98);
    transition: transform 0.4s ease;
}

.amhp-overlay.is-visible .amhp-dialog {
    transform: translateY(0) scale(1);
}

.amhp-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8a8478;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.amhp-close:hover,
.amhp-close:focus-visible {
    color: #2b2b2b;
    outline: none;
}

.amhp-kicker {
    margin: 0 0 8px;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #b89b6a;
}

.amhp-title {
    margin: 0;
    font-family: "EB Garamond", Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 500;
    line-height: 1.15;
    color: #2b2b2b;
}

.amhp-rule {
    width: 56px;
    height: 1px;
    margin: 18px auto 22px;
    background: #b89b6a;
}

.amhp-message {
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    color: #666;
}

.amhp-message p {
    margin: 0 0 12px;
}

.amhp-message p:last-child {
    margin-bottom: 0;
}

.amhp-address {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin: 22px auto 0;
    padding: 14px 18px;
    max-width: 280px;
    background: #fff;
    border: 1px solid rgba(184, 155, 106, 0.35);
    color: #2b2b2b;
    text-align: left;
}

.amhp-pin {
    flex: 0 0 auto;
    margin-top: 2px;
    color: #b89b6a;
}

.amhp-address p {
    margin: 0;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.amhp-button {
    display: inline-block;
    margin-top: 28px;
    padding: 13px 32px;
    border: 1px solid #2b2b2b;
    background: #2b2b2b;
    color: #f9f9f4;
    font-family: Montserrat, Helvetica, Arial, sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.amhp-button:hover,
.amhp-button:focus-visible {
    background: transparent;
    color: #2b2b2b;
    outline: none;
}

@media (max-width: 540px) {
    .amhp-banner__inner {
        width: calc(100% - 24px);
        gap: 10px;
        padding: 10px 0;
    }

    .amhp-banner__text {
        font-size: 12px;
        text-align: left;
    }

    .amhp-dialog {
        padding: 36px 22px 28px;
    }

    .amhp-title {
        font-size: 30px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .amhp-banner,
    .amhp-overlay,
    .amhp-dialog {
        transition: none;
    }
}
