dialog.ft-installment-dialog { box-sizing:border-box; width:min(1280px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px); padding:24px; overflow:hidden; border:0; border-radius:12px; background:#fff; color:#202631; font-family:Arial,Helvetica,sans-serif; box-shadow:0 24px 80px #101a3040; }
dialog.ft-installment-dialog[open] { display:flex; flex-direction:column; }
.ft-installment-dialog > * { flex-shrink:0; min-width:0; }
/* Only the matrix scrolls when the viewport cannot contain all supplied options. */
.ft-installment-dialog :is([data-offer-installments],[data-room-results]) { display:flex; flex-direction:column; flex:0 1 auto; min-height:0; min-width:0; margin:0; }
.ft-installment-dialog :is([data-coral-installment-status],[data-offer-installment-status],[data-room-status]):empty { margin:0; padding:0; min-height:0; }
dialog.ft-installment-dialog::backdrop { background:rgb(20 25 35 / 52%); }
.ft-installment-dialog :is(.hotel-info-dialog__heading,.offer-room-dialog__heading,.local-room-dialog-heading,.be-room-dialog-heading) { position:static; margin:0 0 12px; padding:0; border:0; background:#fff; align-items:flex-start; }
.ft-installment-dialog :is(h2,.hotel-info-dialog__heading h2,.offer-room-dialog__heading h2) { margin:0; font-family:inherit; font-size:19px; line-height:1.4; font-weight:700; color:#202631; }
.ft-installment-dialog :is([data-hotel-close],[data-offer-close],[data-room-close]) { flex:none; width:30px; height:30px; border:0; border-radius:6px; background:transparent; color:#647084; font-size:22px; cursor:pointer; }
.ft-installment-dialog :is([data-hotel-close],[data-offer-close],[data-room-close]):hover { background:#f0f3f8; }
.ft-installment-dialog .ft-installment-room { margin:0 0 10px; font-size:13px; line-height:1.4; color:#687386; }
.ft-installment-scroll { position:relative; box-sizing:border-box; flex:0 1 auto; min-height:0; width:100%; max-width:100%; overflow:auto; border:1px solid #e4e8ee; border-radius:9px; background:#f5f7fb; scrollbar-width:thin; overscroll-behavior:contain; }
.ft-installment-scroll:focus-visible { outline:2px solid #4068b8; outline-offset:3px; }
.ft-installment-scroll .ft-installment-table { width:100%; min-width:520px; margin:0; border-collapse:separate; border-spacing:0; table-layout:auto; color:#242b36; background:#fff; font-family:inherit; font-size:13px; line-height:1.35; }
.ft-installment-table caption { padding:0; height:0; }
.ft-installment-scroll .ft-installment-table :is(th,td) { box-sizing:border-box; padding:10px!important; border:0; border-right:1px solid #e4e8ee; border-bottom:1px solid #e4e8ee; text-align:center; vertical-align:middle; min-width:110px; background:#fff; font-family:inherit; }
.ft-installment-scroll .ft-installment-table thead th { position:sticky; top:0; z-index:2; padding:10px!important; background:#f5f7fb; color:#687386; font-size:12px; font-weight:600; white-space:nowrap; }
.ft-installment-scroll .ft-installment-table tr>:first-child { position:sticky; left:0; z-index:1; min-width:136px; max-width:200px; }
.ft-installment-scroll .ft-installment-table thead tr>:first-child { z-index:3; }
.ft-installment-scroll .ft-installment-table tr>:last-child { border-right:0; }
.ft-installment-scroll .ft-installment-table tbody tr:last-child>* { border-bottom:0; }
.ft-installment-scroll .ft-installment-table :is(span,strong,small,del) { font-family:inherit; }
.ft-installment-brand { display:block; font-size:18px; font-weight:800; line-height:1.3; overflow-wrap:anywhere; letter-spacing:-.5px; color:#29475e; }
.ft-installment-brand[data-brand="maximum"] { color:#de2985; font-style:italic; }
.ft-installment-brand[data-brand="axess"] { color:#353535; }
.ft-installment-brand[data-brand="paraf"] { color:#338fc1; font-style:italic; }
.ft-installment-brand[data-brand="world"] { color:#70318a; }
.ft-installment-brand[data-brand="bonus"] { color:#52802c; }
.ft-installment-brand[data-brand="bankkart"] { color:#c9442d; }
.ft-installment-brand[data-brand="qnb"] { color:#1e2d53; }
.ft-installment-provider { display:block; margin-top:5px; color:#687386; font-size:10px; line-height:1.4; font-weight:400; overflow-wrap:anywhere; }
.ft-installment-plan { display:flex; flex-direction:column; align-items:center; gap:3px; }
.ft-installment-plan+.ft-installment-plan { margin-top:8px; padding-top:8px; border-top:1px dashed #e1e6ee; }
.ft-installment-monthly,.ft-installment-before { font-size:11px; font-weight:400; color:#687386; white-space:nowrap; }
.ft-installment-total { font-size:13px; font-weight:700; white-space:nowrap; }
.ft-installment-adjustment,.ft-installment-saving { display:block; font-size:10px; line-height:1.4; color:#687386; }
.ft-installment-saving { color:#287249; }
.ft-installment-empty { color:#96a0ae; }
.ft-installment-label { display:none; }
.ft-installment-dialog :is(.hotel-info__notice,.offer-room-dialog__notice,[data-room-description]) { margin:0 0 12px; padding:0; border:0; background:transparent; font-size:12px; line-height:1.5; color:#687386; }
.ft-installment-dialog .ft-installment-scroll + .hotel-info__notice { margin:12px 0 0; }
.ft-installment-sr-only { position:absolute; top:0; left:0; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(max-width:767px) {
    dialog.ft-installment-dialog { width:calc(100vw - 20px); max-height:calc(100dvh - 20px); padding:18px 14px; border-radius:10px; }
    .ft-installment-dialog :is(h2,.hotel-info-dialog__heading h2,.offer-room-dialog__heading h2) { font-size:17px; }
    .ft-installment-brand { font-size:16px; }
    /* Reflow the same cells into card groups; amounts and available options stay intact. */
    :is(.ft-installment-dialog,.installment-table-dialog) :is(.ft-installment-scroll,.installment-table-scroll) { border:0; border-radius:0; background:transparent; }
    :is(.ft-installment-dialog,.installment-table-dialog) :is(.ft-installment-table,.installment-table) { display:block; width:100%; min-width:0; }
    :is(.ft-installment-dialog,.installment-table-dialog) :is(.ft-installment-table,.installment-table) thead { position:absolute; top:0; left:0; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
    :is(.ft-installment-dialog,.installment-table-dialog) :is(.ft-installment-table,.installment-table) tbody { display:grid; gap:12px; }
    :is(.ft-installment-dialog,.installment-table-dialog) :is(.ft-installment-table,.installment-table) tbody tr { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); gap:8px; padding:10px; border:1px solid #e4e8ee; border-radius:10px; background:#fff; }
    :is(.ft-installment-dialog,.installment-table-dialog) :is(.ft-installment-scroll,.installment-table-scroll) :is(.ft-installment-table,.installment-table) tbody tr > :is(th,td) { position:static; display:block; min-width:0; max-width:none; padding:10px!important; border:0; border-radius:6px; background:#f5f7fb; text-align:center; overflow-wrap:anywhere; }
    :is(.ft-installment-dialog,.installment-table-dialog) :is(.ft-installment-scroll,.installment-table-scroll) :is(.ft-installment-table,.installment-table) tbody tr > :first-child { grid-column:1 / -1; padding:2px 0 8px!important; border-radius:0; background:#fff; text-align:left; }
    :is(.ft-installment-dialog,.installment-table-dialog) .ft-installment-label { display:block; margin-bottom:8px; color:#46546b; font-size:13px; line-height:1.4; font-weight:700; }
    :is(.ft-installment-dialog,.installment-table-dialog) :is(.ft-installment-plan,.installment-plan) { min-width:0; gap:4px; white-space:normal; }
    .ft-installment-dialog :is(.ft-installment-monthly,.ft-installment-before) { font-size:12px; white-space:normal; }
    .ft-installment-dialog :is(.ft-installment-adjustment,.ft-installment-saving,.ft-installment-provider) { font-size:12px; }
    .ft-installment-dialog .ft-installment-total { font-size:16px; white-space:normal; }
    .installment-table-dialog .installment-plan span { font-size:12px; }
    .installment-table-dialog .installment-plan strong, .installment-table-dialog .installment-plan [data-plan-total] { font-size:16px; color:#242b36; }
    .installment-table-dialog .installment-family { flex-wrap:wrap; }
}
