/* Floating savings calculator — sits opposite the back-to-top control. */
.hld-calc-fab {
    position: fixed;
    left: 16px;
    bottom: 18px;
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 16px 0 12px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(110deg, #0b2442, #1266a8);
    box-shadow: 0 8px 22px rgba(11, 36, 66, 0.28);
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
}

.hld-calc-fab:hover,
.hld-calc-fab:focus {
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(11, 36, 66, 0.36);
}

.hld-calc-fab:focus {
    outline: 2px solid #39dde3;
    outline-offset: 3px;
}

.hld-calc-fab i {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    font-size: 14px;
}

.hld-calc-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1200;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(11, 36, 66, 0.62);
}

.hld-calc-overlay.is-open {
    display: flex;
}

.hld-calc-dialog {
    position: relative;
    width: min(1180px, 100%);
    height: min(92vh, 860px);
    background: #edf2f7;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(11, 36, 66, 0.35);
    overflow: hidden;
}

.hld-calc-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    color: #0b2442;
    background: #fff;
    box-shadow: 0 4px 12px rgba(11, 36, 66, 0.18);
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

.hld-calc-close:hover {
    background: #f3f7fb;
}

.hld-calc-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #edf2f7;
}

body.hld-calc-locked {
    overflow: hidden;
}

@media (max-width: 760px) {
    .hld-calc-fab span {
        display: none;
    }

    .hld-calc-fab {
        width: 52px;
        height: 52px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }

    .hld-calc-overlay {
        padding: 0;
    }

    .hld-calc-dialog {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

@media print {
    .hld-calc-fab,
    .hld-calc-overlay {
        display: none !important;
    }
}

.hld-calc-overlay .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
