.origamix-withdrawal {
  --owd-accent: #2e7d46;
  --owd-ink: #1f2933;
  --owd-muted: #6b7280;
  --owd-border: #e5e7eb;
  --owd-border-strong: #d6dae0;
  --owd-bg-soft: #f8fafc;
  --owd-card: #ffffff;
  --owd-radius: 16px;
  --owd-radius-sm: 10px;
  --owd-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 28px rgba(16, 24, 40, .05);
  box-sizing: border-box;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  color: var(--owd-ink);
  font-family: inherit;
  line-height: 1.5;
  text-align: left;
}
.origamix-withdrawal *,
.origamix-withdrawal *::before,
.origamix-withdrawal *::after { box-sizing: border-box; }

.origamix-withdrawal__head { margin-bottom: 1.6rem; }
.origamix-withdrawal h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0 0 .4rem;
  color: var(--owd-ink);
}
.origamix-withdrawal__sub,
.origamix-withdrawal .muted { color: var(--owd-muted); }
.origamix-withdrawal__sub { font-size: .98rem; margin: 0; }

.origamix-withdrawal__intro {
  background: var(--owd-bg-soft);
  border: 1px solid var(--owd-border);
  border-radius: var(--owd-radius-sm);
  padding: .9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
  color: var(--owd-ink);
}

.origamix-withdrawal__form fieldset {
  border: 1px solid var(--owd-border);
  border-radius: var(--owd-radius);
  background: var(--owd-card);
  box-shadow: var(--owd-shadow);
  padding: 1.5rem 1.6rem 1.7rem;
  margin: 0 0 1.25rem;
  min-width: 0;
}
.origamix-withdrawal__form legend {
  display: block;
  float: none;
  width: auto;
  max-width: 100%;
  padding: 0;
  margin: 0 0 1.2rem;
  border: 0;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--owd-accent);
}

.origamix-withdrawal .form-group { margin-bottom: 1.1rem; text-align: left; }
.origamix-withdrawal .form-group:last-child { margin-bottom: 0; }
.origamix-withdrawal .form-group label {
  display: block;
  float: none;
  width: auto;
  text-align: left;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .4rem;
  padding: 0;
  color: var(--owd-ink);
}

.origamix-withdrawal input[type="text"],
.origamix-withdrawal input[type="email"],
.origamix-withdrawal input[type="tel"],
.origamix-withdrawal input[type="number"],
.origamix-withdrawal textarea {
  width: 100%;
  max-width: 100%;
  padding: .65rem .85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--owd-ink);
  background: #fff;
  border: 1px solid var(--owd-border-strong);
  border-radius: var(--owd-radius-sm);
  transition: border-color .16s ease, box-shadow .16s ease;
  -webkit-appearance: none;
  appearance: none;
}
.origamix-withdrawal input::placeholder,
.origamix-withdrawal textarea::placeholder { color: #aab1bb; }
.origamix-withdrawal input:focus,
.origamix-withdrawal textarea:focus {
  outline: none;
  border-color: var(--owd-accent);
  box-shadow: 0 0 0 3px rgba(16, 24, 40, .08);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--owd-accent) 20%, transparent);
}
.origamix-withdrawal input[readonly] {
  background: var(--owd-bg-soft);
  color: var(--owd-muted);
  cursor: not-allowed;
}
.origamix-withdrawal textarea { min-height: 86px; resize: vertical; }
.origamix-withdrawal small.muted { display: block; margin-top: .4rem; font-size: .82rem; }

