/* Stepper devis menu — scope strict .devis-stepper (F2) */

/* ===== IT2 — base ===== */
.devis-stepper {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 32px 40px;
}

.devis-stepper .ds-reqnote {
  font-size: 12px;
  color: #8a8a8a;
  text-align: right;
  margin: 0 0 8px;
}

.devis-stepper .ds-reqnote sup {
  color: var(--prozon-accent-color, #f7b500);
}

#module-opartdevis-sendmessage .devis-stepper .ds-field,
#module-opartdevis-CreateQuotation .devis-stepper .ds-field {
  scroll-margin-top: calc(var(--height-header-desktop, 142px) + 16px);
}

@media (max-width: 767px) {
  #module-opartdevis-sendmessage .devis-stepper .ds-field,
#module-opartdevis-CreateQuotation .devis-stepper .ds-field {
    scroll-margin-top: calc(var(--height-header-mobile, 100px) + 16px);
  }
}

.devis-stepper .ds-title {
  font-family: "Russo One", sans-serif;
  font-size: 21px;
  margin: 0 0 6px;
  color: #3e3e3e;
  text-transform: none;
}

.devis-stepper .ds-sub {
  font-size: 14px;
  color: #8a8a8a;
  margin: 0 0 22px;
}

.devis-stepper .ds-field {
  margin-bottom: 20px;
}

.devis-stepper .ds-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #3e3e3e;
  margin-bottom: 6px;
}

.devis-stepper .ds-label sup {
  display: none;
}

.devis-stepper .ds-label .ds-opt {
  font-weight: 400;
  color: #8a8a8a;
}

.devis-stepper .ds-help {
  font-size: 13px;
  color: #555;
  margin: -2px 0 8px;
}

.devis-stepper .ds-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.devis-stepper .ds-row .ds-field {
  flex: 1;
  margin-bottom: 0;
}

.devis-stepper .form-group {
  margin-bottom: 0;
}

