#walshs-calculator-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    align-items: center;
    justify-content: center;
    padding: 3vh 3vw;
}
#walshs-calculator-modal.is-open { display: flex; }
.walshs-calculator-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5,22,36,.78);
    backdrop-filter: blur(4px);
}
.walshs-calculator-dialog {
    position: relative;
    z-index: 2;
    width: min(1120px,94vw);
    height: min(900px,92vh);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 30px 90px rgba(0,0,0,.4);
}
.walshs-calculator-header {
    min-height: 70px;
    padding: 14px 18px 14px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex: 0 0 auto;
    background: #fff;
    border-bottom: 1px solid #e3e9ed;
}
.walshs-calculator-header h2 {
    margin: 0;
    color: #102F4B;
    font-family: Roboto,Arial,sans-serif;
    font-size: 22px;
    line-height: 1.2;
    font-weight: 700;
}
.walshs-calculator-close {
    appearance: none;
    border: 0;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    background: #eef4f7;
    color: #102F4B;
    cursor: pointer;
    font: 300 30px/1 Arial,sans-serif;
}
.walshs-calculator-close:hover {
    background: #006EB6;
    color: #fff;
}
.walshs-calculator-body {
    flex: 1;
    min-height: 0;
    background: #fff;
}
#walshs-calculator-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #fff;
}
body.walshs-calculator-open { overflow: hidden !important; }

@media (max-width: 767px) {
    #walshs-calculator-modal { padding: 0; }
    .walshs-calculator-dialog {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }
    .walshs-calculator-header {
        min-height: 64px;
        padding: 10px 12px 10px 18px;
    }
    .walshs-calculator-header h2 { font-size: 18px; }
}
