/* -----------------------------
   Floating Support Button
------------------------------ */

.OlarmSupportButton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    right: 24px;
    bottom: 32px;
    z-index: 9999;
    min-height: 52px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #000045 !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(0, 0, 69, 0.22);
    white-space: nowrap;
    text-decoration: none !important;
}

.OlarmSupportButton:hover,
.OlarmSupportButton:focus {
    background: #eff0f5;
    color: #000045 !important;
    text-decoration: none !important;
    outline: none;
}


/* -----------------------------
   Olarm Support Popup
------------------------------ */

.OlarmSupportPopup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.OlarmSupportPopup:target {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.OlarmSupportPopup__overlay {
    position: absolute;
    inset: 0;
    display: block;
    background: rgba(0, 0, 69, 0.72);
    backdrop-filter: blur(4px);
}

.OlarmSupportPopup__dialog {
    position: relative;
    width: min(640px, calc(100vw - 32px));
    min-height: 560px;
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 69, 0.38);
    border: 1px solid rgba(164, 199, 238, 0.35);
}

.OlarmSupportPopup__dialog::before {
    content: "Need Support?";
    display: flex;
    align-items: center;
    height: 64px;
    padding: 0 28px;
    background: #000045;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.OlarmSupportPopup__close {
    position: absolute;
    top: 16px;
    right: 18px;
    z-index: 20;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    box-shadow: 0 6px 20px rgba(0, 0, 69, 0.18);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.OlarmSupportPopup__close:hover,
.OlarmSupportPopup__close:focus {
    background: #eff0f5;
    transform: scale(1.04);
    box-shadow: 0 8px 24px rgba(0, 0, 69, 0.24);
}

.OlarmSupportPopup__close::before {
    content: "";
    width: 10px;
    height: 10px;
    border-right: 3px solid #000045;
    border-bottom: 3px solid #000045;
    border-radius: 1px;
    transform: rotate(45deg) translate(-1px, -1px);
}

.OlarmSupportPopup__close::after {
    content: none;
}

.OlarmSupportPopup__form {
    width: 100%;
    height: calc(100% - 64px);
    min-height: 496px;
    padding: 24px;
    box-sizing: border-box;
    background: #ffffff;
}

.OlarmSupportPopup__form iframe,
#zsfeedbackFrame {
    display: block !important;
    width: 100% !important;
    height: 500px !important;
    min-height: 500px !important;
    border: 0 !important;
    background: #ffffff !important;
}


/* -----------------------------
   Tablet
------------------------------ */

@media (max-width: 1024px) {
    .OlarmSupportButton {
        right: 20px;
        bottom: 32px;
        height: 56px;
        padding: 0 22px;
        font-size: 13px;
    }
}


/* -----------------------------
   Mobile
------------------------------ */

@media (max-width: 768px) {
    .OlarmSupportButton {
        display: inline-flex;
        position: fixed;
        right: 16px;
        bottom: 32px;
        z-index: 9999;
        height: 56px;
        padding: 0 22px;
        border-radius: 999px;
        font-size: 13px;
    }

    .OlarmSupportPopup__dialog {
        width: calc(100vw - 24px);
        height: calc(100vh - 36px);
        min-height: 0;
        max-height: none;
        margin: 18px auto;
        border-radius: 18px;
    }

    .OlarmSupportPopup__dialog::before {
        height: 64px;
        padding: 0 22px;
        font-size: 18px;
    }

    .OlarmSupportPopup__close {
        top: 12px;
        right: 14px;
        width: 38px;
        height: 38px;
    }

    .OlarmSupportPopup__close::before {
        width: 9px;
        height: 9px;
        border-right-width: 3px;
        border-bottom-width: 3px;
        transform: rotate(45deg) translate(-1px, -1px);
    }

    .OlarmSupportPopup__close::after {
        content: none;
    }

    .OlarmSupportPopup__form {
        height: calc(100% - 64px);
        min-height: 0;
        padding: 22px 16px 16px;
    }

    .OlarmSupportPopup__form iframe,
    #zsfeedbackFrame {
        height: 100% !important;
        min-height: 100% !important;
    }
}
