/* v0.1.3 - styles scoped to the Quick Reorder interface. */
.woocommerce-account .zxc-reorder{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.woocommerce-account .zxc-reorder *{box-sizing:border-box}
.woocommerce-account .zxc-reorder .zxc-reorder-intro{margin:0 0 22px}
.woocommerce-account .zxc-reorder .zxc-reorder-order{border:1px solid #e0ddd7;border-radius:8px;margin:0 0 24px;overflow:hidden;background:#fff;max-width:100%}
.woocommerce-account .zxc-reorder .zxc-reorder-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;padding:12px 15px;background:#f7f5f1;border-bottom:1px solid #e5e2dc;font-size:14px;line-height:1.5}
.woocommerce-account .zxc-reorder .zxc-reorder-date{color:#69645f;font-size:13px}
.woocommerce-account .zxc-reorder .zxc-reorder-table-wrap{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.woocommerce-account .zxc-reorder table.zxc-reorder-table{table-layout:auto;width:100%;min-width:570px;border:0;border-collapse:collapse;border-spacing:0;margin:0!important;font-size:13px;line-height:1.45;background:#fff}
.woocommerce-account .zxc-reorder table.zxc-reorder-table thead{display:table-header-group}
.woocommerce-account .zxc-reorder table.zxc-reorder-table tbody{display:table-row-group}
.woocommerce-account .zxc-reorder table.zxc-reorder-table tr{display:table-row;border:0;background:transparent}
.woocommerce-account .zxc-reorder table.zxc-reorder-table th,.woocommerce-account .zxc-reorder table.zxc-reorder-table td{display:table-cell;vertical-align:middle;float:none;border:0;border-bottom:1px solid #eeeae6;text-align:left;padding:9px 10px;line-height:1.4;font-size:13px;box-shadow:none}
.woocommerce-account .zxc-reorder table.zxc-reorder-table thead th{background:#faf9f7;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#5d5752;white-space:nowrap}
.woocommerce-account .zxc-reorder table.zxc-reorder-table tbody tr:last-child td{border-bottom:0}
.woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-product{width:38%;font-weight:600;overflow-wrap:anywhere}
.woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-options{width:30%;color:#555;overflow-wrap:anywhere}
.woocommerce-account .zxc-reorder .zxc-option{display:inline;white-space:normal}
.woocommerce-account .zxc-reorder .zxc-option + .zxc-option:before{content:' · ';color:#aaa}
.woocommerce-account .zxc-reorder .zxc-option-label{font-weight:600}
.woocommerce-account .zxc-reorder table.zxc-reorder-table .zxc-col-qty{width:44px;text-align:center;white-space:nowrap}
.woocommerce-account .zxc-reorder table.zxc-reorder-table .zxc-col-status{width:85px;white-space:nowrap}
.woocommerce-account .zxc-reorder table.zxc-reorder-table .zxc-col-action{width:100px;text-align:right;white-space:nowrap}
.woocommerce-account .zxc-reorder .zxc-reorder-muted{color:#85807b}
.woocommerce-account .zxc-reorder .zxc-reorder-unavailable{color:#a33;white-space:normal!important}
.woocommerce-account .woocommerce .zxc-reorder form.zxc-reorder-action,.woocommerce-account .zxc-reorder form.zxc-reorder-action{display:inline-block!important;margin:0!important;padding:0!important;width:auto!important;max-width:none!important;float:none!important;line-height:1}
.woocommerce-account .woocommerce .zxc-reorder button.zxc-reorder-button,.woocommerce-account .zxc-reorder button.zxc-reorder-button{display:inline-block!important;position:static!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;margin:0!important;padding:7px 10px!important;border:0!important;border-radius:4px!important;box-shadow:none!important;white-space:nowrap!important;word-break:normal!important;text-transform:none!important;letter-spacing:0!important;font-size:12px!important;font-weight:600!important;line-height:1.3!important;cursor:pointer}
.woocommerce-account .zxc-reorder .zxc-reorder-footer{display:flex;justify-content:flex-end;padding:11px 15px;border-top:1px solid #eeeae6;background:#faf9f7}
.woocommerce-account .zxc-reorder .zxc-reorder-footer button.zxc-reorder-button{font-size:13px!important;padding:9px 13px!important}
.woocommerce-account .zxc-reorder .zxc-reorder-pagination{display:flex;justify-content:center;gap:14px;margin:20px 0}
@media(max-width:700px){.woocommerce-account .zxc-reorder table.zxc-reorder-table{min-width:560px}.woocommerce-account .zxc-reorder table.zxc-reorder-table td,.woocommerce-account .zxc-reorder table.zxc-reorder-table th{padding:8px}.woocommerce-account .zxc-reorder .zxc-reorder-head{padding:10px 12px}}

/* Collapsible order summary: date / order number / total units / toggle. */
.woocommerce-account .zxc-reorder details.zxc-reorder-order{display:block}
.woocommerce-account .zxc-reorder summary.zxc-reorder-head{display:grid;grid-template-columns:minmax(125px,1.1fr) minmax(110px,1fr) minmax(68px,.65fr) 16px;align-items:center;column-gap:14px;cursor:pointer;list-style:none;user-select:none;border-bottom:0;padding:14px 16px}
.woocommerce-account .zxc-reorder summary.zxc-reorder-head::-webkit-details-marker{display:none}
.woocommerce-account .zxc-reorder summary.zxc-reorder-head::marker{content:''}
.woocommerce-account .zxc-reorder summary.zxc-reorder-head:hover{background:#f0ede8}
.woocommerce-account .zxc-reorder summary.zxc-reorder-head:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.woocommerce-account .zxc-reorder .zxc-reorder-head-date{font-size:13px;color:#5f5a54}
.woocommerce-account .zxc-reorder .zxc-reorder-head-number{font-size:14px}
.woocommerce-account .zxc-reorder .zxc-reorder-head-quantity{font-size:13px;color:#5f5a54;text-align:right}
.woocommerce-account .zxc-reorder .zxc-reorder-chevron{display:block;width:9px;height:9px;border-right:2px solid #5f5a54;border-bottom:2px solid #5f5a54;transform:rotate(45deg);transition:transform .15s ease;justify-self:end;margin-top:-4px}
.woocommerce-account .zxc-reorder details[open] .zxc-reorder-chevron{transform:rotate(225deg);margin-top:4px}
.woocommerce-account .zxc-reorder details[open] summary.zxc-reorder-head{border-bottom:1px solid #e5e2dc}
@media(max-width:550px){.woocommerce-account .zxc-reorder summary.zxc-reorder-head{grid-template-columns:1fr 1fr 16px;gap:4px 10px}.woocommerce-account .zxc-reorder .zxc-reorder-head-date{grid-column:1}.woocommerce-account .zxc-reorder .zxc-reorder-head-number{grid-column:2;grid-row:1}.woocommerce-account .zxc-reorder .zxc-reorder-head-quantity{grid-column:1 / 3;grid-row:2;text-align:left}.woocommerce-account .zxc-reorder .zxc-reorder-chevron{grid-column:3;grid-row:1 / 3}}

/* v0.1.4: full-order action prompt and AJAX feedback. */
.woocommerce-account .zxc-reorder .zxc-reorder-footer{align-items:center;gap:10px 16px;flex-wrap:wrap}
.woocommerce-account .zxc-reorder .zxc-reorder-footer-note{font-size:13px;color:#68615c;margin-right:auto}
.woocommerce-account .zxc-reorder .zxc-reorder-feedback{border:1px solid #e1ded8;border-radius:5px;padding:10px 12px;margin:0 0 14px;font-size:13px;background:#f8f7f4}
.woocommerce-account .zxc-reorder .zxc-reorder-feedback[hidden],.woocommerce-account .zxc-reorder .zxc-reorder-cart-link[hidden]{display:none!important}
.woocommerce-account .zxc-reorder .zxc-reorder-feedback.is-error{border-color:#dbb8b8;color:#8b2828;background:#fff6f6}
.woocommerce-account .zxc-reorder .zxc-reorder-cart-link{margin:-4px 0 16px}
.woocommerce-account .zxc-reorder button.zxc-reorder-button.is-added{background:#477153!important;color:#fff!important;border-color:#477153!important;cursor:default!important;opacity:1!important}
.woocommerce-account .zxc-reorder button.zxc-reorder-button:disabled:not(.is-added){opacity:.7!important;cursor:wait!important}
@media(max-width:550px){.woocommerce-account .zxc-reorder .zxc-reorder-footer-note{flex-basis:100%}}

/* v0.1.7: unified inline confirmation notice and cart link. */
.woocommerce-account .zxc-reorder .zxc-reorder-feedback{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;
  gap:10px 16px;margin:0 0 16px;padding:11px 14px;
  border:1px solid #bad9c0;border-radius:6px;background:#eef8ef;color:#285d36;
}
.woocommerce-account .zxc-reorder .zxc-reorder-feedback[hidden]{display:none!important}
.woocommerce-account .zxc-reorder .zxc-reorder-feedback.is-error{border-color:#dbb8b8;color:#8b2828;background:#fff6f6}
.woocommerce-account .zxc-reorder .zxc-reorder-feedback-message{flex:1 1 220px;line-height:1.5}
.woocommerce-account .zxc-reorder a.zxc-reorder-view-cart.button{
  display:inline-flex!important;align-items:center;justify-content:center;
  flex:none;width:auto!important;min-width:0!important;min-height:0!important;
  margin:0!important;padding:7px 13px!important;border-radius:4px!important;
  border:1px solid #3c744b!important;background:#fff!important;color:#285d36!important;
  font-size:12px!important;line-height:1.4!important;font-weight:700!important;
  text-decoration:none!important;white-space:nowrap!important;box-shadow:none!important;
}
.woocommerce-account .zxc-reorder a.zxc-reorder-view-cart.button:hover{background:#e2f2e5!important}
.woocommerce-account .zxc-reorder .zxc-reorder-feedback.is-error a.zxc-reorder-view-cart{display:none!important}

/* v0.2.0: match the green product-page purchase button; successful actions are notices. */
.woocommerce-account .woocommerce .zxc-reorder button.zxc-reorder-button:not(.is-added),
.woocommerce-account .zxc-reorder button.zxc-reorder-button:not(.is-added){
  background:#4a923b!important;color:#fff!important;border:1px solid #4a923b!important;
}
.woocommerce-account .woocommerce .zxc-reorder button.zxc-reorder-button:not(.is-added):hover:not(:disabled),
.woocommerce-account .zxc-reorder button.zxc-reorder-button:not(.is-added):hover:not(:disabled){
  background:#3d7e30!important;border-color:#3d7e30!important;
}
.woocommerce-account .woocommerce .zxc-reorder button.zxc-reorder-button.is-added,
.woocommerce-account .zxc-reorder button.zxc-reorder-button.is-added{
  background:#eaf6e8!important;color:#276a2d!important;border:1px solid #b7d8b4!important;
  font-weight:600!important;cursor:default!important;opacity:1!important;
}
.woocommerce-account .zxc-reorder .zxc-reorder-feedback{margin:0 0 12px}


/* v0.2.0 — account Order Again shares the same green purchase button style. */
.woocommerce-account .woocommerce .order-again .button,
.woocommerce-account .order-again .button {
  background:#4a923b!important;color:#fff!important;border:1px solid #4a923b!important;
  border-radius:4px!important;padding:12px 20px!important;font-weight:600!important;
  text-decoration:none!important;box-shadow:none!important;
  transition:background-color .2s ease,border-color .2s ease;
}
.woocommerce-account .woocommerce .order-again .button:hover,
.woocommerce-account .order-again .button:hover {
  background:#39782e!important;border-color:#39782e!important;color:#fff!important;
}

/* Responsive to the account content COLUMN, not merely the viewport. */
.woocommerce-account .zxc-reorder{container-type:inline-size}
@container (max-width: 670px) {
  .woocommerce-account .zxc-reorder .zxc-reorder-table-wrap {overflow:visible}
  .woocommerce-account .zxc-reorder table.zxc-reorder-table,
  .woocommerce-account .zxc-reorder table.zxc-reorder-table tbody {
    display:block!important;width:100%!important;min-width:0!important;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table thead {display:none!important}
  .woocommerce-account .zxc-reorder table.zxc-reorder-table tr {
    display:grid!important;grid-template-columns:minmax(0,1fr) auto;
    gap:4px 12px;padding:12px 14px;border-bottom:1px solid #e8e5e1;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table tbody tr:last-child{border-bottom:0}
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td {
    display:block!important;width:auto!important;min-width:0!important;
    padding:0!important;border:0!important;text-align:left!important;
    white-space:normal!important;overflow-wrap:anywhere;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-product {
    grid-column:1 / -1;font-size:14px;font-weight:700;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-options {
    grid-column:1 / -1;margin-bottom:4px;font-size:12px;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-qty {
    grid-column:1;grid-row:auto;align-self:center;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-status {
    grid-column:2;align-self:center;text-align:right!important;font-size:12px;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-qty:before {
    content:'Qty: ';font-weight:600;color:#68615c;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-action {
    grid-column:1 / -1;margin-top:4px;text-align:right!important;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-action form {
    max-width:100%!important;
  }
  .woocommerce-account .zxc-reorder .zxc-reorder-footer {
    justify-content:flex-start;padding:12px 14px;
  }
  .woocommerce-account .zxc-reorder .zxc-reorder-footer-note {
    flex-basis:100%;margin:0;
  }
  .woocommerce-account .zxc-reorder .zxc-reorder-footer form,
  .woocommerce-account .zxc-reorder .zxc-reorder-footer button.zxc-reorder-button {
    max-width:100%!important;white-space:normal!important;text-align:center;
  }
  .woocommerce-account .zxc-reorder summary.zxc-reorder-head {
    grid-template-columns:minmax(0,1fr) auto 16px;
    gap:3px 9px;padding:12px 14px;
  }
  .woocommerce-account .zxc-reorder .zxc-reorder-head-date {grid-column:1;grid-row:1}
  .woocommerce-account .zxc-reorder .zxc-reorder-head-number {grid-column:2;grid-row:1;overflow-wrap:anywhere}
  .woocommerce-account .zxc-reorder .zxc-reorder-head-quantity {
    grid-column:1 / 3;grid-row:2;text-align:left;
  }
  .woocommerce-account .zxc-reorder .zxc-reorder-chevron {grid-column:3;grid-row:1 / 3}
}

/* v0.2.1 — no redundant availability column; align quantity + action on mobile. */
.woocommerce-account .zxc-reorder .zxc-reorder-mobile-qty{display:none}
.woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-product{width:43%}
.woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-options{width:37%}
.woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-action{width:135px}
.woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-action.zxc-reorder-unavailable{
  width:auto;white-space:normal!important;text-align:right;line-height:1.4;
}
@container (max-width: 670px) {
  .woocommerce-account .zxc-reorder table.zxc-reorder-table tr{
    grid-template-columns:minmax(0,1fr) auto;
    gap:4px 10px;align-items:center;padding:11px 12px;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-product{
    grid-column:1;grid-row:1;align-self:end;font-size:13px;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-options{
    grid-column:1;grid-row:2;align-self:start;margin:0;font-size:12px;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-qty{
    display:none!important;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-action{
    grid-column:2;grid-row:1 / 3;align-self:center;justify-self:end;
    display:flex!important;align-items:center;justify-content:flex-end;
    flex-wrap:wrap;gap:7px;margin:0;max-width:175px;
  }
  .woocommerce-account .zxc-reorder .zxc-reorder-mobile-qty{
    display:inline!important;color:#68615c;font-size:12px;white-space:nowrap;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-action.zxc-reorder-unavailable{
    grid-column:1 / -1;grid-row:3;justify-self:stretch;max-width:none;
    justify-content:flex-start;text-align:left!important;margin-top:3px;font-size:12px;
  }
}

/* v0.2.2: stable individual product button width across default/success states. */
.woocommerce-account .woocommerce .zxc-reorder td.zxc-col-action button.zxc-reorder-button,
.woocommerce-account .zxc-reorder td.zxc-col-action button.zxc-reorder-button {
  min-width:108px!important;
  text-align:center!important;
  justify-content:center!important;
}

/* v0.3.0 — individual quantity chooser and shared Recent Products table. */
.woocommerce-account .zxc-reorder td.zxc-col-action {width:205px!important;min-width:190px;white-space:nowrap!important}
.woocommerce-account .zxc-reorder form.zxc-reorder-action:has(.zxc-reorder-qty-input) {
  display:inline-flex!important;align-items:center;justify-content:flex-end;gap:8px;
  white-space:nowrap;vertical-align:middle;
}
.woocommerce-account .zxc-reorder .zxc-reorder-qty-label {
  display:inline-flex;align-items:center;gap:4px;margin:0!important;color:#68615c;
  font-size:12px;font-weight:600;white-space:nowrap;line-height:1;
}
.woocommerce-account .zxc-reorder input.zxc-reorder-qty-input {
  display:inline-block!important;box-sizing:border-box!important;width:50px!important;
  min-width:50px!important;max-width:50px!important;height:34px!important;
  padding:4px 5px!important;margin:0!important;border:1px solid #d6d2cc!important;
  border-radius:4px!important;background:#fff!important;color:#252525!important;
  text-align:center!important;font-size:13px!important;line-height:1.3!important;
  box-shadow:none!important;
}
.woocommerce-account .zxc-reorder td.zxc-col-action button.zxc-reorder-button{min-width:108px!important}
.woocommerce-account .zxc-reorder .zxc-reorder-recent-list{overflow:hidden}
@container (max-width: 670px) {
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-action {
    grid-column:2;grid-row:1 / 3;align-self:center;justify-self:end;
    width:auto!important;min-width:0!important;max-width:none!important;
    display:flex!important;align-items:center;justify-content:flex-end;
    margin:0!important;padding:0!important;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-action.zxc-reorder-unavailable {
    grid-column:1 / -1;grid-row:3;width:auto!important;min-width:0!important;
    justify-self:start;text-align:left!important;white-space:normal!important;
  }
  .woocommerce-account .zxc-reorder .zxc-reorder-qty-label{gap:3px;font-size:11px}
  .woocommerce-account .zxc-reorder input.zxc-reorder-qty-input {
    width:45px!important;min-width:45px!important;max-width:45px!important;
  }
  .woocommerce-account .zxc-reorder form.zxc-reorder-action:has(.zxc-reorder-qty-input){gap:5px}
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-product {
    grid-column:1;grid-row:1;align-self:end;width:auto!important;min-width:0!important;
  }
  .woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-options {
    grid-column:1;grid-row:2;align-self:start;width:auto!important;min-width:0!important;
  }
}
@container (max-width: 400px) {
  .woocommerce-account .zxc-reorder table.zxc-reorder-table tr {grid-template-columns:minmax(0,1fr) auto;gap:4px 6px;padding:10px 8px}
  .woocommerce-account .zxc-reorder td.zxc-col-action button.zxc-reorder-button {min-width:86px!important;padding:7px 6px!important;font-size:11px!important}
  .woocommerce-account .zxc-reorder input.zxc-reorder-qty-input {width:40px!important;min-width:40px!important;max-width:40px!important}
}

/* Product names link to their product detail pages; keep table typography consistent. */
.woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-product a.zxc-reorder-product-link{color:inherit;text-decoration:none;font-weight:inherit}
.woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-product a.zxc-reorder-product-link:hover,.woocommerce-account .zxc-reorder table.zxc-reorder-table td.zxc-col-product a.zxc-reorder-product-link:focus-visible{color:#4a923b;text-decoration:underline;text-underline-offset:2px}
