/*
 * Theme guard for the repairOS frontend wizard.
 *
 * These rules intentionally stay inside the wizard body markers. They neutralize
 * common WordPress-theme defaults without changing the surrounding website.
 */
body.ros-wizard-active #ros-stepper#ros-stepper,
html.ros-has-wizard body #ros-stepper#ros-stepper {
  box-sizing: border-box !important;
  float: none !important;
  clear: both !important;
  max-width: 100% !important;
  font-family: inherit !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  writing-mode: horizontal-tb !important;
  transform: none !important;
}

body.ros-wizard-active #ros-stepper#ros-stepper *,
body.ros-wizard-active #ros-stepper#ros-stepper *::before,
body.ros-wizard-active #ros-stepper#ros-stepper *::after,
html.ros-has-wizard body #ros-stepper#ros-stepper *,
html.ros-has-wizard body #ros-stepper#ros-stepper *::before,
html.ros-has-wizard body #ros-stepper#ros-stepper *::after {
  box-sizing: border-box !important;
}

body.ros-wizard-active #ros-stepper#ros-stepper > .ros-step,
html.ros-has-wizard body #ros-stepper#ros-stepper > .ros-step {
  -webkit-appearance: none !important;
  appearance: none !important;
  float: none !important;
  font-family: inherit !important;
  font-style: normal !important;
  letter-spacing: 0 !important;
  line-height: normal !important;
  text-indent: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  list-style: none !important;
}

body.ros-wizard-active #ros-stepper#ros-stepper > .ros-step::marker,
html.ros-has-wizard body #ros-stepper#ros-stepper > .ros-step::marker {
  content: "" !important;
}

body.ros-wizard-active :is(
  .ros-frontend-wizard,
  .ros-step-content,
  .ros-frontend-form,
  .ros-wizard-nav,
  .ros-fw-stylebar,
  .ros-preview-card,
  .ros-brand-grid,
  .ros-category-grid,
  .ros-color-grid,
  .ros-form-grid,
  .ros-payment-method-grid,
  .ros-repair-grid
),
html.ros-has-wizard body :is(
  .ros-frontend-wizard,
  .ros-step-content,
  .ros-frontend-form,
  .ros-wizard-nav,
  .ros-fw-stylebar,
  .ros-preview-card,
  .ros-brand-grid,
  .ros-category-grid,
  .ros-color-grid,
  .ros-form-grid,
  .ros-payment-method-grid,
  .ros-repair-grid
) {
  box-sizing: border-box !important;
  float: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  text-indent: 0 !important;
}

body.ros-wizard-active :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) *,
body.ros-wizard-active :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) *::before,
body.ros-wizard-active :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) *::after,
html.ros-has-wizard body :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) *,
html.ros-has-wizard body :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) *::before,
html.ros-has-wizard body :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) *::after {
  box-sizing: border-box !important;
}

body.ros-wizard-active :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) :is(button, input, select, textarea),
html.ros-has-wizard body :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) :is(button, input, select, textarea) {
  box-sizing: border-box !important;
  float: none !important;
  max-width: 100% !important;
  font-family: inherit !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-indent: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

body.ros-wizard-active :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) :is(button, [type="button"], [type="submit"], [type="reset"], .ros-btn),
html.ros-has-wizard body :is(.ros-step-content, .ros-frontend-form, .ros-wizard-nav) :is(button, [type="button"], [type="submit"], [type="reset"], .ros-btn) {
  -webkit-appearance: none !important;
  appearance: none !important;
  font-family: inherit !important;
  text-decoration: none !important;
}

body.ros-wizard-active :is(.ros-step-content, .ros-frontend-form) :is(
  .brand-card,
  .repair-card,
  .ros-card,
  .ros-cat-card,
  .ros-category-card,
  .ros-payment-method-card,
  .ros-popular-model-card,
  .ros-preview-card
),
html.ros-has-wizard body :is(.ros-step-content, .ros-frontend-form) :is(
  .brand-card,
  .repair-card,
  .ros-card,
  .ros-cat-card,
  .ros-category-card,
  .ros-payment-method-card,
  .ros-popular-model-card,
  .ros-preview-card
) {
  box-sizing: border-box !important;
  float: none !important;
  min-width: 0 !important;
  max-width: 100% !important;
  font-family: inherit !important;
  text-indent: 0 !important;
  text-transform: none !important;
}

