/* --------------------------------------------------------- */
/* STANDALONE POPUP
/* --------------------------------------------------------- */
body.beerloyuz-ai-popup-active {
    overflow: hidden;
    touch-action: none;
}

#beerloyuz-ai-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.218);
    align-items: center;
    justify-content: center;
    z-index: 2147483649;
}

body.beerloyuz-ai-popup-active #beerloyuz-ai-popup {
    display: flex !important;
}

.beerloyuz-ai-popup-content * {
    font-family: "Montserrat", sans-serif;
}

.beerloyuz-ai-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 8px 40px rgba(43, 108, 176, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 60px;
    min-width: 320px;
    min-height: 400px;
    max-width: 95vw;
    width: 470px;
    gap: 10px;
    position: relative;
    animation: popupIn 0.25s cubic-bezier(.4, 2, .6, 1) both;
}

@keyframes popupIn {
    0% {
        transform: scale(0.85) translateY(40px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.beerloyuz-ai-popup-close {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    padding-bottom: 5px;
    background: none;
    border-radius: 50%;
    border: none;
    font-size: 1.7rem;
    color: black;
    cursor: pointer;
    transition: color 0.2s, background 0.2s;
}

.beerloyuz-ai-popup-close:hover,
.beerloyuz-ai-popup-close:focus {
    color: black;
    background-color: rgba(0, 0, 0, 0.073);
}

.beerloyuz-ai-popup-header {
    display: flex;
    height: 90%;
    flex-direction: column;
    align-items: center;
    margin-bottom: 18px;
}

.beerloyuz-ai-popup-header h2 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--beerloyuz-ai-popup-color);
    font-weight: 800;
    margin-bottom: 2px;
}

.beerloyuz-ai-popup-subheader {
    font-size: 1rem;
    color: var(--beerloyuz-ai-popup-secondary-color);
    font-weight: 500;
}

.beerloyuz-ai-popup-company {
    font-size: 0.95rem;
    color: #666;
    font-weight: 400;
}

.beerloyuz-ai-popup-body {
    margin-bottom: 18px;
    text-align: center;
}

.beerloyuz-ai-popup-body p {
    font-size: 1rem;
    color: #222;
    margin: 0;
}

.beerloyuz-ai-popup-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
    justify-content: center;
}

.beerloyuz-ai-popup-form label.error {
    color: red;
    font-size: 0.8rem;
}

.beerloyuz-ai-popup-form input.error {
    background-color: rgba(255, 0, 0, 0.132);
    font-size: 0.8rem;
}

.beerloyuz-ai-popup-form input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ccccf5;
    border-radius: 5px;
    font-size: 0.95rem;
    outline: none;
    transition: border 0.2s;
}

.beerloyuz-ai-popup-form input[type="text"]:focus {
    border: 1.5px solid var(--beerloyuz-ai-color, #2B6CB0);
}

.beerloyuz-ai-btn {
    text-transform: none !important;
    letter-spacing: normal !important;
}

.beerloyuz-ai-btn-shadow-drop {
    position: relative;
    background: white;
    padding: 10px;
    font-size: 0.5em;
    font-weight: 700;
    letter-spacing: 3px;
    transition: 0.3s ease-in-out;
    left: 0px;
    top: 0px;
    width: 100%;
}

.beerloyuz-ai-btn-shadow-drop:hover {
    left: 4px;
    top: 4px;
    background-color: var(--beerloyuz-ai-popup-color);
    box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px;
}

.beerloyuz-ai-btn-shadow-drop:focus {
    background-color: var(--beerloyuz-ai-popup-color);
}

.beerloyuz-ai-btn-shadow-drop--blue {
    border: 1px solid var(--beerloyuz-ai-popup-color);
    color: var(--beerloyuz-ai-popup-color);
    box-shadow: var(--beerloyuz-ai-popup-color) 4px 4px 0px 0px;
}

.beerloyuz-ai-popup-contact {
    text-align: center;
    color: gray;
    font-size: 0.75rem;
}

.beerloyuz-ai-popup-contact a {
    color: var(--beerloyuz-ai-popup-secondary-color);
}

.beerloyuz-ai-popup-contact a:hover,
.beerloyuz-ai-popup-contact a:focus {
    color: var(--beerloyuz-ai-popup-color);
}

.beerloyuz-ai-popup-success {
    background: rgba(0, 128, 0, 0.642);
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    font-size: 0.8rem;
}

.beerloyuz-ai-popup-error {
    background: rgba(255, 0, 0, 0.621);
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    font-size: 0.8rem;
}

.beerloyuz-ai-popup-social {
    display: flex !important;
    justify-content: center !important;
    flex-flow: wrap !important;
    gap: 1rem !important;
    list-style: none !important;
    margin: 0px !important;
    width: 100% !important;
}

.beerloyuz-ai-popup-social li {
    position: relative !important;
    flex-basis: 3rem !important;
}

.beerloyuz-ai-popup-social li::after {
    position: absolute !important;
    content: attr(data-tooltip) !important;
    inset: -45% auto auto 50% !important;
    z-index: -1 !important;
    translate: -50% !important;
    padding: 0.25rem 0.75rem !important;
    font-size: 0.875rem !important;
    color: #fff !important;
    background: var(--bg, #070707) !important;
    border-radius: 0.25rem !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: inset 0.4s cubic-bezier(0.47, 2, 0.41, 1.5),
        visibility 0.3s ease-in-out, opacity 0.2s ease-in-out !important;
}

.beerloyuz-ai-popup-social li:has(a:hover, a:focus-visible)::after {
    opacity: 1 !important;
    visibility: visible !important;
    inset-block-start: -60% !important;
}

.beerloyuz-ai-popup-social a {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    aspect-ratio: 1 !important;
    font-size: 1.75rem !important;
    color: #070707 !important;
    border: 1px solid !important;
    border-radius: 100% !important;
    text-decoration: none !important;
    outline: none !important;
    overflow: hidden !important;
    transition: filter 0.3s ease-in-out !important;
}

.beerloyuz-ai-popup-social a>i {
    position: relative !important;
    z-index: 1 !important;
}

.beerloyuz-ai-popup-social a::after {
    position: absolute !important;
    content: "" !important;
    inset: 100% 0 0 !important;
    background: var(--bg, #070707) !important;
    pointer-events: none !important;
    transition: inset 0.3s ease-in-out !important;
}

.beerloyuz-ai-popup-social a:hover img,
.beerloyuz-ai-popup-social a:focus-visible img {
    filter: brightness(0) invert(1) !important;
    transition: filter 0.3s ease-in-out !important;
    z-index: 5 !important;
}

.beerloyuz-ai-popup-social a:hover::after,
.beerloyuz-ai-popup-social a:focus-visible::after {
    inset-block-start: 0 !important;
}

.beerloyuz-ai-popup-honey {
    display: none !important;
}

.beerloyuz-ai-popup-custom-button {
    text-transform: none !important;
    letter-spacing: normal !important;
}

/* Mobile Responsiveness for Popup */
@media (max-width: 767px) {
    .beerloyuz-ai-popup-content {
        min-height: 450px;
        min-width: 90vw;
        padding: 30px 45px;
    }

    .beerloyuz-ai-popup-header h2 {
        font-size: 1.1rem;
    }

    .beerloyuz-ai-popup-body p {
        font-size: 0.95rem;
    }
}