/*
Theme Name: X-Capital Custom
Theme URI: https://x-capital.expert
Description: Custom exchange theme based on welldev_theme
Template: welldev_theme
Version: 1.0.0
Author: wellDEV
Author URI: https://wellcloud.io
*/

/* Import parent theme styles */
@import url('../welldev_theme/style.css');

/* ============================================
   CUSTOM EXCHANGE FORM STYLES
   Scoped to exchange pages only - does not affect global styles
   ============================================ */

/* Remove old exchange step styles */
.rufri-xod2,
.rufri-xod3,
.rufri-xod4,
.rufri-xod5,
.rufri-xod6 {
  all: unset;
  display: block;
}

/* Reset old styles */
.rufri-xod2 *,
.rufri-xod3 *,
.rufri-xod4 *,
.rufri-xod5 *,
.rufri-xod6 * {
  all: revert;
}

/* Main exchange wrapper - only for exchange pages */
.xc-exchange-wrapper {
  min-height: auto;
  background: transparent;
  padding: 40px 20px;
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

/* Don't affect homepage content */
body:not(.xc-exchange-page) .xc-exchange-wrapper {
  padding: 0;
  display: block;
}

/* Exchange rate display */
.xc-exchange-wrapper .xc-exchange-rate {
  font-size: 20px;
  font-weight: 500;
  color: #424242;
  margin-bottom: 30px;
  text-align: center;
}

/* Main exchange card */
.xc-exchange-wrapper .xc-exchange-card,
.xc-exchange-wrapper .hexch_widget,
.xc-exchange-wrapper .xchange_div {
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  padding: 35px !important;
  max-width: 740px !important;
  width: 100% !important;
  margin: 0 auto !important;
  border: none !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

/* Two-column layout for desktop - only on exchange pages */
.xc-exchange-page .xc-exchange-wrapper .hexch_cols,
.xc-exchange-page .xc-exchange-wrapper .xchange_cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 30px !important;
  align-items: start !important;
}

/* Single column on homepage */
body:not(.xc-exchange-page) .hexch_cols,
body:not(.xc-exchange-page) .xchange_cols {
  display: block !important;
}

/* Currency section */
.xc-exchange-wrapper .xc-currency-section,
.xc-exchange-wrapper .hexch_left,
.xc-exchange-wrapper .hexch_right {
  margin-bottom: 20px !important;
  max-width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.xc-exchange-wrapper .xc-currency-header,
.xc-exchange-wrapper .hexch_title {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 12px !important;
}

.xc-exchange-wrapper .xc-currency-icon,
.xc-exchange-wrapper .hexch_title_logo,
.xc-exchange-wrapper .currency_logo,
.xc-exchange-wrapper img.currency_logo,
.xc-exchange-wrapper .hexch_title img,
.xc-exchange-wrapper .block_xchdata_info img,
.xc-exchange-wrapper .block_persdata_line img {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 50% !important;
  background-size: cover !important;
  background-position: center !important;
  flex-shrink: 0 !important;
  object-fit: cover !important;
}

.xc-exchange-wrapper .xc-currency-label,
.xc-exchange-wrapper .hexch_psys {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #212121 !important;
}

/* Currency inputs - scoped to exchange wrapper only */
.xc-exchange-wrapper .xc-currency-input,
.xc-exchange-wrapper .hexch_curs_input,
.xc-exchange-wrapper .xchange_curs_input,
.xc-exchange-wrapper .hexch_curs_input input[type="text"],
.xc-exchange-wrapper .xchange_curs_input input[type="text"],
.xc-exchange-wrapper input.js_sum1,
.xc-exchange-wrapper input.js_sum2,
.xc-exchange-wrapper input.js_sum1c,
.xc-exchange-wrapper input.js_sum2c {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

.xc-exchange-wrapper .hexch_curs_input input[type="text"],
.xc-exchange-wrapper .xchange_curs_input input[type="text"],
.xc-exchange-wrapper input.js_sum1,
.xc-exchange-wrapper input.js_sum2,
.xc-exchange-wrapper input.js_sum1c,
.xc-exchange-wrapper input.js_sum2c {
  width: 100% !important;
  height: 56px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 0 20px !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  color: #212121 !important;
  transition: all 0.3s ease !important;
  background: #fafafa !important;
  box-sizing: border-box !important;
}

.xc-exchange-wrapper .xc-currency-input:focus,
.xc-exchange-wrapper .hexch_curs_input input[type="text"]:focus,
.xc-exchange-wrapper .xchange_curs_input input[type="text"]:focus,
.xc-exchange-wrapper input.js_sum1:focus,
.xc-exchange-wrapper input.js_sum2:focus,
.xc-exchange-wrapper input.js_sum1c:focus,
.xc-exchange-wrapper input.js_sum2c:focus {
  outline: none !important;
  border-color: #42a5f5 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.1) !important;
}

/* Arrow separator */
.xc-exchange-wrapper .xc-arrow-separator {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.xc-exchange-wrapper .xc-arrow-icon {
  width: 40px;
  height: 40px;
  background: #f5f5f5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #757575;
  font-size: 20px;
}

/* Hide old arrow/change button */
.xc-exchange-wrapper .hexch_cols::after {
  content: '↓';
  display: block;
  text-align: center;
  font-size: 24px;
  color: #757575;
  margin: 20px 0;
}

.xc-exchange-wrapper .xtl_change,
.xc-exchange-wrapper a.xtl_change {
  display: none !important;
}

/* Form fields */
.xc-exchange-wrapper .xc-form-field,
.xc-exchange-wrapper .hexch_curs_line,
.xc-exchange-wrapper .hexch_pers_line,
.xc-exchange-wrapper .xchange_curs_line,
.xc-exchange-wrapper .xchange_pers_line {
  margin-bottom: 16px !important;
  max-width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

.xc-exchange-wrapper .xc-field-label,
.xc-exchange-wrapper .hexch_curs_label,
.xc-exchange-wrapper .hexch_pers_label,
.xc-exchange-wrapper .xchange_curs_label,
.xc-exchange-wrapper .xchange_pers_label {
  display: block !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #616161 !important;
  margin-bottom: 8px !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important;
}

/* Form inputs - scoped to exchange wrapper only */
.xc-exchange-wrapper .xc-field-input,
.xc-exchange-wrapper .hexch_pers_input input[type="text"],
.xc-exchange-wrapper .hexch_pers_input input[type="email"],
.xc-exchange-wrapper .xchange_pers_input input[type="text"],
.xc-exchange-wrapper .xchange_pers_input input[type="email"] {
  width: 100% !important;
  height: 50px !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 0 18px !important;
  font-size: 16px !important;
  color: #212121 !important;
  transition: all 0.3s ease !important;
  background: #fafafa !important;
  box-sizing: border-box !important;
}

.xc-exchange-wrapper .xc-field-input:focus,
.xc-exchange-wrapper .hexch_pers_input input[type="text"]:focus,
.xc-exchange-wrapper .hexch_pers_input input[type="email"]:focus,
.xc-exchange-wrapper .xchange_pers_input input[type="text"]:focus,
.xc-exchange-wrapper .xchange_pers_input input[type="email"]:focus {
  outline: none !important;
  border-color: #42a5f5 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(66, 165, 245, 0.1) !important;
}

.xc-exchange-wrapper .xc-field-input.error,
.xc-exchange-wrapper .js_wrap_error.error input {
  border-color: #ef5350 !important;
}

/* Wrapper for inputs with errors - ensure it doesn't constrain overflow */
.xc-exchange-wrapper .js_wrap_error,
.xc-exchange-wrapper .hexch_curs_input,
.xc-exchange-wrapper .xchange_curs_input,
.xc-exchange-wrapper .hexch_pers_input,
.xc-exchange-wrapper .xchange_pers_input {
  max-width: 100% !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Submit button - all buttons on all exchange steps */
.xc-exchange-wrapper .xc-submit-button,
.xc-exchange-wrapper input[type="submit"],
.xc-exchange-wrapper button[type="submit"],
.xc-exchange-wrapper .hexch_submit,
.xc-exchange-wrapper .xchange_submit,
.xc-exchange-wrapper .hexch_submit_div input[type="submit"],
.xc-exchange-wrapper .xchange_submit_div input[type="submit"],
.xc-exchange-wrapper .block_statusbids_button input,
.xc-exchange-wrapper .block_statusbids_button button,
.xc-exchange-wrapper .block_statusbids_button a,
.xc-exchange-wrapper .block_paybutton a,
.xc-exchange-wrapper .cancel_paybutton,
.xc-exchange-wrapper input.button,
.xc-exchange-wrapper button.button,
.xc-exchange-wrapper a.button {
  width: 100% !important;
  max-width: 400px !important;
  height: 56px !important;
  background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%) !important;
  border: none !important;
  border-radius: 12px !important;
  color: #ffffff !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  margin: 20px auto 0 !important;
  box-shadow: 0 4px 12px rgba(66, 165, 245, 0.3) !important;
  padding: 0 20px !important;
  line-height: 56px !important;
  display: inline-block !important;
  text-align: center !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
}

.xc-exchange-wrapper .xc-submit-button:hover,
.xc-exchange-wrapper input[type="submit"]:hover,
.xc-exchange-wrapper button[type="submit"]:hover,
.xc-exchange-wrapper .hexch_submit:hover,
.xc-exchange-wrapper .xchange_submit:hover,
.xc-exchange-wrapper .cancel_paybutton:hover,
.xc-exchange-wrapper input.button:hover,
.xc-exchange-wrapper button.button:hover,
.xc-exchange-wrapper a.button:hover {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%) !important;
  box-shadow: 0 6px 16px rgba(66, 165, 245, 0.4) !important;
  transform: translateY(-2px) !important;
}

.xc-exchange-wrapper .xc-submit-button:active,
.xc-exchange-wrapper input[type="submit"]:active,
.xc-exchange-wrapper button[type="submit"]:active,
.xc-exchange-wrapper .cancel_paybutton:active {
  transform: translateY(0) !important;
}

.xc-exchange-wrapper .xc-submit-button:disabled,
.xc-exchange-wrapper input[type="submit"]:disabled,
.xc-exchange-wrapper button[type="submit"]:disabled {
  background: #bdbdbd !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Remove underline from all links in exchange forms */
.xc-exchange-wrapper a,
.xc-exchange-wrapper a:link,
.xc-exchange-wrapper a:visited,
.xc-exchange-wrapper a:hover,
.xc-exchange-wrapper a:active {
  text-decoration: none !important;
}

/* Center buttons container */
.xc-exchange-wrapper .hexch_submit_div,
.xc-exchange-wrapper .xchange_submit_div,
.xc-exchange-wrapper .block_statusbids_button,
.xc-exchange-wrapper .block_paybutton,
.xc-exchange-wrapper .block_paybutton_ins,
.xc-exchange-wrapper .block_submitbutton,
.xc-exchange-wrapper .button-wrapper {
  text-align: center !important;
  display: flex !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 16px !important;
}

/* Clear float fix */
.xc-exchange-wrapper .block_paybutton_ins .clear {
  display: none !important;
}

.xc-exchange-wrapper .xc-submit-button:hover,
.xc-exchange-wrapper input[type="submit"].hexch_submit:hover,
.xc-exchange-wrapper input[type="submit"].xchange_submit:hover,
.xc-exchange-wrapper .hexch_submit_div input[type="submit"]:hover,
.xc-exchange-wrapper .xchange_submit_div input[type="submit"]:hover {
  background: linear-gradient(135deg, #1e88e5 0%, #1565c0 100%) !important;
  box-shadow: 0 6px 16px rgba(66, 165, 245, 0.4) !important;
  transform: translateY(-2px) !important;
}

.xc-exchange-wrapper .xc-submit-button:active,
.xc-exchange-wrapper input[type="submit"].hexch_submit:active,
.xc-exchange-wrapper input[type="submit"].xchange_submit:active {
  transform: translateY(0) !important;
}

.xc-exchange-wrapper .xc-submit-button:disabled,
.xc-exchange-wrapper input[type="submit"]:disabled {
  background: #bdbdbd !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* Checkbox */
.xc-exchange-wrapper .xc-checkbox-wrapper,
.xc-exchange-wrapper .hexch_checkdata_div,
.xc-exchange-wrapper .xchange_checkdata_div {
  margin-top: 16px !important;
}

.xc-exchange-wrapper .xc-checkbox-label,
.xc-exchange-wrapper .hexch_checkdata_div label,
.xc-exchange-wrapper .xchange_checkdata_div label {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  font-size: 13px !important;
  color: #616161 !important;
  cursor: pointer !important;
  line-height: 1.4 !important;
}

.xc-exchange-wrapper .xc-checkbox-label input[type="checkbox"],
.xc-exchange-wrapper .hexch_checkdata_div input[type="checkbox"],
.xc-exchange-wrapper .xchange_checkdata_div input[type="checkbox"] {
  margin-top: 2px !important;
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
}

/* Error messages */
.xc-exchange-wrapper .xc-error-message,
.xc-exchange-wrapper .js_error,
.xc-exchange-wrapper .resultfalse {
  color: #ef5350 !important;
  font-size: 12px !important;
  margin-top: 6px !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-break: break-all !important;
  white-space: normal !important;
  display: block !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
  padding-right: 4px !important;
}

/* Success message */
.xc-exchange-wrapper .xc-success-message,
.xc-exchange-wrapper .resulttrue {
  background: #e8f5e9 !important;
  border-left: 4px solid #4caf50 !important;
  padding: 16px !important;
  border-radius: 8px !important;
  margin-bottom: 20px !important;
  color: #2e7d32 !important;
}

/* Notice messages - consistent blue theme with maximum specificity */
.notice_message,
.warning_message,
.xc-exchange-wrapper .notice_message,
.xc-exchange-wrapper .warning_message,
.rufri-xod2 .notice_message,
.rufri-xod3 .notice_message,
.rufri-xod4 .notice_message,
.rufri-xod5 .notice_message,
.rufri-xod6 .notice_message,
body .notice_message,
body .warning_message,
body .xc-exchange-wrapper .notice_message,
body .xc-exchange-wrapper .warning_message,
.xc-exchange-page .notice_message,
.xc-exchange-page .warning_message {
  background: #e3f2fd !important;
  border: none !important;
  border-left: 4px solid #42a5f5 !important;
  padding: 18px 20px !important;
  border-radius: 16px !important;
  border-top-left-radius: 20px !important;
  border-bottom-left-radius: 20px !important;
  margin: 20px auto !important;
  max-width: 740px !important;
  width: 100% !important;
  color: #1565c0 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  position: relative !important;
  box-shadow: 0 2px 8px rgba(66, 165, 245, 0.15) !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

/* Hide blue checkmark icon and any other icons */
.notice_message img,
.warning_message img,
.notice_message svg,
.warning_message svg,
.notice_message .icon,
.warning_message .icon,
.notice_message [class*="icon"],
.warning_message [class*="icon"],
.xc-exchange-wrapper .notice_message img,
.xc-exchange-wrapper .warning_message img,
.xc-exchange-wrapper .notice_message svg,
.xc-exchange-wrapper .warning_message svg,
.xc-exchange-wrapper .notice_message .icon,
.xc-exchange-wrapper .warning_message .icon,
.xc-exchange-wrapper .notice_message [class*="icon"],
.xc-exchange-wrapper .warning_message [class*="icon"],
.rufri-xod2 .notice_message img,
.rufri-xod3 .notice_message img,
.rufri-xod4 .notice_message img,
.rufri-xod5 .notice_message img,
.rufri-xod6 .notice_message img {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
}

/* Loading state */
.xc-exchange-wrapper .xc-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.xc-exchange-wrapper .xc-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  margin: -12px 0 0 -12px;
  border: 3px solid #42a5f5;
  border-top-color: transparent;
  border-radius: 50%;
  animation: xc-spin 0.8s linear infinite;
}

@keyframes xc-spin {
  to { transform: rotate(360deg); }
}

/* Hide old layout elements */
.xc-exchange-page .xc-exchange-wrapper .hexch_cols {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 40px !important;
}

.xc-exchange-page .xc-exchange-wrapper .hexch_left,
.xc-exchange-page .xc-exchange-wrapper .hexch_right {
  width: 100% !important;
  float: none !important;
}

.xc-exchange-wrapper .hexch_bigtitle,
.xc-exchange-wrapper .hexch_information {
  display: none !important;
}

/* Hide sidebar on all exchange pages */
.xc-exchange-page .sidebar,
.xc-exchange-page aside.sidebar,
body.xc-exchange-page .sidebar,
.xc-exchange-page #sidebar,
.xc-exchange-page .widget-area {
  display: none !important;
}

/* Expand main content to full width when sidebar is hidden */
.xc-exchange-page .content-area,
.xc-exchange-page .site-main,
.xc-exchange-page #primary,
.xc-exchange-page .main-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

/* Step 2: Confirmation page */
.xc-exchange-wrapper .xc-confirmation-card,
.xc-exchange-wrapper .block_xchangedata,
.xc-exchange-wrapper .block_statusbids {
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  padding: 40px !important;
  max-width: 740px !important;
  width: 100% !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}
}

.xc-exchange-wrapper .xc-confirmation-title,
.xc-exchange-wrapper .block_xchdata_title,
.xc-exchange-wrapper .block_persdata_title {
  font-size: 24px !important;
  font-weight: 600 !important;
  color: #212121 !important;
  margin-bottom: 30px !important;
  text-align: center !important;
}

.xc-exchange-wrapper .xc-info-row,
.xc-exchange-wrapper .block_xchdata_info,
.xc-exchange-wrapper .block_persdata_line {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid #f5f5f5 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
}

.xc-exchange-wrapper .xc-info-label,
.xc-exchange-wrapper .block_xchdata_info_left,
.xc-exchange-wrapper .block_persdata_label {
  font-size: 15px !important;
  color: #757575 !important;
  display: grid !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.xc-exchange-wrapper .xc-info-value,
.xc-exchange-wrapper .block_xchdata_info_right,
.xc-exchange-wrapper .block_persdata_text {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #212121 !important;
  text-align: right !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

/* Currency icons in confirmation page - force consistent size and visual weight */
.xc-exchange-wrapper .block_xchdata_info img,
.xc-exchange-wrapper .block_persdata_line img,
.xc-exchange-wrapper .block_xchdata_info_left img,
.xc-exchange-wrapper .block_xchdata_info_right img,
.xc-exchange-wrapper .block_persdata_label img,
.xc-exchange-wrapper .block_persdata_text img {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  max-width: 40px !important;
  max-height: 40px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  padding: 4px !important;
  background: #f5f5f5 !important;
  box-sizing: border-box !important;
}

/* Fix "На счет" field positioning - ONLY for rows with account-field-row class */
.xc-exchange-wrapper .account-field-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  padding: 20px 0 !important;
}

.xc-exchange-wrapper .account-field-row .block_persdata_label,
.xc-exchange-wrapper .account-field-row .block_xchdata_info_left {
  display: block !important;
  margin-bottom: 8px !important;
  width: 100% !important;
}

.xc-exchange-wrapper .account-field-row .block_persdata_text,
.xc-exchange-wrapper .account-field-row .block_xchdata_info_right {
  display: block !important;
  text-align: left !important;
  width: 100% !important;
  justify-content: flex-start !important;
}

/* Step 3: Payment status */
.xc-exchange-wrapper .xc-status-card {
  background: #ffffff !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
  padding: 50px 40px !important;
  max-width: 740px !important;
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.xc-exchange-wrapper .xc-status-icon,
.xc-exchange-wrapper .block_status_ico {
  width: 80px !important;
  height: 80px !important;
  margin: 0 auto 24px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 40px !important;
}

.xc-exchange-wrapper .xc-status-icon.pending,
.xc-exchange-wrapper .block_status_new .block_status_ico,
.xc-exchange-wrapper .block_status_techpay .block_status_ico {
  background: #fff3e0 !important;
  color: #f57c00 !important;
}

.xc-exchange-wrapper .xc-status-icon.success,
.xc-exchange-wrapper .block_status_success .block_status_ico {
  background: #e8f5e9 !important;
  color: #4caf50 !important;
}

.xc-exchange-wrapper .xc-status-icon.error,
.xc-exchange-wrapper .block_status_canceled .block_status_ico,
.xc-exchange-wrapper .block_status_error .block_status_ico {
  background: #ffebee !important;
  color: #ef5350 !important;
}

.xc-exchange-wrapper .xc-status-title,
.xc-exchange-wrapper .block_status_title {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: #212121 !important;
  margin-bottom: 12px !important;
}

.xc-exchange-wrapper .xc-status-description,
.xc-exchange-wrapper .block_status_text {
  font-size: 15px !important;
  color: #757575 !important;
  line-height: 1.6 !important;
  margin-bottom: 30px !important;
}

/* QR Code display */
.xc-exchange-wrapper .xc-qr-wrapper,
.xc-exchange-wrapper .qr_div,
.xc-exchange-wrapper .zone_center {
  background: #fafafa !important;
  border-radius: 16px !important;
  padding: 30px !important;
  margin: 30px 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
}

.xc-exchange-wrapper .xc-qr-code,
.xc-exchange-wrapper #qr_adress {
  max-width: 240px !important;
  width: 100% !important;
  height: auto !important;
  margin: 0 auto 20px !important;
  display: block !important;
  box-sizing: border-box !important;
}

.xc-exchange-wrapper .xc-qr-code img,
.xc-exchange-wrapper #qr_adress img {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
}

.xc-exchange-wrapper .xc-address-display,
.xc-exchange-wrapper .zone_text {
  background: #ffffff !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 12px !important;
  padding: 16px !important;
  font-family: 'Courier New', monospace !important;
  font-size: 14px !important;
  word-break: break-all !important;
  color: #212121 !important;
  margin-top: 16px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
}

.xc-exchange-wrapper .xc-copy-button,
.xc-exchange-wrapper .zone_copy,
.xc-exchange-wrapper .js_purse_link {
  margin-top: 16px !important;
  padding: 12px 24px !important;
  background: #f5f5f5 !important;
  border: 2px solid #e0e0e0 !important;
  border-radius: 8px !important;
  color: #424242 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-block !important;
  text-decoration: none !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.xc-exchange-wrapper .xc-copy-button:hover,
.xc-exchange-wrapper .zone_copy:hover,
.xc-exchange-wrapper .js_purse_link:hover {
  background: #eeeeee !important;
  border-color: #bdbdbd !important;
}

/* Prevent horizontal scroll on mobile */
body.xc-exchange-page {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}

/* Responsive - Mobile adaptation */
@media (max-width: 768px) {
  /* Prevent horizontal overflow only on exchange pages */
  body.xc-exchange-page {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }

  .xc-exchange-wrapper {
    padding: 15px 8px !important;
    min-height: auto;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
  }

  /* Single column on mobile for ALL pages */
  .xc-exchange-wrapper .hexch_cols,
  .xc-exchange-wrapper .xchange_cols,
  .xc-exchange-page .xc-exchange-wrapper .hexch_cols,
  .xc-exchange-page .xc-exchange-wrapper .xchange_cols {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    display: block !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .xc-exchange-wrapper .hexch_left,
  .xc-exchange-wrapper .hexch_right {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  .xc-exchange-wrapper .xc-exchange-card,
  .xc-exchange-wrapper .hexch_widget,
  .xc-exchange-wrapper .xchange_div,
  .xc-exchange-wrapper .block_xchangedata,
  .xc-exchange-wrapper .block_statusbids {
    padding: 18px 14px !important;
    border-radius: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .xc-exchange-wrapper .xc-exchange-rate {
    font-size: 16px !important;
    margin-bottom: 15px;
  }

  .xc-exchange-wrapper .xc-currency-icon,
  .xc-exchange-wrapper .hexch_title_logo,
  .xc-exchange-wrapper .currency_logo,
  .xc-exchange-wrapper img.currency_logo,
  .xc-exchange-wrapper .hexch_title img,
  .xc-exchange-wrapper .block_xchdata_info img,
  .xc-exchange-wrapper .block_persdata_line img {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
  }

  .xc-exchange-wrapper .xc-currency-label,
  .xc-exchange-wrapper .hexch_psys {
    font-size: 14px !important;
  }

  .xc-exchange-wrapper .xc-currency-input,
  .xc-exchange-wrapper .hexch_curs_input input[type="text"],
  .xc-exchange-wrapper .xchange_curs_input input[type="text"],
  .xc-exchange-wrapper input.js_sum1,
  .xc-exchange-wrapper input.js_sum2 {
    height: 48px !important;
    font-size: 16px !important;
    padding: 0 12px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .xc-exchange-wrapper .xc-error-message,
  .xc-exchange-wrapper .js_error,
  .xc-exchange-wrapper .resultfalse {
    font-size: 11px !important;
    margin-top: 4px !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    padding-right: 4px !important;
  }

  .xc-exchange-wrapper .xc-field-input,
  .xc-exchange-wrapper .hexch_pers_input input[type="text"],
  .xc-exchange-wrapper .hexch_pers_input input[type="email"],
  .xc-exchange-wrapper .xchange_pers_input input[type="text"],
  .xc-exchange-wrapper .xchange_pers_input input[type="email"] {
    height: 46px !important;
    font-size: 15px !important;
    padding: 0 12px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .xc-exchange-wrapper .xc-submit-button,
  .xc-exchange-wrapper input[type="submit"].hexch_submit,
  .xc-exchange-wrapper input[type="submit"].xchange_submit,
  .xc-exchange-wrapper .hexch_submit_div input[type="submit"],
  .xc-exchange-wrapper .xchange_submit_div input[type="submit"] {
    height: 48px !important;
    font-size: 16px !important;
    line-height: 48px !important;
    margin-top: 20px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 16px !important;
  }

  .xc-exchange-wrapper .xc-confirmation-title,
  .xc-exchange-wrapper .block_xchdata_title,
  .xc-exchange-wrapper .block_persdata_title {
    font-size: 18px !important;
    margin-bottom: 20px !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .xc-exchange-wrapper .xc-info-row,
  .xc-exchange-wrapper .block_xchdata_info,
  .xc-exchange-wrapper .block_persdata_line {
    padding: 12px 0 !important;
    flex-direction: column !important;
    gap: 4px !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .xc-exchange-wrapper .xc-info-label,
  .xc-exchange-wrapper .block_xchdata_info_left,
  .xc-exchange-wrapper .block_persdata_label {
    font-size: 13px !important;
  }

  .xc-exchange-wrapper .xc-info-value,
  .xc-exchange-wrapper .block_xchdata_info_right,
  .xc-exchange-wrapper .block_persdata_text {
    font-size: 14px !important;
    text-align: left !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  .xc-exchange-wrapper .xc-status-title,
  .xc-exchange-wrapper .block_status_title {
    font-size: 18px !important;
  }

  .xc-exchange-wrapper .xc-status-description,
  .xc-exchange-wrapper .block_status_text {
    font-size: 14px !important;
  }

  .xc-exchange-wrapper .xc-status-icon,
  .xc-exchange-wrapper .block_status_ico {
    width: 60px !important;
    height: 60px !important;
    font-size: 30px !important;
    margin-bottom: 16px !important;
  }

  .xc-exchange-wrapper .xc-qr-wrapper,
  .xc-exchange-wrapper .qr_div,
  .xc-exchange-wrapper .zone_center {
    padding: 20px 10px !important;
    margin: 20px 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .xc-exchange-wrapper .xc-qr-code,
  .xc-exchange-wrapper #qr_adress {
    max-width: 180px !important;
  }

  .xc-exchange-wrapper .xc-address-display,
  .xc-exchange-wrapper .zone_text {
    font-size: 11px !important;
    padding: 10px !important;
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-all !important;
    box-sizing: border-box !important;
  }

  .xc-exchange-wrapper .notice_message,
  .xc-exchange-wrapper .warning_message {
    padding: 14px 12px !important;
    font-size: 13px !important;
    margin: 15px 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  .xc-exchange-wrapper .xc-checkbox-label,
  .xc-exchange-wrapper .hexch_checkdata_div label,
  .xc-exchange-wrapper .xchange_checkdata_div label {
    font-size: 13px !important;
  }

  .xc-exchange-wrapper .hexch_cols::after {
    font-size: 20px !important;
    margin: 15px 0 !important;
  }

  /* Ensure all child elements respect container width */
  .xc-exchange-wrapper * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Fix any tables or wide elements */
  .xc-exchange-wrapper table {
    width: 100% !important;
    display: block !important;
    overflow-x: auto !important;
  }

  /* Status cards on mobile */
  .xc-exchange-wrapper .xc-status-card {
    padding: 30px 16px !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Exchange rate display */
  .xc-exchange-wrapper .xc-exchange-rate {
    font-size: 15px !important;
    margin-bottom: 15px !important;
    padding: 0 8px !important;
    text-align: center !important;
  }

  /* Fix currency header on mobile */
  .xc-exchange-wrapper .xc-currency-header,
  .xc-exchange-wrapper .hexch_title {
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  /* Ensure form labels don't overflow */
  .xc-exchange-wrapper .xc-field-label,
  .xc-exchange-wrapper .hexch_curs_label,
  .xc-exchange-wrapper .hexch_pers_label,
  .xc-exchange-wrapper .xchange_curs_label,
  .xc-exchange-wrapper .xchange_pers_label,
  .xc-exchange-wrapper .xc-info-label,
  .xc-exchange-wrapper .block_xchdata_info_left,
  .xc-exchange-wrapper .block_persdata_label {
    max-width: 100% !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }

  /* Fix button containers */
  .xc-exchange-wrapper .hexch_submit_div,
  .xc-exchange-wrapper .xchange_submit_div,
  .xc-exchange-wrapper .block_statusbids_button,
  .xc-exchange-wrapper .block_paybutton {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Prevent any absolute positioned elements from causing overflow */
  .xc-exchange-wrapper [style*="position: absolute"] {
    position: relative !important;
  }

  /* Fix any floating elements */
  .xc-exchange-wrapper .hexch_left,
  .xc-exchange-wrapper .hexch_right,
  .xc-exchange-wrapper [style*="float"] {
    float: none !important;
    width: 100% !important;
  }

  /* Ensure images don't overflow */
  .xc-exchange-wrapper img {
    max-width: 100% !important;
    height: auto !important;
  }

  /* Fix QR code container */
  .xc-exchange-wrapper .xc-qr-code,
  .xc-exchange-wrapper #qr_adress {
    max-width: 200px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  /* Extra small screens (320px - 480px) */
  @media (max-width: 480px) {
    .xc-exchange-wrapper {
      padding: 10px 5px !important;
    }

    .xc-exchange-wrapper .xc-exchange-card,
    .xc-exchange-wrapper .hexch_widget,
    .xc-exchange-wrapper .xchange_div,
    .xc-exchange-wrapper .block_xchangedata,
    .xc-exchange-wrapper .block_statusbids {
      padding: 16px 12px !important;
      border-radius: 12px !important;
    }

    .xc-exchange-wrapper .xc-currency-input,
    .xc-exchange-wrapper .hexch_curs_input input[type="text"],
    .xc-exchange-wrapper .xchange_curs_input input[type="text"],
    .xc-exchange-wrapper input.js_sum1,
    .xc-exchange-wrapper input.js_sum2 {
      height: 44px !important;
      font-size: 15px !important;
      padding: 0 10px !important;
    }

    .xc-exchange-wrapper .xc-field-input,
    .xc-exchange-wrapper .hexch_pers_input input[type="text"],
    .xc-exchange-wrapper .hexch_pers_input input[type="email"],
    .xc-exchange-wrapper .xchange_pers_input input[type="text"],
    .xc-exchange-wrapper .xchange_pers_input input[type="email"] {
      height: 44px !important;
      font-size: 14px !important;
      padding: 0 10px !important;
    }

    .xc-exchange-wrapper .xc-submit-button,
    .xc-exchange-wrapper input[type="submit"].hexch_submit,
    .xc-exchange-wrapper input[type="submit"].xchange_submit,
    .xc-exchange-wrapper .hexch_submit_div input[type="submit"],
    .xc-exchange-wrapper .xchange_submit_div input[type="submit"] {
      height: 44px !important;
      font-size: 15px !important;
      line-height: 44px !important;
      padding: 0 12px !important;
    }

    .xc-exchange-wrapper .notice_message,
    .xc-exchange-wrapper .warning_message {
      padding: 12px 10px !important;
      font-size: 12px !important;
      margin: 12px 0 !important;
    }

    .xc-exchange-wrapper .xc-error-message,
    .xc-exchange-wrapper .js_error,
    .xc-exchange-wrapper .resultfalse {
      font-size: 10px !important;
      margin-top: 3px !important;
      line-height: 1.2 !important;
      padding-right: 2px !important;
      max-width: 100% !important;
      overflow-wrap: break-word !important;
      word-break: break-all !important;
      white-space: normal !important;
    }

    .xc-exchange-wrapper .xc-currency-icon,
    .xc-exchange-wrapper .hexch_title_logo,
    .xc-exchange-wrapper .currency_logo,
    .xc-exchange-wrapper img.currency_logo,
    .xc-exchange-wrapper .hexch_title img,
    .xc-exchange-wrapper .block_xchdata_info img,
    .xc-exchange-wrapper .block_persdata_line img {
      width: 36px !important;
      height: 36px !important;
      min-width: 36px !important;
      min-height: 36px !important;
      max-width: 36px !important;
      max-height: 36px !important;
    }

    .xc-exchange-wrapper .xc-qr-wrapper,
    .xc-exchange-wrapper .qr_div,
    .xc-exchange-wrapper .zone_center {
      padding: 15px 8px !important;
      margin: 15px 0 !important;
    }

    .xc-exchange-wrapper .xc-qr-code,
    .xc-exchange-wrapper #qr_adress {
      max-width: 160px !important;
    }

    .xc-exchange-wrapper .xc-address-display,
    .xc-exchange-wrapper .zone_text {
      font-size: 10px !important;
      padding: 8px !important;
    }
  }

  /* Fix checkbox labels on mobile */
  .xc-exchange-wrapper .xc-checkbox-label,
  .xc-exchange-wrapper .hexch_checkdata_div label,
  .xc-exchange-wrapper .xchange_checkdata_div label {
    font-size: 12px !important;
    line-height: 1.4 !important;
    max-width: 100% !important;
  }

  /* Fix any pre or code blocks */
  .xc-exchange-wrapper pre,
  .xc-exchange-wrapper code {
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-x: auto !important;
  }
}

/* Desktop: ensure two columns work properly on exchange pages */
@media (min-width: 769px) {
  .xc-exchange-page .xc-exchange-wrapper .hexch_cols,
  .xc-exchange-page .xc-exchange-wrapper .xchange_cols {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    align-items: start !important;
  }

  .xc-exchange-page .xc-exchange-wrapper .hexch_left,
  .xc-exchange-page .xc-exchange-wrapper .hexch_right {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
  }

  /* Compact form on exchange pages */
  .xc-exchange-page .xc-exchange-wrapper .xc-exchange-card,
  .xc-exchange-page .xc-exchange-wrapper .hexch_widget,
  .xc-exchange-page .xc-exchange-wrapper .xchange_div {
    padding: 30px !important;
  }
}
