.hydroseal-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hydroseal-popup--bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}

.hydroseal-popup--bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}

.hydroseal-popup.is-visible {
    display: flex;
}

.hydroseal-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11, 35, 52, var(--hydroseal-popup-overlay-opacity, 0.62));
    -webkit-backdrop-filter: blur(var(--hydroseal-popup-blur, 6px));
    backdrop-filter: blur(var(--hydroseal-popup-blur, 6px));
}

.hydroseal-popup__dialog {
    position: relative;
    width: min(var(--hydroseal-popup-width, 520px), 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2933;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    padding: 30px;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 180ms ease, opacity 180ms ease;
}

.hydroseal-popup.is-visible .hydroseal-popup__dialog {
    transform: translateY(0);
    opacity: 1;
}

.hydroseal-popup__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #eef3f7;
    color: #263746;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.hydroseal-popup__title {
    margin: 0 38px 12px 0;
    color: #0b5e8e;
    font-size: 26px;
    line-height: 1.2;
}

.hydroseal-popup__message {
    font-size: 16px;
    line-height: 1.55;
}

.hydroseal-popup__message p {
    margin: 0 0 14px;
}

.hydroseal-popup__button,
.hydroseal-popup-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    background: #0b5e8e;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    padding: 11px 18px;
}

.hydroseal-popup__button:hover,
.hydroseal-popup__button:focus,
.hydroseal-popup-trigger:hover,
.hydroseal-popup-trigger:focus {
    background: #084a70;
    color: #ffffff;
}

body.hydroseal-popup-open {
    overflow: hidden;
}

@media (max-width: 600px) {
    .hydroseal-popup {
        padding: 12px;
    }

    .hydroseal-popup__dialog {
        padding: 24px 20px;
    }

    .hydroseal-popup__title {
        font-size: 22px;
    }
}
