/*
 * Héhocom – Rétractations WooCommerce
 * Neutral front-end: black, white, greys and inherited site typography.
 */
.hwr-form-wrap {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 0;
  background: transparent;
  color: #000;
  font-size: inherit;
  line-height: 1.55;
}

.hwr-form-wrap,
.hwr-form-wrap * {
  box-sizing: border-box;
}

.hwr-header {
  margin: 0;
  padding: 0 0 24px;
  border-bottom: 1px solid #000;
}

.hwr-header h1 {
  max-width: none;
  margin: 0 0 10px;
  color: #000;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.04em;
}

.hwr-header p {
  max-width: 60ch;
  margin: 0;
}

.hwr-form fieldset {
  min-width: 0;
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.hwr-form legend,
.hwr-items-title {
  display: block;
  width: 100%;
  margin: 0 0 7px;
  padding: 0;
  color: #000;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1.3;
}

.hwr-step-intro {
  margin: 0 0 14px;
  font-size: .95rem;
}

.hwr-form p { margin: 0; }

.hwr-form label {
  display: block;
  margin: 0 0 6px;
  color: #000;
  font-size: .88rem;
  font-weight: 700;
}

.hwr-form input[type="text"],
.hwr-form input[type="email"],
.hwr-form textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  line-height: 1.35;
}

.hwr-form input:focus,
.hwr-form textarea:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

.hwr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.hwr-lookup,
.hwr-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #000;
  border-radius: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.hwr-lookup { width: 100%; margin-top: 14px; }

.hwr-lookup:hover,
.hwr-lookup:focus,
.hwr-submit:hover,
.hwr-submit:focus {
  background: #fff;
  color: #000;
}

