
.mod_double_menu[tmpl="5"] .img-container {
    height: 470px;
}

  :root {
    --accentcalc: #4F63D2;
    --accentcalc-light: #EEF0FB;
    --accentcalc-mid: #7B8CE8;
    --bgcalc: #F5F6FA;
    --surface: #FFFFFF;
    --surface2: #F8F9FC;
    --border: rgba(0, 0, 0, 0.1);
    --border-md: rgba(0, 0, 0, 0.1);
    --textcalc: #1A1D2E;
    --textcalc-2: #5A5F7A;
    --textcalc-3: #9297B0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 2px 24px rgba(0, 0, 0, 0.1);
  }

  .calc-container {
    display: flex;
    align-items: flex-start;
  }
  .mod_cssjs_editor[item="378"] .header p {color:var(--primary)}


  .calc-container .calc-wrap { width: 100%; max-width: 580px; }

  .calc-container .header { margin-bottom: 1.5rem; }

  .calc-container .calc-card {
    background: var(--surface);
    border-radius: 1rem;
    border: 1px solid var(--border);
    padding: 1.75rem;
    box-shadow: var(--shadow);
  }

  .calc-container .calc-field { margin-bottom: 1rem; }

  .calc-container .calc-field > label {
    display: block;font-size: .9rem;
    opacity: .7;
    text-transform: uppercase;
    margin-bottom: .5rem;
  }

  /* Cost input */
  .calc-container .input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }
  .calc-container .input-wrapper .currency {
    position: absolute;
    right: 14px;
    font-size: 14px;
    color: var(--textcalc-3);
    pointer-events: none;
  }
.calc-container .cost-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    font-family: var(--h1h6);
    color: var(--textcalc);
    background: var(--surface);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}
  .calc-container .cost-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,99,210,0.12);
  }
  .calc-container .cost-input.error {
    border-color: #E24B4A;
    box-shadow: 0 0 0 3px rgba(226,75,74,0.12);
  }
  .calc-container .cost-input::placeholder { font-size: 14px; font-weight: 400; color: var(--textcalc-3); }

  /* Pseudo-input display above slider */
  .calc-container .pseudo-input {
    background: #fff;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
  }
  .calc-container .pseudo-input .pi-main {
    font-size: 18px;
    font-weight: 500;
    color: var(--textcalc);
    line-height: 1;
    font-family: var(--h1h6);
  }
  .calc-container .pseudo-input .pi-sub {
    font-size: 13px;
    color: var(--textcalc-3);
    white-space: nowrap;
  }

  /* Slider */
  .calc-container .slider-row { display: flex; align-items: center; gap: 10px; }
  .calc-container .slider-container { flex: 1; position: relative; }
  .calc-container .custom-slider {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
  }
  .calc-container .slider-track {
    position: absolute;
    left: 0; right: 0;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
  }
  .calc-container .slider-fill {
    position: absolute;
    left: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 2px;
    pointer-events: none;
    transition: width 0.05s;
  }
  .calc-container .slider-thumb {
    position: absolute;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--primary);
    border: 3px solid var(--surface);
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: grab;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05), 0 2px 6px rgba(79,99,210,0.2);
    transition: box-shadow 0.1s, transform 0.1s;
  }
  .calc-container .slider-thumb:active { cursor: grabbing; box-shadow: 0 0 0 5px rgba(79,99,210,0.2); }
  .calc-container .slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 5px;
  }
  .calc-container .slider-labels span { font-size: 11px; color: var(--textcalc-3); }

  /* Dropdown */
  .calc-container .custom-select { position: relative; }
  .calc-container .select-btn {
    width: 100%; height: 48px;
    padding: 0 14px;
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--textcalc);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--h1h6);
    display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .calc-container .select-btn:hover { border-color: var(--primary); }
  .calc-container .select-btn.open {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79,99,210,0.12);
  }
  .calc-container .chevron {
    width: 18px; height: 18px;
    display: flex; align-items: center; justify-content: center;
    color: var(--textcalc-3);
    transition: transform 0.2s;
  }
  .calc-container .select-btn.open .chevron { transform: rotate(180deg); }
  .calc-container .chevron svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

  .calc-container .select-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--surface);
    border: 1px solid var(--primary);
    border-radius: var(--radius-sm);
    z-index: 100;
    overflow: hidden;
    display: none;
    box-shadow: 0 8px 24px rgb(0 0 0 / 5%);
  }
  .calc-container .select-dropdown.open { display: block; }
  .calc-container .select-option {
    padding: 12px 14px;
    font-size: 14px;
    color: var(--textcalc-2);
    cursor: pointer;
    transition: background 0.1s;
    display: flex; align-items: center;
  }
  .calc-container .select-option:hover { background: #f8f8f8; }
  .calc-container .select-option.selected { color: var(--primary); font-weight: 500; }
  .calc-container .divider { height: 1px; background: var(--border); margin: 1.25rem 0; }
  .calc-container .selected:not(li):not(.dropdown-item):before{background: var(--primary);}
  /* Calc button */
  .calc-container .calc-btn {
    width: 100%; height: 52px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--h1h6);
    cursor: pointer;
    letter-spacing: 0.02em;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 14px rgba(79,99,210,0.3);
  }
  .calc-container .calc-btn:hover { background: var(--primary); box-shadow: 0 6px 20px rgba(79,99,210,0.38); }
  .calc-container .calc-btn:active { transform: scale(0.98); }

  /* Results */
  .calc-container .results { display: none; margin-top: 1rem; }
  .calc-container .results-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--textcalc-3);
    margin-bottom: 10px;
  }

  .calc-container .bank-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 13px 16px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .calc-container .bank-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
  .calc-container .bank-card.best {
    background: #f8f8f8;
    border: 1px solid rgb(0 0 0 / 10%);
  }

  .calc-container .bank-rank {
    width: 28px; height: 28px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600;
    background: rgb(0 0 0 / 5%);
    color: var(--primary);
    flex-shrink: 0;
  }
  .calc-container .bank-card.best .bank-rank { background: var(--primary); color: #fff; }

  .calc-container .bank-info { flex: 1; min-width: 0; }
  .calc-container .bank-name { font-size: 14px; font-weight: 500; color: var(--textcalc); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .calc-container .bank-meta { font-size: .85rem; color: var(--textcalc-3); }

  .calc-container .bank-badge {
    font-size: 10px;
    font-weight: 600;
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .calc-container .bank-nums { text-align: right; flex-shrink: 0; }
  .calc-container .bank-monthly { font-size: 1rem; font-weight: 600; color: var(--textcalc); }
  .calc-container .bank-total { font-size: .85rem; color: var(--textcalc-3); }