/* Thotika - Opart Devis. Theme-only presentation, no business logic. */
body[id^="module-opartdevis-"] #main { width: min(100%, 1150px); margin: 24px auto 60px; }
body[id^="module-opartdevis-"] #main > .page-content:has(.th-quote) {
  max-width: none; padding: clamp(18px, 3vw, 36px); border: 1px solid #dbe7e2;
  border-radius: 20px; background: #fff; box-shadow: 0 4px 19px rgb(16 63 64 / 3%);
}
.th-quote { --tq-ink: #114343; --tq-border: #dbe7e2; --tq-muted: #53706a; color: var(--tq-ink); min-width: 0; text-align: left; }
.th-quote h1, .th-quote h2, .th-quote h3, .th-quote h4 { font-family: "CabinetGrotesk", sans-serif; color: var(--tq-ink); text-transform: none; letter-spacing: -.02em; }
.th-quote h1 { margin: 0 0 28px; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
body[id^="module-opartdevis-"] .th-quote > h1 { text-align: left; }
.th-quote .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.th-quote .collapse:not(.show):not(.in) { display: none; }
.th-quote .collapse.show, .th-quote .collapse.in { display: block; }
.th-quote h4 { font-size: 21px; margin: 24px 0 16px; }
.th-quote p { color: inherit; line-height: 1.6; }
.th-quote .btn, a.th-quote-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; max-width: 100%; padding: 11px 18px; border: 1px solid #bad9cc;
  border-radius: 10px; background: #fff; color: #114343; box-shadow: none;
  font-family: "Satoshi", Arial, sans-serif; font-size: 14px; font-weight: 700;
  line-height: 1.4; text-transform: none; white-space: normal; text-align: center;
  text-decoration: none; transition: background-color .15s, border-color .15s;
}
.th-quote .btn-primary { background: #44f1a6; border-color: #44f1a6; color: #114343; }
.th-quote .btn:hover, a.th-quote-button:hover { background: #eef8f3; border-color: #114343; color: #114343; }
.th-quote .btn-primary:hover { background: #114343; border-color: #114343; color: #fff; }
.th-quote .btn-outline-danger { color: #a43328; border-color: #e9ccc8; }
.th-quote .btn-outline-danger:hover { color: #8c281e; background: #fff4f2; border-color: #a43328; }
.th-quote :is(a, button, input, select, textarea, [tabindex]):focus-visible,
a.th-quote-button:focus-visible { outline: 3px solid #114343; outline-offset: 3px; }
.th-quote .material-icons { font-size: 20px; }
.th-quote .alert, .th-quote-notice.alert { padding: 16px 20px; border: 1px solid #bad9cc; border-radius: 12px; background: #eef8f3; color: #114343; }
.th-quote .alert-warning, .th-quote-notice.alert-warning { background: #fff8eb; border-color: #ead5a8; color: #714f14; }
.th-quote .alert-danger { background: #fff4f2; border-color: #e9ccc8; color: #8c281e; }
.th-quote .alert p:last-child, .th-quote-notice p:last-child { margin-bottom: 0; }
.th-quote form { margin: 0; }
.th-quote .card, .th-quote .panel { margin: 24px 0; border: 1px solid var(--tq-border); border-radius: 14px; background: #fff; box-shadow: none; overflow: hidden; }
.th-quote .card-header, .th-quote .panel-heading { padding: 16px 20px; border: 0; border-bottom: 1px solid var(--tq-border); background: #f1f8f5; color: var(--tq-ink); font-family: "CabinetGrotesk", sans-serif; font-size: 21px; font-weight: 700; }
.th-quote .card-body, .th-quote .panel-body { padding: 22px 20px; }
.th-quote .card-body > br { display: none; }
.th-quote label { color: var(--tq-ink); font-size: 14px; font-weight: 700; text-align: left; }
.th-quote .form-group { margin-bottom: 22px; }
.th-quote .form-group:last-child { margin-bottom: 0; }
.th-quote .form-control { width: 100%; max-width: 100%; min-width: 0; height: auto; min-height: 48px; padding: 12px 14px; border: 1px solid #c7d9d1; border-radius: 9px; background-color: #fff; color: #244a4a; box-shadow: none; font-family: inherit; font-size: 15px; line-height: 1.5; }
.th-quote select.form-control { padding-right: 32px; }
.th-quote .form-control:focus { border-color: #114343; box-shadow: 0 0 0 3px rgb(68 241 166 / 18%); }
.th-quote #opartDevisForm textarea { height: auto; min-height: 112px; resize: vertical; }
.th-quote .help-block, .th-quote .form-text { display: block; margin: 8px 0 0; color: var(--tq-muted); font-size: 13px; line-height: 1.5; }
.th-quote--create .card-body .form-group.row { display: grid; grid-template-columns: minmax(130px, 1fr) minmax(0, 3fr); align-items: start; gap: 18px; margin-left: 0; margin-right: 0; }
.th-quote--create .card-body .form-group.row > * { width: 100%; max-width: none; padding: 0; }
.th-quote--create .card-body .control-label { padding-top: 12px !important; }
.th-quote--request .panel-body > .form-group { display: flex; flex-wrap: wrap; gap: 20px; }
.th-quote--request .panel-body > .form-group > div { float: none; flex: 1 1 220px; width: auto; padding: 0; }
.th-quote--request .panel-body > .clear_fix > div { flex-basis: 100%; }
.th-quote input[type="file"] { display: block; max-width: 100%; padding: 12px; border: 1px dashed #bad9cc; border-radius: 9px; background: #f5fbf8; color: #244a4a; }
.th-quote input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 12px; border: 0; border-radius: 6px; background: #114343; color: #fff; cursor: pointer; }
.th-quote .cart_navigation, .th-quote .footer_links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 24px 0 0; padding: 0; }
.th-quote .cart_navigation > button { margin-left: auto; }
.th-quote .cart_navigation .g-recaptcha { flex: 1 0 100%; width: auto; padding: 0; }
.th-quote .cart_navigation .g-recaptcha ~ button { margin-left: 0; }
.th-quote-table { width: 100%; overflow-x: auto; margin-bottom: 22px; border: 1px solid var(--tq-border); border-radius: 12px; scrollbar-color: #bad9cc #f1f8f5; }
.th-quote .th-quote-table-hint { display: none; margin: 0 0 10px; color: var(--tq-muted); font-size: 12px; }
.th-quote #cart_summary { min-width: 700px; width: 100%; margin: 0; border: 0; color: #244a4a; font-size: 14px; }
.th-quote #opartDevisForm #cart_summary thead th { padding: 14px 12px; border: 0; background: #114343; color: #fff; font-size: 12px; font-weight: 700; vertical-align: middle; }
.th-quote #cart_summary td { padding: 14px 12px; border: 0; border-bottom: 1px solid #e5eeea; vertical-align: top; }
.th-quote #cart_summary tbody tr:nth-child(even) { background: #f6faf8; }
.th-quote #cart_summary td:first-child { min-width: 220px; }
.th-quote #cart_summary td:not(:first-child) { font-variant-numeric: tabular-nums; }
.th-quote #cart_summary tfoot td { padding: 10px 12px; background: #f1f8f5; }
.th-quote #cart_summary tfoot tr:last-child td { padding: 16px 12px; background: #c8fbe4; color: #114343; font-size: 17px; font-weight: 700; }
.th-quote-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.th-quote-toolbar p { flex: 1 1 260px; margin: 0; color: var(--tq-muted); font-size: 14px; }
.th-quote-list { display: grid; gap: 18px; }
.th-quote-item { min-width: 0; padding: 24px; border: 1px solid var(--tq-border); border-radius: 15px; background: #fff; }
.th-quote-item__heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.th-quote-item__identity { min-width: 0; }
.th-quote .th-quote-eyebrow { margin: 0 0 6px; color: var(--tq-muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.th-quote-item h2 { margin: 0; font-size: 24px; line-height: 1.3; overflow-wrap: anywhere; }
.th-quote-status { flex-shrink: 0; padding: 6px 12px; border-radius: 20px; background: #eef8f3; color: #114343; font-size: 12px; font-weight: 700; }
.th-quote-rename { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 1px solid #dbe7e2; border-radius: 8px; background: #fff; color: #53706a; vertical-align: middle; cursor: pointer; }
.th-quote-rename:hover { background: #eef8f3; color: #114343; }
.th-quote-rename-form { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px; margin-top: 16px; border-radius: 10px; background: #f1f8f5; }
.th-quote-rename-form label { flex-basis: 100%; }
.th-quote-rename-form input { flex: 1 1 180px; width: auto; }
.th-quote-item__dates { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 20px; color: var(--tq-muted); font-size: 13px; }
.th-quote-item__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; border-top: 1px solid #e5eeea; }
.th-quote-item__actions .th-quote-delete { margin-left: auto; }
.th-quote-empty { padding: 38px 20px; border: 1px dashed #bad9cc; border-radius: 14px; background: #f5fbf8; text-align: center; }
.th-quote-empty > .material-icons { font-size: 42px; color: #53706a; }
.th-quote-empty h2 { margin: 16px 0 8px; font-size: 26px; }
/* Confirmation : le document, puis le suivi du projet. */
body[id^="module-opartdevis-"] #main:has(.th-quote--confirm) { max-width: 920px; }
body[id^="module-opartdevis-"] #main > .page-content:has(.th-quote--confirm) { padding: clamp(28px, 5vw, 52px) clamp(20px, 4vw, 48px) 0; }
.th-quote--confirm { text-align: center; }
.th-quote-confirm__header { max-width: 560px; margin: 0 auto; }
.th-quote-confirm__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: 0 auto 22px; border: 1px solid #bad9cc; border-radius: 50%; background: #e5fbf0; color: #114343; }
.th-quote .th-quote-confirm__eyebrow { margin: 0 0 10px; color: #53706a; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.th-quote--confirm .th-quote-confirm__header h1 { margin: 0 0 14px; font-size: clamp(28px, 4vw, 38px); line-height: 1.15; text-align: center; }
.th-quote .th-quote-confirm__description { max-width: 470px; margin: 0 auto; color: #53706a; font-size: 15px; line-height: 1.7; }
.th-quote-confirm__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 36px; }
.th-quote-confirm__actions .btn { min-height: 48px; padding: 12px 22px; }
.th-quote-confirm__actions svg { flex-shrink: 0; }
.th-quote-confirm__navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; padding: 22px 0; border-top: 1px solid #e5eeea; }
.th-quote-confirm__navigation a { color: #53706a; font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 3px; }
.th-quote-confirm__navigation a:hover { color: #114343; }
.th-quote-cart-action { margin: 16px 0; text-align: center; }
.th-quote-cart-action .th-quote-button { width: 100%; }
#HOOK_SHOPPING_CART_EXTRA a.th-quote-button { float: none; margin-top: 12px; }
/* Opart injecte son avis entre produits et recapitulatif dans le hook Footer.
   Seul un panier avec cet avis passe en grille : le message occupe une ligne. */
body#cart .container_cart_details:has(> .th-quote-notice) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 18px;
  align-items: start;
}
body#cart .container_cart_details > .th-quote-notice {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  min-width: 0;
  margin: 0;
  padding: 18px 22px;
  font-size: 14px;
  line-height: 1.6;
}
body#cart .container_cart_details > .th-quote-notice p { margin: 0; }
body#cart .container_cart_details > .th-quote-notice p:first-child { flex: 1 1 420px; }
body#cart .container_cart_details > .th-quote-notice p:last-child { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
body#cart .container_cart_details:has(> .th-quote-notice) > .cart-overview {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
}
body#cart .container_cart_details:has(> .th-quote-notice) > .cart-grid-right {
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
  width: auto;
}
/* Le module renvoie le meme avis dans le recapitulatif des devis verrouilles.
   Garder un seul message visible, et conserver le marqueur de protection DOM. */
body#cart .container_cart_details:has(> .th-quote-notice) > .cart-grid-right .th-quote-notice { display: none; }
@media (max-width: 1200px) {
  body#cart .container_cart_details:has(> .th-quote-notice) { grid-template-columns: minmax(0, 1fr); }
  body#cart .container_cart_details:has(> .th-quote-notice) > .cart-grid-right { grid-column: 1; grid-row: 3; }
  body#cart .container_cart_details > .th-quote-notice { padding: 16px; }
}
@media (max-width: 767px) {
  .th-quote-confirm__actions { margin-bottom: 28px; }
  .th-quote-confirm__actions .btn { width: 100%; }
  .th-quote .th-quote-table-hint { display: block; }
  body[id^="module-opartdevis-"] #main { margin-top: 12px; }
  .th-quote--create .card-body .form-group.row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .th-quote--create .card-body .control-label { padding-top: 0 !important; }
  .th-quote .card-body, .th-quote .panel-body { padding: 18px 16px; }
  .th-quote-item { padding: 18px 16px; }
  .th-quote-item__heading { flex-wrap: wrap; gap: 10px; }
  .th-quote-item__actions .btn { flex: 1 1 145px; }
  .th-quote-item__actions .th-quote-delete { margin-left: 0; }
  .th-quote .cart_navigation > .btn, .th-quote .cart_navigation > button { width: 100%; margin-left: 0; }
  .th-quote .cart_navigation > button { order: -1; }
  .th-quote .cart_navigation:has(.g-recaptcha) > button { order: 0; }
}
#opartdevis-modal .modal-content { border: 1px solid #bad9cc; border-radius: 14px; overflow: hidden; box-shadow: 0 8px 30px rgb(17 67 67 / 15%); }
#opartdevis-modal .modal-header { padding: 24px; border: 0; background: #eef8f3; color: #114343; }
#opartdevis-modal .modal-title { margin: 0; font-family: "Satoshi", Arial, sans-serif; font-size: 16px; line-height: 1.6; text-transform: none; }
@media (prefers-reduced-motion: reduce) { .th-quote .btn, a.th-quote-button { transition: none; } }
