/* Homepage variants share PremiumBox markup and AJAX; no fixed legacy widths. */
#mc-exchange :is(.xchange_type_plitka,.xchange_type_list,.xchange_type_table,.xchange_div) { min-width: 0; max-width: 100%; }
#mc-exchange :is(.xtp_icon_wrap,.xtt_icon_wrap) { gap: 12px; margin: 0 0 16px; padding: 0; }
#mc-exchange :is(.xtp_left_col_icon,.xtp_right_col_icon,.xtt_left_col_icon,.xtt_right_col_icon) { float: none; display: flex; flex-wrap: wrap; align-content: flex-start; width: auto; max-width: none; min-width: 0; gap: 4px; padding: 0; margin: 0; }
#mc-exchange .tbl_icon { float: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; height: auto; width: auto; padding: 8px 12px; margin: 0; border: 1px solid var(--mc-line); border-radius: 24px; background: transparent; color: var(--mc-muted); cursor: pointer; font: 400 12px/1.4 Rubik,sans-serif; text-transform: none; }
#mc-exchange .tbl_icon.active { background: var(--mc-highlight); border-color: var(--mc-highlight); color: var(--mc-surface); }
#mc-exchange .tbl_icon_ins { margin: 0; padding: 0; font: inherit; }
#mc-exchange .tbl_icon_abs { display: none; }
#mc-exchange [role="button"] { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#mc-exchange [role="button"]:focus-visible { outline: 2px solid var(--mc-highlight); outline-offset: -2px; }
#mc-exchange .tbl1 .xtt_icon_wrap, #mc-exchange .tbl5 .xtt_icon_wrap { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
#mc-exchange .tbl1 .xtt_one_line_name_left { flex: 1; }
#mc-exchange .tbl1 .xtt_one_line_curs_left { float: none; width: auto; margin: 0 0 0 auto; padding: 0; }
#mc-exchange .tbl4 { --mc-direction-scroll-gap: 10px; }
#mc-exchange .tbl4 :is(#xtt_left_col_html,#xtt_right_col_html) { padding-inline-end: var(--mc-direction-scroll-gap); }
#mc-exchange .tbl4 .xtt_table_title3 { margin-inline-end: var(--mc-direction-scroll-gap); }
#mc-exchange .tbl4 :is(.xtt_table_title4,.xtt_one_line_reserv_right) { display: none; }
#mc-exchange .tbl4 .xtt_right_incol_title { grid-template-columns: 28px minmax(0,1fr) max-content; }
#mc-exchange .tbl4 .xtt_one_line_right { display: flex; flex-wrap: wrap; }
#mc-exchange .tbl4 .xtt_one_line_name_right { flex: 1 1 6ch; }
#mc-exchange .tbl4 .xtt_one_line_curs_right { flex: 0 0 auto; max-width: 100%; margin-inline-start: auto; overflow-x: auto; }
#mc-exchange .tbl4 .xtt_one_line_curs { flex-wrap: nowrap; min-width: max-content; white-space: nowrap; }
.mc-exchange-card:has(.tbl5) .mc-exchange-note { display: flex; justify-content: center; }
#mc-exchange .tbl5 .xtt_table_body_wrap { grid-template-columns: minmax(0,1fr); max-height: none; }
#mc-exchange .tbl5 .xtt5_wrapper { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; width: 100%; min-width: 0; }
#mc-exchange .tbl5 :is(.xtt_right_incol_title,.xtt_one_line_right) { grid-template-columns: 28px minmax(0,1fr); }
#mc-exchange .tbl5 .xtt_table_title2 { grid-column: 1/-1; }
#mc-exchange .tbl5 .xtt_title_link_wrap { position: static; display: flex; flex-wrap: wrap; gap: 4px; grid-column: 1/-1; margin: 4px 0 0; padding: 0; }
#mc-exchange .tbl5 a.xtt_title_link { margin: 0; padding: 7px 10px; min-height: 36px; border: 1px solid var(--mc-line); border-radius: 20px; color: var(--mc-muted); font: 400 12px/1.5 Rubik,sans-serif; opacity: 1; }
#mc-exchange .tbl5 a.xtt_title_link.active { color: var(--mc-highlight); border-color: var(--mc-highlight); }
#mc-exchange .tbl5 .xtt_one_line_ico_right { grid-column: 1; grid-row: 1/3; }
#mc-exchange .tbl5 .xtt_one_line_name_right { grid-column: 2; grid-row: 1; height: auto; }
#mc-exchange .tbl5 .xtt_one_line_reserv_right { grid-column: 2; grid-row: 2; height: auto; line-height: 1.5; }
#mc-exchange .tbl5 .xtt_one_line_name_right .xtt_one_line_name { height: auto; white-space: normal; }
#mc-exchange .tbl5 .xtt_one_line_reserv { height: auto; overflow: visible; }
#mc-exchange .tbl5 .js_item_right.active .xtt_one_line_right { background: var(--mc-field); box-shadow: inset 0 0 0 1px var(--mc-highlight); border-radius: 12px; }
#mc-exchange .tbl5 .xtt_data_col_table { float: none; display: block; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 20px 0 0; border: 0; border-top: 1px solid var(--mc-line); border-radius: 0; background: none; }
#mc-exchange .tbl5 .xtt_data_col_clear { display: none; }
#mc-exchange :is(.htable_notwidget,.htable_notwidget_ins) { height: auto; min-height: 0; width: 100%; margin: 0; padding: 12px; border: 0; background: var(--mc-field); border-radius: 12px; color: var(--mc-muted); font: 400 14px/1.6 Rubik,sans-serif; }
/* Tile selector: visible names distinguish currencies sharing the same logo. */
#mc-exchange :is(.xchange_type_plitka,.xchange_type_plitka_ins,.xtp_table_wrap,.xtp_table_wrap_ins,.xtp_html_wrap,.xtp_col_table_body,.xtp_table,.xtp_table_ins,.xtp_table_list,.xtp_table_list_ins) { width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
#mc-exchange .xtp_icon_wrap { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
#mc-exchange .xtp_col_table_body { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#mc-exchange :is(.xtp_left_col_table,.xtp_right_col_table,.xtp_left_col_table_ins,.xtp_right_col_table_ins) { float: none; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; border: 0; background: none; }
#mc-exchange .xtp_table_title { padding: 10px 0; margin: 0 0 12px; border-bottom: 1px solid var(--mc-line); }
#mc-exchange .xtp_table_title_ins { color: var(--mc-muted); font: 500 14px/1.5 Rubik,sans-serif; }
#mc-exchange .xtp_table_list_ins { display: grid; grid-template-columns: repeat(auto-fit,minmax(88px,1fr)); gap: 6px; }
#mc-exchange .xtp_item { float: none; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; width: 100%; height: auto; min-height: 92px; padding: 10px 4px; margin: 0; border: 1px solid transparent; border-radius: 12px; background: var(--mc-field); color: var(--mc-ink); cursor: pointer; }
#mc-exchange .xtp_item.active { border-color: var(--mc-highlight); background: var(--mc-field); }
#mc-exchange .xtp_item_ins { width: 100%; height: auto; margin: 0; padding: 0; border: 0; background: none; }
#mc-exchange .xtp_item_abs { display: none; }
#mc-exchange .xtp_item_ico { position: static; width: 30px; height: 30px; margin: 0 auto 6px; background-size: contain; background-position: center; background-repeat: no-repeat; }
#mc-exchange .mc-currency-caption { display: block; text-align: center; font: 400 12px/1.35 Rubik,sans-serif; overflow-wrap: anywhere; }
#mc-exchange .xtp_calc { width: 100%; margin: 14px 0 0; padding: 0; border: 0; }
#mc-exchange .xtp_curs_wrap { display: grid; grid-template-columns: minmax(0,1fr) 90px; gap: 6px; }
#mc-exchange :is(.xtp_input_wrap,.xtp_select_wrap) { float: none; width: 100%; min-width: 0; margin: 0; }
#mc-exchange .xtp_input_wrap input { width: 100%; height: 46px; min-width: 0; padding: 8px 10px; border: 1px solid var(--mc-line); border-radius: 10px; background: var(--mc-field); color: var(--mc-ink); font: 500 20px/1.4 Rubik,sans-serif; }
#mc-exchange .xtp_commis_wrap { position: relative; width: 100%; padding: 0; margin: 8px 0; }
#mc-exchange .xtp_commis_wrap input { width: 100%; min-width: 0; height: 44px; padding: 8px 100px 8px 10px; border: 1px solid var(--mc-line); border-radius: 10px; background: var(--mc-field); color: var(--mc-muted); font: 400 16px/1.5 Rubik,sans-serif; }
#mc-exchange .xtp_commis_text { right: 10px; top: 0; line-height: 44px; color: var(--mc-muted); font-size: 12px; }
#mc-exchange .xtp_line { margin: 8px 0 0; padding: 0; color: var(--mc-muted); font: 400 13px/1.6 Rubik,sans-serif; overflow-wrap: anywhere; }
#mc-exchange .xtp_submit_wrap { margin: 20px 0 0; padding: 0; }
#mc-exchange .xtp_submit { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; height: auto; padding: 14px 20px; margin: 0; border: 0; border-radius: 28px; background: var(--mc-highlight); color: var(--mc-surface); font: 500 15px/1.5 Rubik,sans-serif; }
#mc-exchange .xtp_html_wrap { position: relative; }
#mc-exchange :is(.xtp_col_table_body,.xtp_table_list_ins,.xtp_icon_wrap) > .clear { display: none; }
/* Embedded exchange forms use the same fields, spacing and surfaces as the site. */
#mc-exchange :is(.hexch_widget,.hexch_div,.hexch_div_ins,.hexch_ajax_wrap,.htable_ajax_wrap) { width: 100%; min-width: 0; max-width: none; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; }
#mc-exchange .hexch_cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
#mc-exchange :is(.hexch_left,.hexch_right,.hexch_pers,.hexch_pers_div,.hexch_pers_line) { float: none; width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0; background: none; border: 0; }
#mc-exchange .hexch_title_ins { display: flex; align-items: center; gap: 8px; padding: 0; margin: 0 0 12px; }
#mc-exchange .hexch_title_logo { width: 28px; height: 28px; margin: 0; flex: 0 0 28px; }
#mc-exchange .hexch_psys { max-width: none; max-height: none; overflow: visible; font: 500 14px/1.5 Rubik,sans-serif; }
#mc-exchange :is(.hexch_curs_line,.hexch_pers_line) { margin: 0 0 14px; }
#mc-exchange :is(.hexch_curs_label,.hexch_pers_label) { margin: 0 0 6px; font: 400 13px/1.5 Rubik,sans-serif; }
#mc-exchange :is(.hexch_curs_input,.hexch_pers_input) { width: 100%; min-width: 0; }
#mc-exchange :is(.hexch_curs_input,.hexch_pers_input) input { height: 48px; padding: 10px 12px; font-size: 16px; background: var(--mc-field); color: var(--mc-ink); border: 1px solid var(--mc-line); border-radius: 12px; }
#mc-exchange .hexch_info_line { position: static; margin: 6px 0; width: 100%; font-size: 12px; line-height: 1.5; }
#mc-exchange .hexch_information { margin: 0 0 16px; font: 400 13px/1.6 Rubik,sans-serif; }
#mc-exchange .hexch_submit { width: 100%; margin: 12px 0 0; }
#mc-exchange .hexch_submit input { width: 100%; height: auto; min-height: 52px; margin: 0; padding: 14px 20px; border: 0; border-radius: 28px; background: var(--mc-highlight); color: var(--mc-surface); font: 500 15px/1.5 Rubik,sans-serif; }
#mc-exchange .hexch_checkdata_div { margin: 16px 0; font-size: 13px; line-height: 1.6; }
#mc-exchange :is(.hexch_checkdata_div,.hexch_information,.hexch_psys) { overflow-wrap: anywhere; }
@media (max-width:600px) {
    #mc-exchange :is(.xtp_col_table_body,.xtp_icon_wrap,.tbl1 .xtt_icon_wrap,.tbl5 .xtt_icon_wrap,.tbl5 .xtt5_wrapper,.hexch_cols) { grid-template-columns: minmax(0,1fr); }
    #mc-exchange .xtp_col_table_body { gap: 20px; }
    #mc-exchange .xtp_table_list_ins { grid-template-columns: repeat(3,minmax(0,1fr)); }
    #mc-exchange .tbl5 a.xtt_title_link { min-height: 44px; padding-block: 10px; }
    #mc-exchange :is(.xtl_left_col,.xtl_right_col) { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
    #mc-exchange .select_txt, #mc-exchange .select_js select { font-size: 16px; }
    #mc-exchange .xtl_commis_wrap input { height: 36px; font-size: 16px; }
    #mc-exchange .xtl_commis_text { line-height: 36px; }
}
@media (hover:hover) and (pointer:fine) {
    #mc-exchange :is(.xtp_item:hover,.tbl_icon:hover) { border-color: var(--mc-highlight); }
}
/* Reset legacy positioned fields and fixed tile tracks as well as widths. */
#mc-exchange .xtp_table_list_ins { grid-auto-rows: auto; grid-template-rows: none; }
#mc-exchange .xtp_item { position: relative; inset: auto; align-self: stretch; transition: border-color 150ms ease; }
#mc-exchange .xtp_curs_wrap { padding: 0; margin: 0; height: auto; }
#mc-exchange .xtp_select_wrap { position: relative; inset: auto; height: auto; }
#mc-exchange .xtp_input_wrap { height: auto; padding: 0; }
#mc-exchange .xtp_commis_wrap .xtp_commis_text { left: auto; right: 10px; top: 0; height: 44px; line-height: 44px; transform: none; }
#mc-exchange .xtl_change { display: grid; place-items: center; background-image: none; transform: none; color: var(--mc-highlight); }
#mc-exchange .xtl_change::before { content: '↕'; font: 500 18px/1 Rubik,sans-serif; }
#mc-exchange .select_js_title_ins .select_txt { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width:600px) {
    #mc-exchange :is(.xtl_left_col,.xtl_right_col) { grid-template-columns: minmax(0,1fr); }
    #mc-exchange .xtl_selico_wrap { grid-column: 1; grid-row: 2; }
    #mc-exchange .xtl_input_wrap { grid-column: 1; grid-row: 3; }
    #mc-exchange .xtl_left_col .xtl_commis_wrap { grid-row: 4; }
}
#mc-exchange .xtp_table_list_ins { max-height: 320px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--mc-muted) transparent; }
#mc-exchange .xtl_commis_text { left: auto; transform: none; height: auto; }
#mc-exchange .tbl5 .xtt_data_col_table_ins { width: 100%; min-width: 0; padding: 0; margin: 0; border: 0; background: none; }
#mc-exchange .hexch_div_ins { display: flex; flex-direction: column; gap: 0; }
#mc-exchange .hexch_title { padding: 10px; margin-bottom: 12px; }
#mc-exchange .hexch_submit_div { width: 100%; margin: 12px 0 0; padding: 0; }
#mc-exchange .hexch_submit_div .hexch_submit { width: 100%; height: auto; min-height: 52px; margin: 0; padding: 14px 20px; border: 0; border-radius: 28px; background: var(--mc-highlight); color: var(--mc-surface); font: 500 15px/1.5 Rubik,sans-serif; }
#mc-exchange .hexch_pers_div_ins { width: 100%; min-width: 0; padding: 0; margin: 0; }
#mc-exchange .hexch_widget .hexch_pers { padding: 0; margin: 20px 0 0; border: 0; }
#mc-exchange :is(.hexch_div_ins .hexch_pers_title,.hexch_div_ins .hexch_title) { margin: 0 0 12px; }
#mc-exchange .hexch_widget .hexch_div_ins .hexch_pers_line { margin: 0 0 14px; }
/* Full-form homepage: reuse the exchange page's fields inside one main card. */
.mc-hero:has(.xchange_div) .mc-exchange-area { width: 100%; max-width: none; }
#mc-exchange .xchange_div { width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; }
#mc-exchange :is(.xchange_div_ins,.xchange_div_col_give,.xchange_div_col_get) { width: 100%; min-width: 0; padding: 0; margin: 0; background: none; border: 0; }
#mc-exchange .xchange_div_cols { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
#mc-exchange :is(.xchange_data_left,.xchange_data_right,.xchange_data_ins,.xchange_pers_div_ins,.xchange_pers_line) { float: none; width: 100%; min-width: 0; max-width: 100%; padding: 0; margin-inline: 0; }
#mc-exchange .xchange_data_div { padding: 0; margin: 0 0 20px; border: 0; }
#mc-exchange .xchange_data_title { margin: 0 0 12px; font: 500 15px/1.5 Rubik,sans-serif; }
#mc-exchange .xchange_sum_input input { height: 48px; padding: 10px 12px; font: 500 22px/1.4 Rubik,sans-serif; }
#mc-exchange :is(.xchange_sum_label,.xchange_pers_label,.xchange_info_line) { font: 400 13px/1.6 Rubik,sans-serif; }
#mc-exchange :is(.xchange_personal_wrapper,.xchange_pers,.xchange_pers_div) { width: 100%; min-width: 0; max-width: none; padding: 0; margin: 0; background: none; border: 0; }
#mc-exchange .xchange_pers_title { margin: 0 0 12px; font: 500 16px/1.5 Rubik,sans-serif; }
#mc-exchange :is(.xchange_pers_input input,.xchange_pers_input textarea) { font-size: 16px; }
#mc-exchange .xchange_submit_div { width: 100%; min-width: 0; padding: 0; margin: 16px 0 0; }
#mc-exchange .xchange_submit { width: 100%; height: auto; min-height: 52px; padding: 14px 20px; border-radius: 28px; background: var(--mc-highlight); color: var(--mc-surface); font: 500 15px/1.5 Rubik,sans-serif; }
#mc-exchange .hexch_title_logo { background-size: contain; background-position: center; background-repeat: no-repeat; }
@media (min-width:1001px) {
    .mc-hero:has(:is(.xchange_type_plitka,.xchange_type_list)) {
        grid-template-columns: minmax(0,350px) minmax(0,1fr);
        gap: 64px;
    }
    .mc-hero:has(.xchange_div) { grid-template-columns: minmax(0,1fr); gap: 32px; }
    .mc-hero:has(.xchange_div) .mc-hero-copy {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        align-items: start;
        gap: 16px 64px;
        padding-top: 0;
    }
    .mc-hero:has(.xchange_div) .mc-service-label { grid-column: 1/-1; margin: 0; }
    .mc-hero:has(.xchange_div) h1 { grid-column: 1; grid-row: 2/5; margin: 0; }
    .mc-hero:has(.xchange_div) .mc-hero-description { grid-column: 2; max-width: none; margin: 0; }
    .mc-hero:has(.xchange_div) .mc-hero-description > span { display: inline; }
    .mc-hero:has(.xchange_div) .mc-hero-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; gap: 12px; margin: 0; }
    .mc-hero:has(.xchange_div) .mc-service-hours { grid-column: 2; padding: 0; margin: 0; }
}
@media (max-width:600px) {
    #mc-exchange .xchange_div_cols { grid-template-columns: minmax(0,1fr); }
    #mc-exchange .xchange_div { padding: 0; }
}
#mc-exchange .hexch_title_logo { min-height: 28px; max-height: 28px; }

/* Both lists start below the reserve/rate controls in table 5. */
@media (min-width:601px) {
    #mc-exchange .tbl5 :is(.xtt_left_incol_title,.xtt_right_incol_title) { min-height: 96px; align-content: start; }
}
#mc-exchange .tbl5 .xtt_data_col_table:has(.htable_notwidget) { display: none; }
@media (min-width:1001px) and (max-width:1200px) {
    .mc-hero:has(:is(.xchange_type_plitka,.xchange_type_list)) { grid-template-columns: minmax(0,290px) minmax(0,1fr); gap: 32px; }
    .mc-hero:has(:is(.xchange_type_plitka,.xchange_type_list)) h1 { font-size: 40px; }
}