.devis-stepper .form-control {
  width: 100%;
  background: var(--prozon-grey-color, #f2f2f2);
  border: 2px solid var(--prozon-grey-color, #f2f2f2);
  border-radius: 40px;
  padding: 13px 22px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  color: #3e3e3e;
  outline: none;
  box-shadow: none;
  /* opartdevis.css : body .form-control { margin-bottom: 20px } — annule ici ;
     dans .ds-row (flex) cette marge ne collapse pas avec margin-bottom de la row → ~40px */
  margin-bottom: 0;
}

.devis-stepper .form-control:focus {
  border-color: #3e3e3e;
  background: #fff;
}

.devis-stepper textarea.form-control {
  border-radius: 16px;
  min-height: 150px;
  resize: vertical;
}

.devis-stepper #type_account_choice.ds-typegrid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.devis-stepper .ds-typecard {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  min-height: 64px;
  margin: 0;
  background: var(--prozon-grey-color, #f2f2f2);
  border: 2px solid var(--light-grey, #d7d7d7);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.devis-stepper .ds-typecard input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.devis-stepper .ds-typecard__dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--light-grey, #d7d7d7);
  background: #fff;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.devis-stepper .ds-typecard__label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  color: #3e3e3e;
}

.devis-stepper .ds-typecard:hover {
  border-color: #3e3e3e;
  background: #fafafa;
}

.devis-stepper .ds-typecard:has(input[type="radio"]:checked),
.devis-stepper .ds-typecard.is-selected {
  border-color: var(--prozon-accent-color, #f7b500);
  background: rgba(247, 181, 0, 0.08);
}

.devis-stepper .ds-typecard:has(input[type="radio"]:checked) .ds-typecard__dot,
.devis-stepper .ds-typecard.is-selected .ds-typecard__dot {
  border-color: var(--prozon-accent-color, #f7b500);
  background: radial-gradient(circle, var(--prozon-accent-color, #f7b500) 0 5px, #fff 6px);
}

.devis-stepper .ds-typecard:has(input[type="radio"]:focus-visible) {
  box-shadow: 0 0 0 3px rgba(247, 181, 0, 0.45);
  border-color: var(--prozon-accent-color, #f7b500);
}

.devis-stepper .type-account-detail {
  font-weight: 400;
  font-size: 11px;
  color: #8a8a8a;
}

.devis-stepper .ds-interests {
  display: none;
}

.devis-stepper .ds-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  clear: both;
}

.devis-stepper .ds-nav__start {
  flex: 0 0 auto;
}

.devis-stepper .ds-nav__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 0;
}

.devis-stepper .ds-nav.is-end {
  justify-content: flex-end;
}

.devis-stepper .ds-nav.is-end .ds-nav__start {
  display: none;
}

.devis-stepper .ds-nav.is-end .ds-nav__end {
  flex: 1 1 100%;
}

.devis-stepper .ds-btn {
  min-height: 44px;
  border-radius: 50px;
  font-family: "Russo One", sans-serif;
  font-size: 15px;
  padding: 11px 30px;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.2;
  text-transform: none;
}

.devis-stepper .ds-btn--primary {
  background: var(--prozon-accent-color, #f7b500);
  color: #3e3e3e;
}

.devis-stepper .ds-btn--secondary {
  background: transparent;
  color: #3e3e3e;
  border: 2px solid #3e3e3e;
}

.devis-stepper #submitMessage.btn.yellow-button {
  background: var(--prozon-accent-color, #f7b500);
  border: 2px solid transparent;
  color: #3e3e3e;
}

.devis-stepper .ds-reassure {
  border-top: 1px solid #eee;
  margin-top: 26px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.devis-stepper .ds-ritem {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.devis-stepper .ds-rpast {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(247, 181, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}

.devis-stepper .ds-rpast svg {
  width: 21px;
  height: 21px;
  stroke: var(--prozon-accent-color, #f7b500);
  fill: none;
  stroke-width: 2;
}

.devis-stepper .ds-rlabel {
  font-size: 12px;
  color: #555;
  font-weight: 600;
  line-height: 1.2;
}

/* Premier paint (avant JS) : une seule étape visible, nav cohérente étape 1 */
.devis-stepper .ds-step:not(.is-active) {
  display: none;
}

.devis-stepper:not(.ds-on-last) .ds-nav #submitMessage {
  display: none;
}

.devis-stepper:not(.ds-ready) .ds-nav__start {
  display: none;
}

/* ===== IT3 — progress + etats ===== */
.devis-stepper .ds-progress {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  height: 60px;
  margin-bottom: 28px;
}

.devis-stepper .ds-pstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
  width: 120px;
}

.devis-stepper .ds-bullet {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--light-grey, #d7d7d7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Russo One", sans-serif;
  font-size: 15px;
  color: #9b9b9b;
  background: #fff;
}

.devis-stepper .ds-plabel {
  font-size: 13px;
  font-weight: 700;
  color: #9b9b9b;
  margin-top: 8px;
  text-align: center;
  line-height: 1.15;
}

.devis-stepper .ds-conn {
  flex: 1 1 auto;
  height: 2px;
  background: #e2e2e2;
  margin-top: 15px;
}

.devis-stepper .ds-pstep.is-active .ds-bullet {
  border-color: var(--prozon-accent-color, #f7b500);
  background: rgba(247, 181, 0, 0.12);
  color: #3e3e3e;
}

.devis-stepper .ds-pstep.is-active .ds-plabel {
  color: #3e3e3e;
}

.devis-stepper .ds-pstep.is-done .ds-bullet {
  background: var(--prozon-accent-color, #f7b500);
  border-color: var(--prozon-accent-color, #f7b500);
  color: #3e3e3e;
}

.devis-stepper .ds-pstep.is-done .ds-plabel {
  color: #3e3e3e;
}

.devis-stepper.ds-ready .ds-pstep.is-clickable {
  cursor: pointer;
}

.devis-stepper.ds-ready .ds-pstep.is-clickable .ds-bullet {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.devis-stepper.ds-ready .ds-pstep.is-clickable:hover .ds-bullet,
.devis-stepper.ds-ready .ds-pstep.is-clickable:focus-visible .ds-bullet {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(247, 181, 0, 0.35);
}

.devis-stepper.ds-ready .ds-pstep.is-clickable:focus {
  outline: none;
}

.devis-stepper .ds-conn.is-fill {
  background: var(--prozon-accent-color, #f7b500);
}

.devis-stepper.ds-on-last .ds-nav .ds-next {
  display: none;
}

/* ===== IT4 — mobile ===== */
@media (max-width: 767px) {
  .devis-stepper {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 8px;
    max-width: none;
  }

  .devis-stepper.ds-ready {
    margin-bottom: 80px;
  }

  .devis-stepper .ds-progress {
    height: 54px;
    margin-bottom: 22px;
  }

  .devis-stepper .ds-bullet {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .devis-stepper .ds-plabel {
    font-size: 11px;
  }

  .devis-stepper .ds-conn {
    margin-top: 13px;
  }

  .devis-stepper .ds-row {
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
  }

  .devis-stepper .ds-row .ds-field {
    margin-bottom: 14px;
  }

  .devis-stepper #type_account_choice.ds-typegrid {
    flex-direction: column;
    gap: 10px;
  }

  .devis-stepper .ds-typecard {
    flex: 1 1 auto;
    width: 100%;
  }

  .devis-stepper .form-control {
    font-size: 16px;
    padding: 13px 18px;
  }

  .devis-stepper .ds-field {
    margin-bottom: 14px;
  }

  .devis-stepper textarea.form-control {
    font-size: 16px;
    min-height: 140px;
  }

  .devis-stepper .ds-title {
    font-size: 18px;
  }

  .devis-stepper .ds-reassure {
    flex-wrap: wrap;
    row-gap: 14px;
    margin-top: 22px;
  }

  .devis-stepper .ds-ritem {
    flex: 0 0 calc(50% - 6px);
  }

  .devis-stepper.ds-ready .ds-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid #ececec;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
    padding: 12px 18px;
    margin: 0;
    z-index: 50;
    flex-wrap: wrap;
  }

  .devis-stepper .ds-btn {
    font-size: 14px;
    padding: 11px 18px;
  }

  .devis-stepper.ds-ready .ds-nav .ds-nav__end .ds-btn--primary,
  .devis-stepper.ds-ready .ds-nav .ds-nav__end #submitMessage {
    flex: 1 1 auto;
    min-width: 0;
  }

  .devis-stepper.ds-ready .ds-nav.is-end .ds-nav__end .ds-btn--primary {
    width: 100%;
  }

  .devis-stepper.ds-ready .ds-nav .ds-back {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    padding: 11px 20px;
  }

  .devis-stepper .ds-stepcount {
    margin-bottom: 16px;
    font-size: 13px;
  }

  .devis-stepper .ds-stepcount-eta {
    font-size: 12px;
  }

  .devis-stepper .ds-block + .ds-block {
    margin-top: 20px;
    padding-top: 20px;
  }

  .devis-stepper .ds-block-title {
    font-size: 14px;
    margin-bottom: 12px;
  }

  #module-opartdevis-sendmessage #center_column,
#module-opartdevis-CreateQuotation #center_column {
    padding-bottom: 48px;
  }
}

/* ===== Polish F2 — entête, a11y, rythme, boutons, footer ===== */
#module-opartdevis-sendmessage .title-opartmessage {
  margin-bottom: 28px;
}

#module-opartdevis-sendmessage .title-opartmessage h1 {
  color: #3e3e3e;
  font-size: 24px;
}

.devis-stepper .ds-stepcount {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.3;
}

.devis-stepper .ds-stepcount-label {
  font-weight: 700;
  color: #3e3e3e;
}

.devis-stepper .ds-stepcount-eta {
  font-weight: 400;
  color: #8a8a8a;
}

.devis-stepper .ds-micro {
  font-size: 13px;
  color: #555;
  margin: -14px 0 22px;
  line-height: 1.4;
}

.devis-stepper .ds-already-client {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(247, 181, 0, 0.08);
  border-radius: 12px;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.devis-stepper .ds-already-client a {
  color: #3e3e3e;
  font-weight: 700;
  text-decoration: underline;
}

.devis-stepper .ds-already-client a:hover {
  color: var(--prozon-accent-color, #f7b500);
}

.devis-stepper .ds-block {
  margin: 0;
}

.devis-stepper .ds-block + .ds-block {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid #ececec;
}

.devis-stepper .ds-block-title {
  font-family: "Russo One", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #3e3e3e;
  text-transform: none;
  margin: 0 0 16px;
  line-height: 1.2;
}

.devis-stepper .ds-block > .ds-field:last-child,
.devis-stepper .ds-block > .ds-row:last-child {
  margin-bottom: 0;
}

.devis-stepper .ds-sronly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.devis-stepper .error-msg:empty {
  display: none;
}

/* Note "Autre pays sur demande" — sous le select Pays livraison */
#module-opartdevis-sendmessage .devis-stepper .ds-country-note,
#module-opartdevis-CreateQuotation .devis-stepper .ds-country-note {
  margin: 4px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #8a8a8a;
}

#module-opartdevis-sendmessage .devis-stepper .ds-country-note a,
#module-opartdevis-CreateQuotation .devis-stepper .ds-country-note a {
  color: #3e3e3e;
  font-weight: 600;
  text-decoration: underline;
  border-radius: 3px;
  transition: color 0.15s ease;
}

#module-opartdevis-sendmessage .devis-stepper .ds-country-note a:hover,
#module-opartdevis-CreateQuotation .devis-stepper .ds-country-note a:hover {
  color: var(--prozon-accent-color, #f7b500);
}

#module-opartdevis-sendmessage .devis-stepper .ds-country-note a:focus-visible,
#module-opartdevis-CreateQuotation .devis-stepper .ds-country-note a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(247, 181, 0, 0.45);
}

/* Typo unifiée — tous les messages d'erreur (champs + type d'entreprise) */
#module-opartdevis-sendmessage .devis-stepper .error-msg,
#module-opartdevis-CreateQuotation .devis-stepper .error-msg {
  position: static !important;
  bottom: auto !important;
  top: auto !important;
  right: auto !important;
  margin-top: 6px;
  margin-bottom: 0;
  padding: 0 !important;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--error-msg-color, #dc3545);
}

#module-opartdevis-sendmessage .devis-stepper .error-msg.type-account-error,
#module-opartdevis-CreateQuotation .devis-stepper .error-msg.type-account-error {
  display: none;
}

#module-opartdevis-sendmessage .devis-stepper .error-msg.type-account-error.is-visible,
#module-opartdevis-CreateQuotation .devis-stepper .error-msg.type-account-error.is-visible {
  display: block;
}

.devis-stepper #type_account_choice.is-error {
  box-shadow: 0 0 0 2px var(--error-msg-color, #c0392b);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 0 -12px;
}

.devis-stepper .ds-nav .ds-btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  flex: 0 0 auto;
  width: auto;
  max-width: none;
  float: none;
  margin: 0;
}

#module-opartdevis-sendmessage .devis-stepper .ds-nav .ds-back,
#module-opartdevis-CreateQuotation .devis-stepper .ds-nav .ds-back {
  appearance: none;
  -webkit-appearance: none;
  padding: 11px 28px;
  border: 2px solid #3e3e3e;
  border-radius: 50px;
  background: #fff;
  color: #3e3e3e;
  font-family: "Russo One", sans-serif;
  font-size: 15px;
  line-height: 1.2;
  text-transform: none;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
}

/* global.css impose border: #fff !important sur body .form-control — !important requis ici */
#module-opartdevis-sendmessage .devis-stepper .form-control.not-valid,
#module-opartdevis-CreateQuotation .devis-stepper .form-control.not-valid,
#module-opartdevis-sendmessage .devis-stepper input.form-control.not-valid,
#module-opartdevis-CreateQuotation .devis-stepper input.form-control.not-valid,
#module-opartdevis-sendmessage .devis-stepper textarea.form-control.not-valid,
#module-opartdevis-CreateQuotation .devis-stepper textarea.form-control.not-valid,
#module-opartdevis-sendmessage .devis-stepper select.form-control.not-valid,
#module-opartdevis-CreateQuotation .devis-stepper select.form-control.not-valid {
  border: 2px solid var(--error-msg-color, #dc3545) !important;
  background-color: #fff1f2 !important;
  color: #3e3e3e !important;
  box-shadow: none;
}

#module-opartdevis-sendmessage .devis-stepper .form-control.not-valid:focus,
#module-opartdevis-CreateQuotation .devis-stepper .form-control.not-valid:focus {
  border-color: var(--error-msg-color, #dc3545) !important;
  background-color: #fff1f2 !important;
  box-shadow: none;
}

#module-opartdevis-sendmessage .devis-stepper .ds-nav #submitMessage.btn.yellow-button,
#module-opartdevis-CreateQuotation .devis-stepper .ds-nav #submitMessage.btn.yellow-button {
  float: none !important;
  margin-bottom: 0 !important;
  padding: 11px 30px;
  font-size: 15px;
  text-transform: none;
  color: #3e3e3e !important;
  border: 2px solid transparent;
  min-height: 44px;
  width: auto;
  max-width: none;
}

#module-opartdevis-sendmessage #center_column,
#module-opartdevis-CreateQuotation #center_column {
  padding-bottom: 64px;
}

/* --- Phone prefix widget (F2 stepper) --- */
#module-opartdevis-sendmessage .devis-stepper .ds-phone,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone {
  position: relative;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__control,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  padding: 0 22px;
  box-sizing: border-box;
  background: var(--prozon-grey-color, #f2f2f2);
  border: 2px solid var(--prozon-grey-color, #f2f2f2);
  border-radius: 40px;
  box-shadow: none;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__control:focus-within,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__control:focus-within {
  border-color: #3e3e3e;
  background: #fff;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone.is-error .ds-phone__control,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone.is-error .ds-phone__control {
  border-color: var(--error-msg-color, #dc3545) !important;
  background-color: #fff1f2 !important;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__prefix,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__prefix {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 4px;
  margin: 0;
  padding: 0 12px 0 0;
  border: 0;
  background: transparent;
  color: #3e3e3e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__local,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__local {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: 13px 0 13px 10px;
  border: 0;
  background: transparent;
  color: #3e3e3e;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  outline: none;
  box-shadow: none;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__local::placeholder,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__local::placeholder {
  color: #8a8a8a;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__prefix::after,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__prefix::after {
  content: "▾";
  font-size: 9px;
  color: #888;
  margin-left: 1px;
  line-height: 1;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__prefix[aria-expanded="true"]::after,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__prefix[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__dropdown,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__dropdown {
  position: absolute;
  z-index: 1100;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 2px solid #d7d7d7;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__search.form-control,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__search.form-control {
  width: calc(100% - 20px);
  margin: 10px 10px 4px !important;
  border-radius: 8px;
  border: 0;
  padding: 10px 12px;
  font-size: 14px;
  background: #fafafa;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__list,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__list {
  list-style: none;
  margin: 0;
  padding: 6px 0;
  max-height: 240px;
  overflow-y: auto;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__option,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__option {
  display: grid;
  grid-template-columns: 34px 52px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #3e3e3e;
  cursor: pointer;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__option:hover,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__option:hover,
#module-opartdevis-sendmessage .devis-stepper .ds-phone__option.is-focused,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__option.is-focused {
  background: rgba(247, 181, 0, 0.12);
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__option.is-selected,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__option.is-selected {
  font-weight: 600;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__option-iso,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__option-iso {
  color: #3e3e3e;
  font-weight: 600;
  letter-spacing: 0.02em;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__option-dial,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__option-dial {
  color: #6b6b6b;
  font-weight: 600;
  white-space: nowrap;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__option-label,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__option-label {
  min-width: 0;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__option--other,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__option--other {
  margin-top: 6px;
  border-top: 1px solid #ececec;
  padding-top: 12px;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__option--other .ds-phone__option-label,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__option--other .ds-phone__option-label {
  font-style: italic;
  color: #555;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone--other .ds-phone__prefix,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone--other .ds-phone__prefix {
  min-width: 0;
  padding-right: 10px;
  font-weight: 600;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone--other .ds-phone__local,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone--other .ds-phone__local {
  padding-left: 0;
}

#module-opartdevis-sendmessage .devis-stepper .ds-phone__help,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__help {
  margin: 4px 0 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: #8a8a8a;
}

@media (max-width: 767px) {
  #module-opartdevis-sendmessage .devis-stepper .ds-phone__control,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__control {
    padding-right: 18px;
    padding-left: 18px;
  }

  #module-opartdevis-sendmessage .devis-stepper .ds-phone__prefix,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__prefix {
    font-size: 16px;
  }

  #module-opartdevis-sendmessage .devis-stepper .ds-phone__local,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__local {
    font-size: 16px;
    padding-left: 10px;
  }

  #module-opartdevis-sendmessage .devis-stepper .ds-phone__search.form-control,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__search.form-control {
    font-size: 16px;
  }

  #module-opartdevis-sendmessage .devis-stepper .ds-phone__list,
#module-opartdevis-CreateQuotation .devis-stepper .ds-phone__list {
    max-height: 50vh;
  }
}

/* Bloc produit — carte "produit identifié" (F2, étape 1) */
#module-opartdevis-sendmessage .devis-stepper .ds-product-card,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  padding: 0;
  margin-bottom: 22px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__header,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  background: #fafafa;
  border-bottom: 1px solid #ececec;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__media,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__media {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e6e6e6;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__media img,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__summary,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__summary {
  min-width: 0;
  margin: 0;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__badge,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
  padding: 2px 9px;
  border-radius: 30px;
  background: rgba(247, 181, 0, 0.14);
  color: #8a6400;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__badge svg,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__badge svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__name,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__name {
  margin: 0 0 4px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: #222;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__ref,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__ref {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #666;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__fields,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__fields {
  padding: 18px;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__fields > .ds-field:last-child,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__fields > .ds-field:last-child {
  margin-bottom: 0;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__qty-info,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__qty-info {
  margin-top: 8px;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card__qty-info small,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__qty-info small {
  display: inline-block;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: #666;
  background: #f2f2f2;
  border-radius: 20px;
  padding: 3px 10px;
  margin: 4px 6px 0 0;
}

#module-opartdevis-sendmessage .devis-stepper .ds-product-card input[type="file"].form-control,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card input[type="file"].form-control {
  padding: 10px 12px;
  height: auto;
  min-height: 44px;
  border-style: dashed;
  border-color: #cfcfcf;
}

@media (min-width: 768px) {
  #module-opartdevis-sendmessage .devis-stepper .ds-product-card__fields > .ds-product-card__custom {
    margin-top: 12px;
  }

  #module-opartdevis-sendmessage .devis-stepper .ds-product-card__fields > .ds-product-card__custom ~ .ds-product-card__custom {
    margin-top: 0;
  }
}

@media (max-width: 767px) {
  #module-opartdevis-sendmessage .devis-stepper .ds-product-card,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card {
    margin-bottom: 18px;
  }

  #module-opartdevis-sendmessage .devis-stepper .ds-product-card__header,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__header {
    padding: 14px;
    gap: 12px;
  }

  #module-opartdevis-sendmessage .devis-stepper .ds-product-card__media,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__media {
    width: 60px;
    height: 60px;
    border-radius: 10px;
  }

  #module-opartdevis-sendmessage .devis-stepper .ds-product-card__name,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__name {
    font-size: 15px;
  }

  #module-opartdevis-sendmessage .devis-stepper .ds-product-card__fields,
#module-opartdevis-CreateQuotation .devis-stepper .ds-product-card__fields {
    padding: 16px 14px;
  }
}

/* F2/F2bis connecté — sélection adresses dans le stepper */
#module-opartdevis-sendmessage .devis-stepper--logged #delivery_address,
#module-opartdevis-sendmessage .devis-stepper--logged .invoice_address {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#module-opartdevis-sendmessage .devis-stepper--logged .bloc-one-address {
  margin-bottom: 12px;
}

#module-opartdevis-sendmessage .devis-stepper--logged .bloc-one-address .cont {
  border: 1px solid #ececec;
  border-radius: 12px;
  padding: 14px;
  min-height: 140px;
  background: #fff;
}

#module-opartdevis-sendmessage .devis-stepper--logged .bloc-one-address.default .cont {
  border-color: var(--prozon-accent-color, #f7b500);
  box-shadow: 0 0 0 1px rgba(247, 181, 0, 0.25);
}

#module-opartdevis-sendmessage .devis-stepper--logged .f4-address-carrier-error {
  color: #c0392b;
  font-size: 13px;
  margin-top: 8px;
}

#module-opartdevis-sendmessage .devis-stepper--logged .ds-block + .ds-block {
  margin-top: 24px;
}

@media (max-width: 767px) {
  #module-opartdevis-sendmessage .devis-stepper--logged .bloc-one-address {
    width: 100%;
    float: none;
  }
}