body.ros-wizard-active :is(.ros-step-content, .ros-frontend-form) :is(h1, h2, h3, h4, h5, h6, label, legend),
html.ros-has-wizard body :is(.ros-step-content, .ros-frontend-form) :is(h1, h2, h3, h4, h5, h6, label, legend) {
  float: none !important;
  max-width: 100% !important;
  font-family: inherit !important;
  font-style: normal !important;
  letter-spacing: normal !important;
  text-indent: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
}

body.ros-wizard-active :is(.ros-step-content, .ros-frontend-form) :is(ul, ol),
html.ros-has-wizard body :is(.ros-step-content, .ros-frontend-form) :is(ul, ol) {
  list-style-position: outside !important;
}

body.ros-wizard-active :is(.ros-step-content, .ros-frontend-form) :is(img, svg),
html.ros-has-wizard body :is(.ros-step-content, .ros-frontend-form) :is(img, svg) {
  box-sizing: border-box !important;
  float: none !important;
  max-width: 100% !important;
}

/*
 * The country-code control in the price-request popup is generated at runtime
 * outside .ros-step-content. Keep it independent from generic theme buttons.
 */
body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-field,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-field {
  display: grid !important;
  grid-template-columns: minmax(108px, 132px) minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-field.ros-phone-field--stack,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-field.ros-phone-field--stack {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-wrap,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-wrap {
  position: relative !important;
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-trigger,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-trigger {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  float: none !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 10px 10px 10px 14px !important;
  border: 2px solid #e3e3e3 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #374151 !important;
  font: 600 1rem/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif !important;
  letter-spacing: 0 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-indent: 0 !important;
  text-transform: none !important;
  text-shadow: none !important;
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-trigger:hover,
body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-trigger:active,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-trigger:hover,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-trigger:active {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #374151 !important;
  transform: none !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger *,
body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger *::before,
body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger *::after,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger *,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger *::before,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger *::after {
  box-sizing: border-box !important;
  font-family: inherit !important;
  text-transform: none !important;
  text-shadow: none !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger-main,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger-main {
  display: flex !important;
  align-items: center !important;
  flex: 1 1 auto !important;
  gap: 7px !important;
  min-width: 0 !important;
  transform: none !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger-text,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-trigger-text {
  display: inline-flex !important;
  align-items: baseline !important;
  flex: 0 0 auto !important;
  gap: 4px !important;
  min-width: max-content !important;
  white-space: nowrap !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-chevron,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-chevron {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 13px !important;
  width: 13px !important;
  min-width: 13px !important;
  height: 13px !important;
  margin: 0 0 0 auto !important;
  padding-left: 4px !important;
  color: #58657f !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-menu,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form .ros-phone-country-menu {
  box-sizing: border-box !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #374151 !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-option,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-option {
  -webkit-appearance: none !important;
  appearance: none !important;
  box-sizing: border-box !important;
  float: none !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #374151 !important;
  text-align: left !important;
  text-decoration: none !important;
  text-transform: none !important;
  text-shadow: none !important;
  transform: none !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-option:hover,
body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-option:focus,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-option:hover,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-option:focus {
  background: #f4f7fb !important;
  background-color: #f4f7fb !important;
  background-image: none !important;
  color: #1f2937 !important;
}

body.ros-wizard-active #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-option.is-selected,
html.ros-has-wizard body #ros-price-popup#ros-price-popup #ros-price-form#ros-price-form button.ros-phone-country-option.is-selected {
  background: #eef4ff !important;
  background-color: #eef4ff !important;
  background-image: none !important;
  color: #1d4f91 !important;
}
