/* Portal mayorista (template-parts/wholesale-order.php): the cart's look — dark cards,
   mono labels and prices, lime accents — on Mi cuenta. Products on the left, a sticky
   summary on the right; on phones the summary becomes a bar pinned to the bottom. */
.vp-wholesale{--card:#0b0d0e;--line:rgba(255,255,255,.12);--error:#ff7b7b;--mono:var(--primitive-fontFamily-mono);display:flex;flex-direction:column;gap:24px;color:var(--color-foreground)}
.vp-wholesale-eyebrow{margin:0;font:12px var(--mono);letter-spacing:var(--primitive-letterSpacing-label-wide);color:var(--color-accent)}

/* Last order */
.vp-wholesale-last{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:18px 22px;border:1px solid var(--line);border-radius:18px;background:var(--card)}
.vp-wholesale-last p{margin:0}
.vp-wholesale-last-label{font:11px var(--mono);text-transform:uppercase;color:var(--color-foreground-subtle)}
.vp-wholesale-last-items{margin-top:6px!important;font-size:15px;color:var(--color-foreground-muted)}
.vp-wholesale-repeat{display:inline-flex;align-items:center;min-height:44px;padding:0 20px;border:1px solid var(--color-border-strong);border-radius:999px;font:11px var(--mono);letter-spacing:.06em;text-transform:uppercase;text-decoration:none;color:var(--color-foreground)}
.vp-wholesale-repeat:hover{border-color:var(--color-accent);color:var(--color-accent)}

/* Layout */
.vp-wholesale-form{display:flex;flex-wrap:wrap;align-items:flex-start;gap:28px}
.vp-wholesale-products{flex:999 1 560px;min-width:0;display:flex;flex-direction:column;gap:10px}
.vp-wholesale-cols{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:0;padding:0 4px 6px;font:11px var(--mono);text-transform:uppercase;color:var(--color-foreground-subtle)}

/* Product cards */
.vp-wholesale-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.vp-wholesale-item{display:flex;align-items:center;flex-wrap:wrap;gap:20px;padding:14px 18px 14px 14px;border:1px solid var(--line);border-radius:18px;background:var(--card);transition:border-color var(--primitive-duration-fast)}
.vp-wholesale-item.is-on{border-color:rgba(182,255,40,.55)}
.vp-wholesale-item.is-short{border-color:var(--error)}
.vp-wholesale-item.is-off{opacity:.5}
.vp-wholesale-media{width:88px;height:88px;flex:none;border-radius:14px;background:var(--color-surface-alt);display:flex;align-items:center;justify-content:center;overflow:hidden}
/* WooCommerce's account styles set img{height:auto}; the tile keeps the whole product in view. */
.vp-wholesale .vp-wholesale-media img{width:100%;height:100%!important;max-width:none;object-fit:contain;padding:8px;box-sizing:border-box}
.vp-wholesale-info{flex:1 1 200px;min-width:0;display:flex;flex-direction:column;gap:8px}
.vp-wholesale-info h3{margin:0;font-size:18px;letter-spacing:-.03em;text-transform:uppercase}
.vp-wholesale-price{margin:0;font:13px var(--mono);color:var(--color-foreground)}
.vp-wholesale-price span{color:var(--color-foreground-subtle)}
.vp-wholesale-presets{display:flex;gap:6px;flex-wrap:wrap}
.vp-wholesale-presets button{min-width:44px;height:32px;padding:0 12px;border:1px solid rgba(255,255,255,.2);border-radius:999px;background:transparent;color:var(--color-foreground-muted);font:12px var(--mono);cursor:pointer}
.vp-wholesale-presets button:hover{border-color:var(--color-accent);color:var(--color-accent)}
.vp-wholesale-presets button[aria-pressed="true"]{border-color:var(--color-accent);background:var(--color-accent);color:var(--color-foreground-on-accent)}

.vp-wholesale-qty{display:flex;flex-direction:column;align-items:center;gap:6px}
.vp-wholesale-stepper{display:flex;align-items:center;border:1px solid var(--color-border-default);border-radius:999px}
.is-short .vp-wholesale-stepper{border-color:var(--error)}
.vp-wholesale-stepper button{width:44px;height:44px;border:0;background:transparent;color:var(--color-foreground);font-size:20px;cursor:pointer}
.vp-wholesale-stepper button:hover:not(:disabled){color:var(--color-accent)}
.vp-wholesale-stepper button:disabled{cursor:not-allowed}
.vp-wholesale-stepper label{display:flex}
.vp-wholesale .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.vp-wholesale .vp-wholesale-stepper input{width:56px;height:44px;padding:0;border:0;background:transparent;color:var(--color-foreground);font:700 17px var(--mono);text-align:center;-moz-appearance:textfield;appearance:textfield}
.vp-wholesale-stepper input::-webkit-outer-spin-button,.vp-wholesale-stepper input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.vp-wholesale-stepper input:focus-visible,.vp-wholesale-stepper button:focus-visible,.vp-wholesale-presets button:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}
.vp-wholesale-hint{font:11px var(--mono);color:var(--error);text-align:center}
.vp-wholesale-line{margin:0;width:130px;text-align:right;font:700 18px var(--mono);color:#5d6160}
.is-on .vp-wholesale-line{color:var(--color-accent)}

/* Summary */
.vp-wholesale-summary{flex:1 1 300px;position:sticky;top:24px;display:flex;flex-direction:column;gap:18px;padding:24px;border:1px solid var(--line);border-radius:22px;background:var(--card)}
.vp-wholesale-summary p{margin:0}
.vp-wholesale-summary-title{font:11px var(--mono);text-transform:uppercase;color:var(--color-accent)}
.vp-wholesale-lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.vp-wholesale-lines li{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:var(--color-foreground-muted)}
.vp-wholesale-lines li span:last-child{font-family:var(--mono);color:var(--color-foreground);white-space:nowrap}
.vp-wholesale-empty{font-size:14px;line-height:1.5;color:var(--color-foreground-subtle)}
.vp-wholesale-totals{display:flex;flex-direction:column;gap:6px;padding-top:16px;border-top:1px solid var(--line)}
.vp-wholesale-totals p{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.vp-wholesale-totals span{font:11px var(--mono);text-transform:uppercase;color:var(--color-foreground-subtle)}
.vp-wholesale-total{font:700 28px var(--mono)}
.vp-wholesale-alert{padding:12px 14px;border:1px solid var(--error);border-radius:12px;font-size:13px;line-height:1.45;color:#ffb3b3}
.vp-wholesale-submit{min-height:56px;padding:0 28px;border:0;border-radius:999px;background:var(--color-accent);color:var(--color-foreground-on-accent);font:700 12px var(--mono);letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
.vp-wholesale-submit:disabled{background:#2a2d2b;color:var(--color-foreground-subtle);cursor:not-allowed}
.vp-wholesale-perks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.45;color:var(--color-foreground-muted)}
.vp-wholesale-perks li{display:flex;gap:10px}
.vp-wholesale-perks svg{flex:none;margin-top:1px;color:var(--color-accent)}
.vp-wholesale-perks a{color:var(--color-accent)}

.vp-wholesale-login-note{margin:0 0 16px;padding:14px 16px;border:1px solid var(--color-border-default);border-radius:14px;font-size:14px;line-height:1.5;color:var(--color-foreground-muted)}
.vp-wholesale-login-note a{color:var(--color-accent)}

@media(max-width:720px){
	.vp-wholesale-last{padding:14px 16px}
	.vp-wholesale-repeat{width:100%;justify-content:center}
	.vp-wholesale-cols span:first-child{display:none}
	.vp-wholesale-item{display:grid;grid-template-columns:64px 1fr auto;grid-template-areas:"media name line" "media price price" "presets presets qty" "hint hint hint";gap:4px 12px;padding:12px}
	.vp-wholesale-media{grid-area:media;width:64px;height:64px}
	.vp-wholesale-info{display:contents}
	.vp-wholesale-info h3{grid-area:name;align-self:end;font-size:15px;line-height:1.1}
	.vp-wholesale-price{grid-area:price;align-self:start;font-size:12px}
	.vp-wholesale-presets{grid-area:presets;align-self:center;flex-wrap:nowrap;margin-top:8px}
	.vp-wholesale-stepper{margin-top:8px}
	.vp-wholesale-presets button{height:44px;padding:0 8px}
	.vp-wholesale-qty{display:contents}
	.vp-wholesale-stepper{grid-area:qty}
	.vp-wholesale .vp-wholesale-stepper input{width:40px;font-size:16px}
	.vp-wholesale-hint{grid-area:hint;text-align:left}
	.vp-wholesale-line{grid-area:line;width:auto;font-size:14px;white-space:nowrap}
	/* Summary: only the totals, alert and button stay, pinned to the bottom. */
	.vp-wholesale-summary{position:sticky;top:auto;bottom:0;flex-basis:100%;margin:0 -16px;padding:14px 16px 18px;gap:12px;border-radius:0;border-width:1px 0 0;background:rgba(5,6,7,.96);backdrop-filter:blur(12px)}
	.vp-wholesale-summary-title,.vp-wholesale-lines,.vp-wholesale-empty,.vp-wholesale-perks{display:none!important}
	.vp-wholesale-totals{padding-top:0;border-top:0}
	.vp-wholesale-total{font-size:22px}
	.vp-wholesale-alert{padding:0;border:0;font-size:12px}
	.vp-wholesale-submit{min-height:52px}
}