.origamix-withdrawal .table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--owd-border);
  border-radius: var(--owd-radius-sm);
  overflow: hidden;
  margin: 0;
  font-size: .95rem;
}
.origamix-withdrawal .table thead th {
  background: var(--owd-bg-soft);
  color: var(--owd-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: left;
  white-space: nowrap;
  padding: .7rem .9rem;
  border-bottom: 1px solid var(--owd-border);
}
.origamix-withdrawal .table tbody td {
  padding: .9rem .9rem;
  border-bottom: 1px solid var(--owd-border);
  vertical-align: middle;
  color: var(--owd-ink);
}
.origamix-withdrawal .table tbody td,
.origamix-withdrawal .table tbody td a,
.origamix-withdrawal .table tbody td span:not(.origamix-withdrawal__qty-max):not(.origamix-withdrawal__excluded):not(.muted) {
  color: var(--owd-ink);
}
.origamix-withdrawal .table tbody td:first-child { font-weight: 500; line-height: 1.35; }
.origamix-withdrawal .table tbody tr:last-child td { border-bottom: 0; }
.origamix-withdrawal .table tbody tr:hover td { background: #fcfcfd; }
.origamix-withdrawal .table td input[type="text"] { width: 100%; min-width: 120px; padding: .5rem .65rem; }

.origamix-withdrawal__qty { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.origamix-withdrawal__qty input[type="number"] {
  width: 66px;
  margin: 0;
  text-align: center;
  padding: .45rem .35rem;
}
.origamix-withdrawal__qty-max { color: var(--owd-muted); font-size: .92rem; }

.origamix-withdrawal__excluded {
  display: inline-block;
  color: #b45309;
  background: #fef3e2;
  border-radius: 6px;
  padding: .22rem .55rem;
  font-size: .85rem;
}

.origamix-withdrawal__orders { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.origamix-withdrawal__orders li {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-wrap: wrap;
  padding: .9rem 1.1rem;
  background: var(--owd-card);
  border: 1px solid var(--owd-border);
  border-radius: var(--owd-radius-sm);
  box-shadow: var(--owd-shadow);
  margin-bottom: .7rem;
}
.origamix-withdrawal__orders li a { font-weight: 600; color: var(--owd-accent); text-decoration: none; }
.origamix-withdrawal__orders li a:hover { text-decoration: underline; }
.origamix-withdrawal__days {
  margin-left: auto;
  background: var(--owd-bg-soft);
  color: var(--owd-ink);
  font-weight: 600;
  font-size: .8rem;
  padding: .22rem .6rem;
  border-radius: 999px;
  border: 1px solid var(--owd-border);
}

.origamix-withdrawal .btn-primary,
.origamix-withdrawal button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  margin-top: .3rem;
  padding: .8rem 1.9rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--owd-accent);
  border: 0;
  border-radius: var(--owd-radius-sm);
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(16, 24, 40, .12);
  transition: filter .16s ease, transform .12s ease, box-shadow .16s ease;
}
.origamix-withdrawal .btn-primary:hover,
.origamix-withdrawal button[type="submit"]:hover { filter: brightness(.95); box-shadow: 0 8px 22px rgba(16, 24, 40, .16); }
.origamix-withdrawal .btn-primary:active,
.origamix-withdrawal button[type="submit"]:active { transform: translateY(1px); }
.origamix-withdrawal .btn-primary:focus-visible,
.origamix-withdrawal button[type="submit"]:focus-visible {
  outline: 3px solid rgba(16, 24, 40, .25);
  outline: 3px solid color-mix(in srgb, var(--owd-accent) 45%, transparent);
  outline-offset: 2px;
}

.origamix-withdrawal .btn-secondary {
  display: inline-block;
  margin-top: 1rem;
  padding: .62rem 1.3rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--owd-ink);
  background: #fff;
  border: 1px solid var(--owd-border-strong);
  border-radius: var(--owd-radius-sm);
  transition: background .16s ease;
}
.origamix-withdrawal .btn-secondary:hover { background: var(--owd-bg-soft); }

.origamix-withdrawal .alert { border-radius: var(--owd-radius-sm); padding: 1rem 1.2rem; margin-bottom: 1rem; border: 1px solid transparent; }
.origamix-withdrawal .alert-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
.origamix-withdrawal .alert-info { background: var(--owd-bg-soft); border-color: var(--owd-border); color: var(--owd-ink); }
.origamix-withdrawal .alert-danger { background: #fef3f2; border-color: #fecdca; color: #b42318; }

/* Odstąpienie od całego zamówienia (jednoklik) */
.origamix-withdrawal__select-all {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1rem;
  padding: .7rem .9rem;
  background: var(--owd-bg-soft);
  border: 1px solid var(--owd-border);
  border-radius: var(--owd-radius-sm);
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
}
.origamix-withdrawal__select-all input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; }

/* Ekran przeglądu - treść oświadczenia */
.origamix-withdrawal__statement {
  background: var(--owd-bg-soft);
  border: 1px solid var(--owd-border);
  border-left: 3px solid var(--owd-accent);
  border-radius: var(--owd-radius-sm);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.origamix-withdrawal__statement p { margin: 0; }

/* Ekran przeglądu - oświadczenie woli */
.origamix-withdrawal__ack {
  display: block;
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  background: var(--owd-card);
  border: 1px solid var(--owd-border-strong);
  border-radius: var(--owd-radius-sm);
}
.origamix-withdrawal__ack label { display: flex; align-items: flex-start; gap: .6rem; font-weight: 600; cursor: pointer; margin: 0; }
.origamix-withdrawal__ack input[type="checkbox"] { width: 20px; height: 20px; margin: 0; flex: 0 0 auto; cursor: pointer; }

/* Ekran przeglądu - akcje */
.origamix-withdrawal__actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.origamix-withdrawal__actions .btn-secondary { margin-top: 0; }
.origamix-withdrawal__actions .btn-primary { margin-top: 0; }

@media (max-width: 575px) {
  .origamix-withdrawal__form fieldset { padding: 1.15rem 1.1rem 1.3rem; }
  .origamix-withdrawal .table { border: 0; }
  .origamix-withdrawal .table thead { display: none; }
  .origamix-withdrawal .table,
  .origamix-withdrawal .table tbody,
  .origamix-withdrawal .table tr,
  .origamix-withdrawal .table td { display: block; width: 100%; }
  .origamix-withdrawal .table tbody tr {
    border: 1px solid var(--owd-border);
    border-radius: var(--owd-radius-sm);
    padding: .5rem .2rem;
    margin-bottom: .7rem;
  }
  .origamix-withdrawal .table tbody td { border: 0; padding: .35rem .9rem; }
  .origamix-withdrawal .table tbody td:first-child { font-weight: 600; padding-top: .6rem; }
}

@media (prefers-reduced-motion: reduce) {
  .origamix-withdrawal * { transition: none !important; }
}
