/* Stickerhuis WooCommerce native Order Withdrawal — visual only.
   Scoped to .shux-order-withdrawal, preventing cart/checkout/account regressions.
   Native forms, nonce, fields, validation and email handling stay untouched. */

body.woocommerce-account .shux-order-withdrawal {
  --shw-orange: #ff471f;
  --shw-black: #151515;
  --shw-muted: #666;
  --shw-border: #e9e6e4;
  --shw-soft: #f7f6f5;
  width: min(calc(100% - 40px), 1120px);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(62px, 7vw, 96px) 0 90px;
  color: var(--shw-black);
  box-sizing: border-box;
}
body.woocommerce-account .shux-order-withdrawal *,
body.woocommerce-account .shux-order-withdrawal *::before,
body.woocommerce-account .shux-order-withdrawal *::after { box-sizing: border-box; }

body.woocommerce-account .shux-order-withdrawal__header {
  margin: 0 0 32px;
  max-width: 790px;
}
body.woocommerce-account .shux-order-withdrawal__eyebrow {
  color: var(--shw-orange);
  font-size: 12px;
  letter-spacing: .12em;
  font-weight: 800;
  margin: 0 0 12px;
  line-height: 1.5;
}
body.woocommerce-account .shux-order-withdrawal__header h1 {
  color: var(--shw-black);
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  margin: 0 0 14px;
}
body.woocommerce-account .shux-order-withdrawal__header > p:last-child {
  color: #575757;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  margin: 0;
}
body.woocommerce-account .shux-order-withdrawal__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(275px, .85fr);
  align-items: start;
  gap: clamp(16px, 2vw, 26px);
}
body.woocommerce-account .shux-order-withdrawal__form {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--shw-border);
  border-radius: 24px;
  padding: clamp(23px, 3vw, 40px);
  box-shadow: 0 14px 48px rgba(0,0,0,.035);
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__intro {
  color: #232323;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  margin: 0 0 12px;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__note {
  color: #747474;
  line-height: 1.6;
  margin: 0 0 20px;
  font-size: 13px;
}

