.avp-overlay[hidden] { display: none !important; }
body.avp-scroll-locked { overflow: hidden !important; }
.avp-overlay, .avp-page { font-family: Arial, Helvetica, sans-serif; }
.avp-overlay *, .avp-page * { box-sizing: border-box; }

.avp-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 16px;
    background: rgba(0, 0, 0, .72);
}
.avp-dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border-radius: 12px;
    background: #fff;
    color: #222;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}
.avp-dialog--story { width: min(100%, 430px); }
.avp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #222;
    font: 28px/1 Arial, Helvetica, sans-serif;
    cursor: pointer;
}
.avp-story__media { background: #222; }
.avp-story__media video,
.avp-page__video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.avp-story__actions { padding: 16px; }

.avp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 24px;
    min-height: 50px;
    border: 1px solid #222;
    border-radius: 3px;
    cursor: pointer;
    font: 600 14px/1.2 Arial, Helvetica, sans-serif;
    text-decoration: none;
}
.avp-btn--dark { background: #222; color: #fff; }
.avp-btn--dark:hover { background: #444; color: #fff; }
.avp-btn--dark:disabled { opacity: .6; cursor: wait; }
.avp-btn--full { width: 100%; }

.avp-page { width: min(100% - 32px, 470px); margin: 0 auto; padding: 45px 0 75px; }
.avp-page__video { min-height: 320px; margin-bottom: 18px; background: #222; }

.avp-dialog--form { padding: 54px 28px 26px; }
.avp-field { display: block; margin-bottom: 18px; color: #222; font-size: 14px; font-weight: 600; }
.avp-field input {
    display: block;
    width: 100%;
    margin-top: 9px;
    padding: 12px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font: 16px/1.4 Arial, Helvetica, sans-serif;
}
.avp-field input:focus { outline: 2px solid #888; outline-offset: 1px; }
.avp-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.avp-form-message { min-height: 18px; margin-top: 14px; color: #396038; font-size: 13px; line-height: 1.5; }
.avp-form-message[data-error="true"] { color: #a43c32; }

@media (max-width: 480px) {
    .avp-overlay { padding: 10px; }
    .avp-dialog { max-height: calc(100dvh - 20px); max-width: 80%; }
    .avp-dialog--form { padding: 54px 20px 22px; }
    .avp-page { padding: 25px 0 50px; }
}
