/**
 * ecm_privat_calc — button and window of the PrivatBank calculator.
 * The button takes the theme button classes; here — only spacing and the window.
 * px, not rem: PrestaShop 1.6 themes set the root font to 10px, rem would shrink the window.
 */
.ecm-ppcalc {
    margin: 12px 0;
}

.ecm-ppcalc__btn {
    max-width: 100%;
    white-space: normal;
}

.ecm-ppcalc__dialog {
    box-sizing: border-box;
    width: min(896px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #222;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.ecm-ppcalc__dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
}

/* browsers without <dialog>: a plain centered layer */
.ecm-ppcalc__dialog[open]:not(:modal) {
    position: fixed;
    z-index: 10000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ecm-ppcalc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e5e5;
}

.ecm-ppcalc__title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.ecm-ppcalc__close {
    flex: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.ecm-ppcalc__frame {
    display: block;
    width: 100%;
    height: min(576px, calc(100vh - 144px));
    border: 0;
}

.ecm-ppcalc__foot {
    margin: 0;
    padding: 12px 16px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
}

.ecm-ppcalc__limit {
    font-weight: 600;
}
