/* Shared single-choice menus. The original select remains the form field. */
body .tp-select-control { position: relative; display: inline-block; width: 100%; min-width: 0; }
body select.tp-select-native {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: 0 !important; clip-path: inset(50%);
  overflow: hidden; pointer-events: none;
}
body .tp-select-control > .tp-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 44px; margin: 0; padding: 10px 14px;
  border: 1px solid #d5dce8; border-radius: 12px; background: #fff;
  color: #0b1b4c; font: inherit; font-size: 14px; font-weight: 500;
  text-align: start; cursor: pointer; box-shadow: none;
}
.tp-select-trigger > .tp-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-select-trigger > .tp-select-selected-icon { width: 26px; height: 26px; flex: 0 0 26px; color: #0757e8; background: #edf4ff; }
.tp-select-trigger > .tp-select-selected-icon[hidden] { display: none; }
.tp-select-chevron { width: 7px; height: 7px; flex: 0 0 7px; margin-inline-end: 3px; border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg); }
.tp-select-trigger[aria-expanded="true"] .tp-select-chevron { transform: rotate(225deg); }
body .tp-select-trigger:focus-visible, body .tp-select-trigger[aria-expanded="true"] { outline: 3px solid rgba(7,87,232,.13); border-color: #0757e8; }
body .tp-select-trigger[aria-invalid="true"] { border-color: #dc2626; }
body .tp-select-trigger:disabled { background: #f1f5f9; color: #94a3b8; cursor: default; }
body .tp-select-menu[hidden] { display: none; }
body .tp-select-menu {
  position: fixed; z-index: 2147483600; box-sizing: border-box;
  padding: 8px; border: 1px solid #e2e8f0; border-radius: 16px;
  background: #fff; color: #0b1b4c; box-shadow: 0 12px 40px rgba(11,27,76,.18);
  font-family: inherit; text-align: start;
}
.tp-select-heading { padding: 8px 10px 12px; color: #64748b; font-size: 12px; font-weight: 700; }
.tp-select-options { overflow-y: auto; overscroll-behavior: contain; }
.tp-select-group { padding: 10px 12px 4px; color: #64748b; font-size: 12px; font-weight: 700; }
body .tp-select-menu .tp-select-option {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px;
  margin: 2px 0; padding: 10px 12px; box-sizing: border-box; border: 0; border-radius: 10px;
  background: #fff; color: #0b1b4c; font: inherit; font-size: 14px; font-weight: 500;
  text-align: start; cursor: pointer; box-shadow: none;
}
.tp-select-option-label { flex: 1; min-width: 0; }
.tp-select-option::after { content: ''; width: 17px; height: 17px; flex: 0 0 17px; border: 1.5px solid #cbd5e1; border-radius: 50%; box-sizing: border-box; }
body .tp-select-option[aria-selected="true"] { background: #edf4ff; color: #0757e8; font-weight: 700; }
.tp-select-option[aria-selected="true"]::after { border: 5px solid #0757e8; background: #fff; }
.tp-select-icon { display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; background: #f0f3f8; color: #0b1b4c; }
.tp-select-icon svg { width: 18px; height: 18px; }
.tp-select-option[aria-selected="true"] .tp-select-icon { background: #dfeeff; color: #0757e8; }
body .tp-select-option:hover, body .tp-select-option:focus-visible { background: #f1f5f9; outline: 2px solid #0757e8; outline-offset: -2px; }
.tp-select-control ~ i.fa-chevron-down, .tp-select-control ~ i.fa-chevron-right { display: none; }
body .tp-money-field > .tp-select-control { width: 100%; min-width: 0; }
body .tp-money-field .tp-select-trigger { padding: 10px 11px; min-height: 48px; font-size: 12px; }
body .tp-comm-select > .tp-select-control .tp-select-trigger { border: 0; min-height: 48px; }
body .tp-field__icon > .tp-select-control .tp-select-trigger { padding-inline-start: 42px; }
body .tp-photo-editor__ratio > .tp-select-control { width: auto; min-width: 110px; }
body .tp11-language-row .tp-select-trigger { min-height: 36px; padding: 5px 8px; border-radius: 8px; font-size: 11px; }
body .trs-request-fields .tp-select-trigger { min-height: 52px; }

/* These are selection controls, not primary action buttons. Explicitly reset
   legacy theme button rules (including !important branding and hover rules). */
body .tp-select-control button.tp-select-trigger,
body .tp-select-menu button.tp-select-option {
  appearance: none !important; -webkit-appearance: none !important;
  display: flex !important; float: none !important; clear: none !important;
  align-items: center !important; width: 100% !important; height: auto !important;
  min-height: 44px !important; max-height: none !important;
  padding: 10px 14px !important; border: 1px solid #d5dce8 !important;
  border-radius: 12px !important; background: #fff !important;
  background-image: none !important; color: #0b1b4c !important;
  font-family: inherit !important; font-size: 14px !important;
  font-weight: 500 !important; line-height: 20px !important;
  text-align: start !important; text-transform: none !important;
  text-decoration: none !important; letter-spacing: normal !important;
  text-shadow: none !important; box-shadow: none !important;
  transform: none !important; opacity: 1 !important;
  transition: none !important; animation: none !important;
}
body .tp-select-menu button.tp-select-option {
  position: relative !important; justify-content: flex-start !important;
  margin: 2px 0 !important; padding: 10px 12px !important;
  border: 0 !important; border-radius: 10px !important; gap: 12px !important;
}
body .tp-select-menu button.tp-select-option[aria-selected="true"] {
  background: #edf4ff !important; color: #0757e8 !important; font-weight: 700 !important;
}
body .tp-select-menu button.tp-select-option:hover,
body .tp-select-menu button.tp-select-option:focus-visible {
  outline: 2px solid #0757e8 !important; outline-offset: -2px !important;
}
body .tp-select-menu button.tp-select-option:not([aria-selected="true"]):hover,
body .tp-select-menu button.tp-select-option:not([aria-selected="true"]):focus-visible {
  background: #f1f5f9 !important;
}
body .tp-select-control button.tp-select-trigger {
  position: relative !important; margin: 0 !important;
  justify-content: space-between !important; gap: 10px !important;
}
body .tp-select-control button.tp-select-trigger:focus-visible,
body .tp-select-control button.tp-select-trigger[aria-expanded="true"] {
  border-color: #0757e8 !important; outline: 3px solid rgba(7,87,232,.13) !important;
}
body .tp-select-control button.tp-select-trigger[aria-invalid="true"] { border-color: #dc2626 !important; }
body .tp-select-control button.tp-select-trigger:disabled { background: #f1f5f9 !important; color: #94a3b8 !important; cursor: not-allowed; }
body .trs-request-fields .tp-select-control button.tp-select-trigger { min-height: 52px !important; }
body .tp-money-field .tp-select-control button.tp-select-trigger { min-height: 48px !important; padding: 10px 11px !important; font-size: 12px !important; }
body .tp-comm-select .tp-select-control button.tp-select-trigger { border: 0 !important; min-height: 48px !important; }
body .tp-field__icon .tp-select-control button.tp-select-trigger { padding-inline-start: 42px !important; }
body .tp-field__icon--category.tp-select-has-selected-icon > [data-tp-category-icon] { display: none !important; }
body .tp-field__icon--category.tp-select-has-selected-icon .tp-select-control button.tp-select-trigger { padding-inline-start: 14px !important; }
body .tp11-language-row .tp-select-control button.tp-select-trigger { min-height: 36px !important; padding: 5px 8px !important; border-radius: 8px !important; font-size: 11px !important; }

/* Step 4: leave room for the currency icon, code, symbol and chevron. */
body.tp-stage6-editor .tp-money-field.has-currency-select {
  grid-template-columns: 156px minmax(0, 1fr);
}