/* Step indicator */
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  list-style: none;
  gap: 8px;
  padding: 6px;
  margin: 22px 0 28px;
  background: var(--shw-soft);
  border-radius: 13px;
  color: #666;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__step {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0;
  padding: 12px 8px;
  border: 0;
  border-radius: 9px;
  font-weight: 600;
  line-height: 1.35;
  font-size: 13px;
  list-style: none;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__step--current {
  background: var(--shw-black);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

/* Form fields — keep native validation and focus semantics */
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .form-row {
  margin-bottom: 19px;
  padding: 0;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .form-row-first,
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .form-row-last {
  float: left;
  clear: none;
  width: calc(50% - 10px);
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .form-row-first { margin-right: 20px; }
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .form-row-wide { clear: both; width: 100%; }
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .form-row label {
  display: block;
  margin-bottom: 8px;
  color: #232323;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.55;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .form-row input:not([type=checkbox]):not([type=radio]):not([type=hidden]),
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm textarea,
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm select {
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  color: #191919;
  background: #f8f8f8;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm textarea {
  min-height: 120px;
  resize: vertical;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm :is(input:not([type=hidden]), textarea, select):focus-visible {
  outline: 2px solid var(--shw-orange);
  outline-offset: 2px;
  background: white;
  border-color: var(--shw-orange);
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .required { color: var(--shw-orange); }
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .woocommerce-invalid :is(input,select,textarea) {
  border-color: #be3131;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__field-error {
  display: block;
  margin: 7px 0 0;
  color: #b62525;
  font-size: 13px;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .woocommerce-order-withdrawal-content__radio-field {
  margin: 12px 0 20px;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm input[type=radio] {
  accent-color: var(--shw-orange);
  inline-size: 18px;
  block-size: 18px;
  vertical-align: middle;
  margin-right: 8px;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .woocommerce-order-withdrawal-content__radio-field label {
  margin: 12px 0;
  font-size: 14px;
  font-weight: 500;
}

/* Action buttons in both form and review screen */
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__actions {
  clear: both;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__actions .woocommerce-Button {
  appearance: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 14px 23px;
  border: 1px solid var(--shw-orange);
  border-radius: 12px;
  background: var(--shw-orange);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
  text-decoration: none;
  line-height: 1.3;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__actions .woocommerce-Button:hover { filter: brightness(.93); }
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__actions .woocommerce-Button:focus-visible { outline: 2px solid var(--shw-black); outline-offset: 3px; }
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__actions .woocommerce-order-withdrawal-content__button--secondary {
  background: #fff;
  border-color: #dedbd9;
  color: #191919;
}

/* Native review table */
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__review {
  background: var(--shw-soft);
  border-radius: 15px;
  padding: 10px 20px;
  margin: 22px 0;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__review-row {
  display: grid;
  grid-template-columns: minmax(130px, .9fr) minmax(0, 1.1fr);
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid #e3e0de;
}
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__review-row:last-child { border-bottom: 0; }
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__review-row dt { font-weight: 700; color: #333; }
body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__review-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }

/* Useful sidebar — clear without competing with the form */
body.woocommerce-account .shux-order-withdrawal__aside {
  padding: 29px 25px;
  border-radius: 22px;
  border: 1px solid #f0e5df;
  background: #fcf8f5;
}
body.woocommerce-account .shux-order-withdrawal__aside-label {
  color: var(--shw-orange);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  margin: 0 0 10px;
}
body.woocommerce-account .shux-order-withdrawal__aside h2 {
  color: var(--shw-black);
  font-size: clamp(23px, 2.2vw, 30px);
  line-height: 1.15;
  margin: 0 0 24px;
}
body.woocommerce-account .shux-order-withdrawal__timeline {
  padding: 0;
  margin: 0;
  list-style: none;
}
body.woocommerce-account .shux-order-withdrawal__timeline li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  list-style: none;
  margin: 0 0 20px;
}
body.woocommerce-account .shux-order-withdrawal__timeline li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  color: var(--shw-orange);
  border: 1px solid #f2d6cb;
  font-weight: 800;
}
body.woocommerce-account .shux-order-withdrawal__timeline strong { display: block; font-size: 13px; line-height: 1.4; }
body.woocommerce-account .shux-order-withdrawal__timeline p { color: #68625e; font-size: 12px; line-height: 1.6; margin: 5px 0 0; }
body.woocommerce-account .shux-order-withdrawal__help {
  border-top: 1px solid #e9ddd7;
  margin-top: 22px;
  padding-top: 22px;
}
body.woocommerce-account .shux-order-withdrawal__help strong { display: block; margin: 0 0 8px; font-size: 13px; }
body.woocommerce-account .shux-order-withdrawal__help p { color: #68625e; font-size: 12px; line-height: 1.6; margin: 0 0 12px; }
body.woocommerce-account .shux-order-withdrawal__help a { color: #151515; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
body.woocommerce-account .shux-order-withdrawal__help a:hover { color: var(--shw-orange); }

@media (max-width: 890px) {
  body.woocommerce-account .shux-order-withdrawal__layout { grid-template-columns: minmax(0, 1fr); }
  body.woocommerce-account .shux-order-withdrawal__aside { padding: 24px; }
  body.woocommerce-account .shux-order-withdrawal__timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
  body.woocommerce-account .shux-order-withdrawal__timeline li { margin: 0; }
}
@media (max-width: 620px) {
  body.woocommerce-account .shux-order-withdrawal { width: calc(100% - 28px); padding: 68px 0 50px; }
  body.woocommerce-account .shux-order-withdrawal__form { padding: 21px 17px; border-radius: 17px; }
  body.woocommerce-account .shux-order-withdrawal__aside { border-radius: 17px; }
  body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .form-row-first,
  body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm .form-row-last { width: 100%; float: none; margin-right: 0; }
  body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__actions { display: grid; }
  body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__actions .woocommerce-Button { width: 100%; }
  body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__review-row { grid-template-columns: 1fr; gap: 3px; }
  body.woocommerce-account .shux-order-withdrawal__timeline { display: block; }
  body.woocommerce-account .shux-order-withdrawal__timeline li { margin-bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  body.woocommerce-account .shux-order-withdrawal .woocommerce-OrderWithdrawalForm *,
  body.woocommerce-account .shux-order-withdrawal .woocommerce-order-withdrawal-content__actions .woocommerce-Button { transition: none; transform: none; }
}


/* 1.3.16 — Embedded form inside existing Elementor account layout.
   No second sidebar: original Elementor Snelle acties remains to the right. */
body.woocommerce-account .shux-order-withdrawal--embedded {
  width: 100%; max-width: none; margin: 0; padding: 0;
}
body.woocommerce-account .shux-order-withdrawal--embedded .shux-order-withdrawal__header {
  margin: 0 0 22px; max-width: none;
}
body.woocommerce-account .shux-order-withdrawal--embedded .shux-order-withdrawal__header h2 {
  color: #171717;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
  margin: 0 0 12px;
}
body.woocommerce-account .shux-order-withdrawal--embedded .shux-order-withdrawal__form {
  width: 100%; max-width: none; margin: 0;
}
body.shux-order-withdrawal-route .elementor-element-1cfd4c5 { min-width: 0; }
body.shux-order-withdrawal-route .shux-withdrawal-editor-placeholder {
  padding: 25px; border: 1px dashed #bbb; border-radius: 12px; color: #666;
}
/* Guest customers are allowed to use native Woo order withdrawal. Do not show
   logged-in account menu/first-name in this public route. The Elementor quick
   action column remains, including help/contact. These IDs are from the current
   Stickerhuis account Elementor template (page ID 13939). */
body.shux-order-withdrawal-route:not(.logged-in) .elementor-13939 .elementor-element-259f8bc,
body.shux-order-withdrawal-route:not(.logged-in) .elementor-13939 .elementor-element-cbf023d {
  display: none !important;
}
body.shux-order-withdrawal-route:not(.logged-in) .elementor-13939 .elementor-element-b8c4691 {
  padding-top: clamp(34px, 5vw, 70px);
}
@media (max-width: 620px) {
  body.woocommerce-account .shux-order-withdrawal--embedded {width:100%; padding: 0 0 30px;}
  body.woocommerce-account .shux-order-withdrawal--embedded .shux-order-withdrawal__form {padding: 20px 16px;}
}