.hwr-lookup:focus,
.hwr-submit:focus {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.hwr-lookup:disabled,
.hwr-submit:disabled,
.hwr-account-order:disabled {
  opacity: .55;
  cursor: wait;
}

.hwr-hint,
.hwr-small { font-size: .86rem; }
.hwr-hint { margin-top: 10px !important; }

/* Account order selector: deliberately explicit child classes avoid theme button styles. */
.hwr-account-order-list {
  margin: 0;
  border-top: 1px solid #000;
}

.hwr-account-order-list .hwr-account-order {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 50px;
  margin: 0 !important;
  padding: 11px 4px !important;
  column-gap: 24px;
  border: 0 !important;
  border-bottom: 1px solid #000 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #000 !important;
  box-shadow: none !important;
  cursor: pointer;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-align: left !important;
  text-decoration: none !important;
}

.hwr-account-order-list .hwr-account-order-number,
.hwr-account-order-list .hwr-account-order-date {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit !important;
  line-height: inherit !important;
  white-space: nowrap;
}

.hwr-account-order-list .hwr-account-order-number {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hwr-account-order-list .hwr-account-order-date {
  justify-self: end;
  font-weight: 400 !important;
  text-align: right !important;
}

.hwr-account-order-list .hwr-account-order-loading {
  grid-column: 1 / -1;
  display: block;
  color: inherit;
}

.hwr-account-order-list .hwr-account-order:hover,
.hwr-account-order-list .hwr-account-order:focus,
.hwr-account-order-list .hwr-account-order:focus-visible {
  padding-left: 12px !important;
  padding-right: 12px !important;
  background: #000 !important;
  color: #fff !important;
  outline: 0 !important;
}

.hwr-empty-orders {
  padding: 12px 0;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
}

.hwr-guest-details {
  margin-top: 24px;
  border-top: 1px solid #000;
}

.hwr-guest-details summary {
  padding: 13px 0;
  color: #000;
  cursor: pointer;
  font-weight: 750;
}

.hwr-guest-details[open] { padding-bottom: 2px; }
.hwr-guest-details .hwr-lookup-step { margin-top: 8px; }

.hwr-order-result { margin-top: 20px; }

.hwr-order-found,
.hwr-feedback.hwr-ok,
.hwr-feedback.hwr-error,
.hwr-error {
  padding: 11px 0;
  border-top: 1px solid #000;
  color: #000;
}

.hwr-feedback { margin: 14px 0 0; }
.hwr-feedback.hwr-error,
.hwr-error { font-weight: 700; }

/* Guest-lookup error shown in the order-result box: a clearly visible alert,
   with the message wrapped in a paragraph so it uses the theme typography. */
.hwr-order-result.hwr-error {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #b42318;
  border-left-width: 4px;
  border-top-width: 1px;
  background: #fdeceb;
  color: #7a1a12;
}
.hwr-order-result.hwr-error .hwr-order-result-text {
  margin: 0;
  font-weight: 700;
  line-height: 1.45;
}
.hwr-order-result.hwr-error .hwr-order-result-text::before {
  content: "⚠ ";
  font-weight: 900;
}

.hwr-items {
  margin-top: 0;
  padding-top: 18px;
}

.hwr-items label {
  margin: 10px 0;
  font-weight: 400;
}

.hwr-items input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: -3px;
  accent-color: #000;
}

.hwr-item-warning {
  flex: 0 0 auto;
  color: #725300;
  font-size: .8rem;
  white-space: nowrap;
}

.hwr-submit-area {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #000;
}

.hwr-declaration {
  margin: 0 0 14px;
  font-weight: 600;
}

/* The end-of-form information is visually distinct but remains quiet and readable. */
.hwr-form-end {
  margin-top: 32px;
  padding: 20px;
  background: #f3f3f3;
  color: #000;
}

.hwr-legal-box {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #000;
}

.hwr-legal-box p { margin: 8px 0 0; }
.hwr-legal-box strong { color: #000; }
.hwr-legal-box-custom { padding-top: 8px; border-top: 1px solid #bdbdbd; }
.hwr-form-end .hwr-bottom-notice { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid #bdbdbd; }
.hwr-form-end noscript .hwr-error { margin: 16px 0 0; }

.hwr-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.hwr-checkout-notice {
  display: block !important;
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  margin: 16px 0 !important;
  padding: 13px 14px !important;
  border: 1px solid #000 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #000 !important;
  font-size: .94em;
  line-height: 1.5 !important;
}

.hwr-checkout-notice a {
  color: #000 !important;
  font-weight: 800;
  text-decoration: underline;
}

.hwr-checkout-notice a:focus {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Cart variant: the notice lives inside the order-summary box, so it drops the
   heavy black frame and uses a light top separator to blend with the summary. */
.hwr-cart-notice {
  margin: 0 !important;
  padding: 16px 0 !important;
  border: 0 !important;
  border-top: 1px solid #eee !important;
  background: transparent !important;
}

@media (max-width: 650px) {
  .hwr-grid { grid-template-columns: 1fr; gap: 12px; }
  .hwr-header h1 { font-size: 2.15rem; }
  .hwr-account-order-list .hwr-account-order { column-gap: 12px; }
}

@media (max-width: 420px) {
  .hwr-account-order-list .hwr-account-order {
    grid-template-columns: 1fr !important;
    row-gap: 2px;
  }
  .hwr-account-order-list .hwr-account-order-date { justify-self: start; text-align: left !important; }
  .hwr-form-end { padding: 16px; }
}

/* Stable order rows: never replace their HTML while loading. */
.hwr-account-order-list .hwr-account-order {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative;
}
.hwr-account-order-list .hwr-account-order.is-loading {
  cursor: wait;
  opacity: .65;
}
.hwr-account-order-list .hwr-account-order.is-loading::after {
  content: '…';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25em;
}
.hwr-account-order-list .hwr-account-order.is-selected,
.hwr-account-order-list .hwr-account-order.is-selected:hover,
.hwr-account-order-list .hwr-account-order.is-selected:focus {
  padding-left: 12px !important;
  padding-right: 12px !important;
  background: #000 !important;
  color: #fff !important;
}
.hwr-account-order-list .hwr-account-order.is-selected .hwr-account-order-number,
.hwr-account-order-list .hwr-account-order.is-selected .hwr-account-order-date {
  color: #fff !important;
}

/* Optional note: an additional message is useful, but never required. */
.hwr-message-field {
  margin: 0 0 16px !important;
}
.hwr-message-field textarea {
  min-height: 108px !important;
  resize: vertical;
}
.hwr-message-field textarea::placeholder {
  color: #666;
  opacity: 1;
}

/* Feedback: colours are reserved for critical success/error states only. */
.hwr-feedback {
  display: none;
  margin: 20px 0 0 !important;
  padding: 16px 18px !important;
  border: 1px solid transparent !important;
  border-left-width: 6px !important;
  border-radius: 2px;
  font-weight: 750;
  font-size: 1rem;
  line-height: 1.5;
}
.hwr-feedback.hwr-ok,
.hwr-feedback.hwr-error { display: block; }
.hwr-feedback.hwr-ok {
  border-color: #167a3f !important;
  background: #e8f7ed !important;
  color: #0b4d25 !important;
}
.hwr-feedback.hwr-ok::before { content: "✓ "; font-weight: 900; }
.hwr-feedback.hwr-error {
  border-color: #b42318 !important;
  background: #fff0ef !important;
  color: #8a1c14 !important;
}
.hwr-feedback.hwr-error::before { content: "! "; font-weight: 900; }

/* Lightweight My Account overview: no duplicate form, no front-end JavaScript. */
.hwr-account-page { width: min(100%, 760px); color: #000; }
.hwr-account-page-header { padding: 0 0 24px; border-bottom: 1px solid #1f1f1f; }
.hwr-account-page h2 { margin: 0 0 10px; color: #000; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.1; }
.hwr-account-page h3 { margin: 0 0 14px; color: #000; font-size: 1.15rem; }
.hwr-account-page p { margin: 0; }
.hwr-account-page-header p + p { margin-top: 16px; }
.hwr-account-form-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; background: #000; color: #fff !important; text-decoration: none !important; font-weight: 750; }
.hwr-account-form-link:hover, .hwr-account-form-link:focus { background: #fff; color: #000 !important; outline: 2px solid #000; outline-offset: 2px; }
.hwr-account-requests { margin-top: 28px; }
.hwr-account-empty { padding: 14px 16px !important; background: #f3f3f3; color: #000; }
.hwr-request-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hwr-request-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; padding: 15px 16px; border: 1px solid #d3d3d3; background: #fff; color: #000; overflow-wrap: anywhere; }
.hwr-request-card > div { min-width: 0; }
.hwr-request-card strong { color: #000; overflow-wrap: anywhere; }
.hwr-request-reference { margin-left: 7px; color: #666; font-size: .85em; overflow-wrap: anywhere; word-break: break-all; }
.hwr-request-card small { grid-column: 1 / -1; color: #444; overflow-wrap: anywhere; }
.hwr-request-status { align-self: center; padding: 4px 8px; border-radius: 99px; font-size: .82rem; font-weight: 750; white-space: nowrap; }
.hwr-status-received { background: #e8f2ff; color: #124e8c; }
.hwr-status-under_review { background: #fff4d6; color: #725300; }
.hwr-status-accepted { background: #e8f7ed; color: #0b4d25; }
@media (max-width: 480px) { .hwr-request-card { grid-template-columns: 1fr; } .hwr-request-status { justify-self: start; } }
@media (max-width: 360px) {
  .hwr-request-card { padding: 13px 12px; gap: 6px 10px; }
  /* Put the long internal reference on its own line so it can never push the
     card wider than the screen. */
  .hwr-request-reference { display: block; margin-left: 0; margin-top: 2px; }
}

/* Dedicated page template: works even when the theme's default template does not output editor content. */
.hwr-page-template {
	width: min(100% - 32px, 1100px);
	margin: 48px auto;
}
@media (max-width: 640px) {
	.hwr-page-template {
		width: min(100% - 24px, 1100px);
		margin: 28px auto;
	}
}

/* Current requests on the public form: concise account-only summary. */
.hwr-form-current-requests {
  margin: 24px 0 0;
  padding: 18px;
  border: 1px solid #d3d3d3;
  background: #f7f7f7;
  color: #000;
}
.hwr-form-current-requests h2 {
  margin: 0 0 6px;
  color: #000;
  font-size: 1.05rem;
  font-weight: 800;
}
.hwr-form-current-requests > p { margin: 0 0 14px; font-size: .92rem; }
.hwr-form-current-requests .hwr-request-list { gap: 8px; }
.hwr-form-current-requests .hwr-request-card { background: #fff; }

/* Status colours only: they make the real stage of the request easy to scan. */
.hwr-status-return_expected { background: #fff4d6; color: #725300; }
.hwr-status-return_received { background: #e7f2ff; color: #124e8c; }
.hwr-status-refund_processing { background: #f0e9ff; color: #5b2a86; }
.hwr-status-refunded { background: #e8f7ed; color: #0b4d25; }
.hwr-status-refused,
.hwr-status-cancelled { background: #fff0ef; color: #8a1c14; }
.hwr-status-closed { background: #ececec; color: #333; }


/* Theme-hardening: some themes apply white text to generic paragraphs/spans.
 * Keep every informational area readable, without altering selected buttons
 * or the success/error status colours below. */
.hwr-form-wrap .hwr-header p,
.hwr-form-wrap .hwr-form-current-requests,
.hwr-form-wrap .hwr-form-current-requests p,
.hwr-form-wrap .hwr-form-current-requests h2,
.hwr-form-wrap .hwr-form-current-requests li,
.hwr-form-wrap .hwr-form-current-requests div,
.hwr-form-wrap .hwr-form-current-requests strong,
.hwr-form-wrap .hwr-form-current-requests small,
.hwr-form-wrap .hwr-form-end,
.hwr-form-wrap .hwr-form-end p,
.hwr-form-wrap .hwr-form-end strong,
.hwr-form-wrap .hwr-form-end span,
.hwr-form-wrap .hwr-form-end div,
.hwr-form-wrap .hwr-form-end aside,
.hwr-form-wrap .hwr-step-intro,
.hwr-form-wrap .hwr-hint,
.hwr-form-wrap .hwr-declaration,
.hwr-form-wrap .hwr-message-field,
.hwr-form-wrap .hwr-message-field label,
.hwr-form-wrap .hwr-items,
.hwr-form-wrap .hwr-items label,
.hwr-form-wrap .hwr-guest-details summary {
  color: #000 !important;
  text-shadow: none !important;
}

.hwr-form-wrap .hwr-form-end a {
  color: #000 !important;
  text-decoration: underline;
}

/* Preserve contrast of the current selection even with aggressive theme rules. */
.hwr-form-wrap .hwr-account-order.is-selected,
.hwr-form-wrap .hwr-account-order.is-selected *,
.hwr-form-wrap .hwr-account-order:hover,
.hwr-form-wrap .hwr-account-order:hover *,
.hwr-form-wrap .hwr-account-order:focus,
.hwr-form-wrap .hwr-account-order:focus * {
  color: #fff !important;
}

.hwr-form-wrap .hwr-feedback.hwr-ok {
  color: #0b4d25 !important;
}
.hwr-form-wrap .hwr-feedback.hwr-error {
  color: #8a1c14 !important;
}


/* Regulatory model withdrawal form: available without a print control. */
.hwr-form-wrap .hwr-model-form {
  margin-top: 14px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #000;
}
.hwr-form-wrap .hwr-model-form > summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  color: #000 !important;
}
.hwr-form-wrap .hwr-model-form-inner {
  padding: 0 14px 16px;
  color: #000 !important;
}
.hwr-form-wrap .hwr-model-form-inner h2,
.hwr-form-wrap .hwr-model-form-inner p,
.hwr-form-wrap .hwr-model-form-inner strong {
  color: #000 !important;
}
.hwr-form-wrap .hwr-model-form-inner h2 { margin: 4px 0 8px; font-size: 1.08rem; }
.hwr-form-wrap .hwr-model-lines { margin-top: 14px; }
.hwr-form-wrap .hwr-model-lines p { margin: 10px 0; }
.hwr-form-wrap .hwr-model-lines span {
  display: block;
  min-height: 26px;
  margin-top: 4px;
  border-bottom: 1px solid #000;
}
.hwr-form-wrap .hwr-model-online { margin: 16px 0 0; }
.hwr-form-wrap .hwr-model-online a { color: #000 !important; font-weight: 700; text-decoration: underline; }

/* ── Rétractation 3-clics : quantité, récapitulatif (modal), confirmation ── */
.hwr-form-wrap {
  --hwr-success: #167a3f;
  --hwr-success-bg: #edf9f1;
  --hwr-success-text: #0b4d25;
}

/* Items step: compact toolbar (filter, select-all, counter) above a dense,
   single-line list that stays readable even for orders with many lines. */
.hwr-items-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 6px 0 10px;
}
.hwr-items-search { flex: 1 1 220px; min-width: 0; }
.hwr-items-filter {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
}
.hwr-items-actions {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  flex-wrap: wrap;
}
.hwr-items-selectall {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-weight: 700;
  white-space: nowrap;
}
.hwr-items-selectall input[type="checkbox"] {
  width: 18px; height: 18px; margin: 0; accent-color: #000;
}
.hwr-items-count {
  color: #555;
  font-size: .85rem;
  white-space: nowrap;
}

.hwr-items-list { border-top: 1px solid #000; }
/* Cap the height for long lists so the "Continuer" button stays reachable. */
.hwr-items-scroll {
  max-height: 340px;
  overflow-y: auto;
  border-bottom: 1px solid #000;
  /* Keep content clear of the scrollbar so "commandé : N" stays readable. */
  padding-right: 12px;
}

.hwr-item-row[hidden] { display: none !important; }
.hwr-item-row {
  display: flex;
  align-items: flex-start;
  gap: 10px 14px;
  padding: 11px 2px;
  border-bottom: 1px solid #e5e5e5;
}
.hwr-item-row:last-child { border-bottom: 0; }
/* The label holds the checkbox + name + "ordered: N" and takes the free space. */
.hwr-item-check {
  display: flex !important;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 4px 10px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  font-weight: 400;
  line-height: 1.4;
  cursor: pointer;
}
.hwr-item-check input[type="checkbox"] {
  flex: 0 0 auto;
  width: 18px; height: 18px; margin: 2px 0 0; accent-color: #000;
}
/* Long product names wrap onto several lines instead of being truncated. */
.hwr-item-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hwr-item-ordered {
  flex: 0 0 auto;
  align-self: flex-start;
  color: #777;
  font-size: .82rem;
  white-space: nowrap;
}
/* Inline quantity control, right-aligned, appears when the item is ticked. */
.hwr-item-qty-field[hidden] { display: none !important; }
.hwr-item-qty-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.hwr-item-qty-label {
  margin: 0 !important;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}
.hwr-item-sub {
  display: block;
  margin: 0 0 4px;
  font-size: .82rem;
  font-weight: 700;
}
.hwr-received-hint { font-weight: 400; color: #555; margin-top: 6px; }
.hwr-item-qty,
.hwr-reason-field select,
.hwr-form select {
  max-width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
}
/* Full-width dropdowns (like the return reason) must never exceed their
   container, otherwise the native arrow gets clipped on narrow screens. */
.hwr-reason-field select,
.hwr-form select {
  display: block;
  width: 100%;
  box-sizing: border-box;
}
.hwr-item-qty { width: auto; min-height: 38px; padding: 6px 8px; }
.hwr-reason-field { margin-top: 16px; min-width: 0; }
.hwr-form input[type="date"] {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
}
.hwr-received-field { margin-bottom: 18px; }

/* ── Écran récapitulatif : fenêtre modale (2ᵉ clic) ── */
/* Overlay covers the viewport so the review step reads as a distinct action,
   clearly separated from the initial data entry underneath. */
.hwr-review[hidden] { display: none !important; }
.hwr-review {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(0, 0, 0, .55);
  -webkit-overflow-scrolling: touch;
}
.hwr-review-dialog {
  position: relative;
  width: min(100%, 560px);
  margin: auto;
  padding: 26px 26px 24px;
  background: #fff;
  color: #000;
  border: 1px solid #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  animation: hwr-review-in .18s ease-out;
  font-size: inherit;
  line-height: 1.55;
}
@keyframes hwr-review-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hwr-review-title {
  margin: 0 0 8px;
  padding-right: 34px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.hwr-review-intro { margin: 0 0 18px; font-size: .93rem; }
.hwr-review-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #000;
  border-radius: 0;
  background: #fff;
  color: #000;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
}
.hwr-review-close:hover,
.hwr-review-close:focus { background: #000; color: #fff; }
.hwr-review-list { margin: 0 0 22px; border-top: 1px solid #000; }
.hwr-review-row {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(0, 1fr);
  gap: 4px 20px;
  padding: 11px 0;
  border-bottom: 1px solid #ddd;
}
.hwr-review-label { font-weight: 700; }
.hwr-review-value { word-break: break-word; }
.hwr-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hwr-modify,
.hwr-final-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid #000;
  border-radius: 0;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
}
.hwr-modify { background: #fff; color: #000; }
.hwr-modify:hover,
.hwr-modify:focus { background: #000; color: #fff; }
.hwr-final-submit { background: #000; color: #fff; flex: 1 1 auto; }
.hwr-final-submit:hover,
.hwr-final-submit:focus { background: #fff; color: #000; }
.hwr-final-submit:disabled { opacity: .55; cursor: wait; }
.hwr-review .hwr-feedback { margin-top: 16px !important; }

/* ── Écran de confirmation (post-envoi) ── */
.hwr-confirmation[hidden] { display: none !important; }
.hwr-confirmation {
  margin-top: 24px;
  padding: 30px 26px;
  border: 2px solid var(--hwr-success);
  background: var(--hwr-success-bg);
  color: var(--hwr-success-text);
  text-align: center !important;
}
.hwr-confirmation * { text-align: center !important; }
.hwr-confirmation-title {
  margin: 0 auto 12px !important;
  color: var(--hwr-success-text);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.hwr-confirmation-title::before {
  content: "✓";
  display: block;
  margin: 0 auto 8px;
  width: 46px;
  height: 46px;
  line-height: 46px;
  border-radius: 50%;
  background: var(--hwr-success);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 900;
}
.hwr-confirmation-text {
  margin: 0 auto !important;
  max-width: 46ch;
  color: var(--hwr-success-text);
  line-height: 1.55;
}

/* ── Détails enrichis des demandes en cours ── */
.hwr-request-details {
  grid-column: 1 / -1;
  margin-top: 4px;
  border-top: 1px solid #e5e5e5;
  padding-top: 8px;
}
.hwr-request-details > summary {
  cursor: pointer;
  font-size: .86rem;
  font-weight: 700;
  color: #124e8c;
  list-style: none;
}
.hwr-request-details > summary::-webkit-details-marker { display: none; }
.hwr-request-details > summary::before {
  content: "▸ ";
  display: inline-block;
  transition: transform .15s ease;
}
.hwr-request-details[open] > summary::before { content: "▾ "; }
.hwr-request-detail-list {
  display: grid;
  grid-template-columns: minmax(0, 150px) minmax(0, 1fr);
  gap: 4px 16px;
  margin: 10px 0 0;
}
.hwr-request-detail-list dt { font-weight: 700; color: #000; font-size: .85rem; }
.hwr-request-detail-list dd { margin: 0; color: #333; font-size: .85rem; word-break: break-word; }

/* Étend la palette de statuts déjà présente. */
.hwr-status-return_expected { background: #fff4d6; color: #725300; }
.hwr-status-return_received { background: #e8f2ff; color: #124e8c; }
.hwr-status-refund_processing { background: #efe8ff; color: #5a2ca0; }
.hwr-status-refunded { background: #e8f7ed; color: #0b4d25; }
.hwr-status-refused,
.hwr-status-cancelled { background: #fdecec; color: #8a1c14; }
.hwr-status-closed { background: #eee; color: #444; }

@media (max-width: 540px) {
  .hwr-review-row { grid-template-columns: 1fr; }
  .hwr-review-actions { flex-direction: column-reverse; }
  .hwr-modify, .hwr-final-submit { width: 100%; }
  .hwr-request-detail-list { grid-template-columns: 1fr; }
  /* On phones, give the product name the full width and drop the quantity
     control onto its own line so nothing is cramped or truncated. */
  .hwr-item-row { flex-wrap: wrap; }
  .hwr-item-check { flex: 1 1 100%; }
  .hwr-item-qty-field {
    flex: 1 1 100%;
    margin-left: 28px;
  }
}

.hwr-required { color: #b42318; font-weight: 700; }
