/* Withdrawal Manager - front */
/* --wm-primary viene impostato inline dal controller col colore del tema del negozio */
#wm-withdrawal { --wm-primary: #2d6cdf; --wm-primary-dark: #1f57bd; }
.wm-wrapper { max-width: 780px; margin: 0 auto; padding: 1.5rem 1rem 3rem; color: #2b2f36; }
.wm-head { text-align: center; margin-bottom: 1.75rem; }
.wm-title { margin: 0 0 .35rem; font-size: 1.9rem; }
.wm-subtitle { color: #6b7280; margin: 0; font-size: .98rem; }

/* Honeypot: invisibile agli umani */
.wm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Step indicator */
.wm-steps { display: flex; list-style: none; padding: 0; margin: 0 0 1.5rem; gap: .4rem; flex-wrap: wrap; counter-reset: wm; }
.wm-steps li { flex: 1 1 0; min-width: 120px; display: flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .6rem .4rem; font-size: .9rem; color: #9aa1a9; background: #f3f4f6; border-radius: 8px; font-weight: 500; }
.wm-steps li span { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 50%; background: #d7dbe0; color: #fff; font-size: .8rem; font-weight: 700; }
.wm-steps li.is-active { color: #fff; background: var(--wm-primary); }
.wm-steps li.is-active span { background: #fff; color: var(--wm-primary); }
.wm-steps li.is-done:not(.is-active) { color: var(--wm-primary); background: #eef2f7; }
.wm-steps li.is-done:not(.is-active) span { background: var(--wm-primary); }

/* Card */
.wm-card { background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: 1.75rem; box-shadow: 0 1px 3px rgba(16,24,40,.04); }
.wm-intro { color: #555; margin: 0 0 1.25rem; }

/* Fields */
.wm-field { margin-bottom: 1.2rem; }
.wm-field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .92rem; }
.wm-field input, .wm-field textarea { width: 100%; padding: .6rem .75rem; border: 1px solid #cfd4da; border-radius: 8px; font-size: 1rem; }
.wm-field input:focus, .wm-field textarea:focus { outline: none; border-color: var(--wm-primary); box-shadow: 0 0 0 3px rgba(0,0,0,.08); }
.wm-muted { color: #8a9099; }

/* Products table */
.wm-products { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.wm-products th, .wm-products td { padding: .7rem .5rem; border-bottom: 1px solid #eef0f2; vertical-align: middle; text-align: left; }
.wm-products th { font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: #8a9099; }
.wm-products .wm-c { text-align: center; }
.wm-qty { width: 84px; text-align: center; padding: .45rem; border: 1px solid #cfd4da; border-radius: 8px; }
.wm-check { font-weight: 500; cursor: pointer; }

/* Buttons */
.wm-btn { display: inline-block; border: 0; border-radius: 8px; padding: .7rem 1.4rem; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.wm-btn--primary { background: var(--wm-primary); color: #fff; }
.wm-btn--primary:hover { background: var(--wm-primary-dark); }
.wm-btn--lg { width: 100%; padding: .9rem; font-size: 1.05rem; margin-top: .5rem; }

/* Consent */
.wm-consent { display: flex; align-items: flex-start; gap: .6rem; font-weight: 500; cursor: pointer; margin: 1rem 0; padding: 1rem; background: #f8f9fb; border: 1px solid #e6e8eb; border-radius: 8px; }
.wm-consent input { margin-top: .2rem; width: 18px; height: 18px; flex: 0 0 auto; }
.wm-summary { padding-left: 1.2rem; line-height: 1.7; }

/* Alerts */
.wm-alert { border-radius: 8px; padding: .85rem 1.1rem; margin-bottom: 1.25rem; font-size: .95rem; }
.wm-alert ul { margin: 0; padding-left: 1.2rem; }
.wm-alert--error { background: #fdecec; color: #b42318; border: 1px solid #f5c6c2; }
.wm-alert--info { background: #eaf2fe; color: #1f57bd; border: 1px solid #c5dbfb; }
.wm-alert--success { background: #e9f7ef; color: #1b7a43; border: 1px solid #bfe6cf; }
.wm-alert--warning { background: #fef6e7; color: #92610a; border: 1px solid #f6e0a8; }

/* Receipt */
.wm-receipt { background: #f8f9fb; border: 1px solid #e6e8eb; border-radius: 10px; padding: 1.25rem 1.5rem; }
.wm-receipt-row { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px dashed #e2e5e9; }
.wm-receipt-row span { color: #6b7280; }
.wm-receipt-products { padding: .6rem 0; }
.wm-receipt-products span { color: #6b7280; }
.wm-receipt-products ul { margin: .35rem 0 0; padding-left: 1.2rem; }
.wm-hash { margin-top: .75rem; }
.wm-hash span { display: block; color: #6b7280; font-size: .85rem; margin-bottom: .25rem; }
.wm-hash code { word-break: break-all; font-size: .78rem; color: #444; background: #eef0f2; padding: .15rem .35rem; border-radius: 4px; }

/* Legal panel */
.wm-legal { margin-top: 1.5rem; background: #fbfcfd; border: 1px solid #e6e8eb; border-radius: 12px; padding: 1.4rem 1.6rem; font-size: .92rem; color: #4b5159; }
.wm-legal h2 { font-size: 1.05rem; margin: 0 0 .75rem; color: #2b2f36; }
.wm-legal p { margin: .4rem 0; }
.wm-seller { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #e6e8eb; line-height: 1.6; }
.wm-legal-extra { margin: .6rem 0; }
.wm-legal-note { margin-top: 1.5rem; color: #9aa1a9; text-align: center; }

/* Informativa precontrattuale — CSS blindato (vince sui temi: !important mirati) */
.wm-notice { margin: 1rem 0 !important; padding: 0 !important; }
.wm-notice, .wm-notice * { box-sizing: border-box !important; }
.wm-notice .wm-notice-card {
  display: block !important;
  border: 1px solid #ececf0 !important; border-radius: 14px !important; background: #fff !important;
  overflow: hidden !important; box-shadow: 0 1px 2px rgba(16,24,40,.04) !important;
  margin: 0 !important; padding: 0 !important;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.wm-notice .wm-notice-card[open], .wm-notice .wm-notice-card:hover { box-shadow: 0 6px 22px rgba(16,24,40,.09) !important; border-color: #e2e3e8 !important; }
.wm-notice .wm-notice-head {
  display: flex !important; align-items: center !important; gap: .85rem !important;
  padding: 1rem 1.15rem !important; margin: 0 !important; cursor: pointer !important;
  list-style: none !important; font-weight: 600 !important; color: #1c1f26 !important; background: transparent !important;
  -webkit-user-select: none; user-select: none;
}
.wm-notice .wm-notice-head::-webkit-details-marker { display: none !important; }
.wm-notice .wm-notice-head::marker { content: '' !important; font-size: 0 !important; }
.wm-notice .wm-notice-card.is-open .wm-notice-head { cursor: default !important; }
.wm-notice .wm-notice-ico {
  flex: 0 0 auto !important; width: 38px !important; height: 38px !important; min-width: 38px !important;
  border-radius: 11px !important; color: #fff !important;
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  font-size: 1.15rem !important; line-height: 1 !important; margin: 0 !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.12) !important;
}
.wm-notice .wm-notice-titles { flex: 1 1 auto !important; display: flex !important; flex-direction: column !important; line-height: 1.25 !important; min-width: 0 !important; text-align: left !important; }
.wm-notice .wm-notice-title { font-size: 1rem !important; font-weight: 700 !important; color: #1c1f26 !important; margin: 0 !important; }
.wm-notice .wm-notice-sub { font-size: .8rem !important; font-weight: 400 !important; color: #8a9099 !important; margin: .1rem 0 0 !important; }
.wm-notice .wm-notice-chevron { flex: 0 0 auto !important; font-size: 1.5rem !important; color: #b6bcc4 !important; line-height: 1 !important; margin: 0 !important; transition: transform .22s ease; }
.wm-notice .wm-notice-card[open] .wm-notice-chevron { transform: rotate(90deg); }
/* Forza il collasso nativo del <details> anche se il tema lo sovrascrive */
.wm-notice details.wm-notice-card:not([open]) > .wm-notice-content { display: none !important; }
.wm-notice details.wm-notice-card[open] > .wm-notice-content { display: block !important; }
.wm-notice .wm-notice-content { padding: .2rem 1.15rem 1.15rem !important; margin: 0 !important; font-size: .9rem !important; color: #525861 !important; line-height: 1.65 !important; background: transparent !important; }
.wm-notice .wm-notice-content > *:first-child { margin-top: 0 !important; }
.wm-notice .wm-notice-content h3, .wm-notice .wm-notice-content h4 { color: #1c1f26 !important; margin: 1rem 0 .35rem !important; padding: 0 !important; font-size: .95rem !important; font-weight: 700 !important; border: 0 !important; background: transparent !important; }
.wm-notice .wm-notice-content p { margin: .35rem 0 !important; padding: 0 !important; color: #525861 !important; font-size: .9rem !important; }
.wm-notice .wm-notice-content blockquote {
  border-left: 3px solid var(--wm-primary, #2d6cdf) !important; background: #f7f8fa !important; padding: .75rem .95rem !important;
  margin: .7rem 0 !important; border-radius: 0 8px 8px 0 !important; color: #5b616b !important; font-size: .85rem !important;
}
.wm-notice .wm-notice-cta { margin: 1.1rem 0 0 !important; padding: 0 !important; }
.wm-notice .wm-notice-btn {
  display: inline-flex !important; align-items: center !important; gap: .4rem !important;
  color: #fff !important; text-decoration: none !important;
  padding: .6rem 1.2rem !important; border-radius: 9px !important; border: 0 !important; font-weight: 600 !important; font-size: .9rem !important;
  box-shadow: 0 3px 10px rgba(0,0,0,.14) !important; transition: filter .15s ease, transform .12s ease;
}
.wm-notice .wm-notice-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.wm-notice .wm-notice-card[open] .wm-notice-content { animation: wm-fade .22s ease; }
@keyframes wm-fade { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }

/* Hooks */
.wm-order-detail.box { margin-top: 1rem; padding: 1rem; border: 1px solid #e6e8eb; border-radius: 8px; }
.wm-footer-link a { text-decoration: underline; }

@media (max-width: 560px) {
  .wm-card { padding: 1.25rem; }
  .wm-steps li { min-width: calc(50% - .4rem); }
}
