/* Paint Outfit Size Guide & Bag — Sale Edit style */
:root { --posz-brand: #c66a3d; --posz-ink: #111; --posz-muted: #6e6a64; --posz-line: #d9d4cd; --posz-soft: #f4f2ef; }
.posz-lock, .posz-lock body { overflow: hidden !important; }

/* ================= Size buttons ================= */
.posz-hidden-select { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; }
form.posz-has-sizes table.variations, form.posz-has-sizes table.variations tbody, form.posz-has-sizes table.variations tr { display: block; width: 100%; }
form.posz-has-sizes table.variations th.label { display: block; padding: 0 0 6px !important; }
form.posz-has-sizes table.variations td.posz-cell { display: block; padding: 0 0 14px !important; width: 100%; }
form.posz-has-sizes table.variations tr:has(td.posz-cell) th.label { display: none; }
.posz-size-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.posz-size-label { font-family: "Playfair Display", Georgia, serif; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--posz-ink); }
.posz-size-label b { color: var(--posz-brand); letter-spacing: .06em; }
.posz-sizes { display: flex; flex-wrap: wrap; gap: 8px; }
.posz-size {
	position: relative; display: inline-flex !important; align-items: center; justify-content: center; min-width: 50px; height: 44px; padding: 0 14px !important; margin: 0 !important;
	background: #fff !important; color: var(--posz-ink) !important; border: 1px solid var(--posz-line) !important; border-radius: 0 !important; box-shadow: none !important;
	font: 600 13.5px/1 inherit; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; overflow: hidden; transition: border-color .2s, background .2s, color .2s;
}
.posz-size:hover { border-color: var(--posz-ink) !important; }
.posz-size:focus-visible { outline: 2px solid var(--posz-brand); outline-offset: 2px; }
.posz-size.is-on { background: var(--posz-ink) !important; border-color: var(--posz-ink) !important; color: #fff !important; }
/* Sold out: crossed out, still tappable (opens restock form) */
.posz-size.is-oos { color: #a8a29b !important; background: #faf9f7 !important; }
.posz-size.is-oos::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .7px), #a8a29b calc(50% - .7px), #a8a29b calc(50% + .7px), transparent calc(50% + .7px)); pointer-events: none; }
.posz-size.is-oos.is-on { background: #faf9f7 !important; color: var(--posz-ink) !important; border-color: var(--posz-ink) !important; }
.posz-size.is-oos.is-on::after { background: linear-gradient(to top right, transparent calc(50% - .7px), var(--posz-ink) calc(50% - .7px), var(--posz-ink) calc(50% + .7px), transparent calc(50% + .7px)); }
.posz-size.is-na { opacity: .35; }
.posz-size.is-na::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - .5px), #c9c3bb calc(50% - .5px), #c9c3bb calc(50% + .5px), transparent calc(50% + .5px)); }
.posz-left { margin: 10px 0 0 !important; font-size: 12.5px; font-weight: 600; color: var(--posz-brand); letter-spacing: .02em; }

/* ================= Size guide link + modal ================= */
.posz-guide-link {
	display: inline-flex !important; align-items: center; gap: 6px; padding: 0 !important; margin: 0 0 12px !important; background: none !important; border: 0 !important; box-shadow: none !important;
	color: var(--posz-ink) !important; font: 600 13px/1.2 inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.posz-size-head .posz-guide-link { margin: 0 !important; }
.posz-guide-link:hover { color: var(--posz-brand) !important; }
.posz-guide-link svg { color: var(--posz-brand); }
.posz-modal { position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.posz-modal[hidden] { display: none !important; }
.posz-modal-back { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .25s; cursor: pointer; }
.posz-modal-box { position: relative; z-index: 1; width: 100%; max-width: 920px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.3); opacity: 0; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.posz-modal.is-open .posz-modal-back { opacity: 1; }
.posz-modal.is-open .posz-modal-box { opacity: 1; transform: none; }
.posz-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #ece8e3; background: var(--posz-soft); }
.posz-modal-head h2 { margin: 0 !important; font-family: "Playfair Display", Georgia, serif !important; font-size: 18px !important; font-weight: 700 !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--posz-ink) !important; }
.posz-x { width: 40px; height: 40px; display: inline-flex !important; align-items: center; justify-content: center; padding: 0 !important; margin: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; font-size: 28px !important; line-height: 1 !important; color: var(--posz-ink) !important; cursor: pointer; }
.posz-x:hover { color: var(--posz-brand) !important; }
.posz-modal-body { overflow: auto; padding: 18px 20px 20px; -webkit-overflow-scrolling: touch; }
.posz-guide-img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.posz-guide-img.is-zoom { width: 180%; max-width: none; cursor: zoom-out; }
.posz-guide-note { margin: 14px 0 0 !important; font-size: 13px; color: var(--posz-muted); }
.posz-guide-hint { margin: 8px 0 0 !important; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #a8a29b; text-align: center; }

/* ================= Restock form ================= */
.posz-restock { margin: 16px 0; padding: 18px; background: var(--posz-soft); border: 1px solid #e4dfd8; border-left: 3px solid var(--posz-brand); }
.posz-restock[hidden] { display: none !important; }
.posz-rs-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px !important; font-family: "Playfair Display", Georgia, serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--posz-ink); }
.posz-rs-title svg { color: var(--posz-brand); }
.posz-rs-text { margin: 0 0 12px !important; font-size: 13.5px; font-weight: 500; color: var(--posz-muted); }
.posz-rs-size { color: var(--posz-ink); font-weight: 700; }
.posz-rs-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; margin: 0 !important; }
.posz-rs-field { display: block; margin: 0 !important; }
.posz-rs-field span { display: block; margin: 0 0 5px; font-size: 11.5px; font-weight: 600; letter-spacing: .04em; color: var(--posz-ink); }
.posz-rs-field input { width: 100% !important; height: 46px !important; min-height: 0 !important; margin: 0 !important; padding: 0 12px !important; background: #fff !important; color: var(--posz-ink) !important; border: 1px solid var(--posz-line) !important; border-radius: 0 !important; box-shadow: none !important; font-size: 14px !important; }
.posz-rs-field input:focus { outline: none !important; border-color: var(--posz-ink) !important; }
.posz-rs-field input.is-invalid { border-color: #c0392b !important; }
.posz-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.posz-rs-msg { grid-column: 1 / -1; margin: 0 !important; font-size: 13px; font-weight: 600; }
.posz-rs-msg:empty { display: none; }
.posz-rs-msg.is-ok { color: #1f7a4a; }
.posz-rs-msg.is-err { color: #c0392b; }

/* ================= Buttons ================= */
.posz-btn {
	display: inline-flex !important; align-items: center; justify-content: center; height: 46px; padding: 0 24px !important; margin: 0 !important;
	background: var(--posz-brand) !important; color: #fff !important; border: 1px solid var(--posz-brand) !important; border-radius: 0 !important; box-shadow: none !important;
	font-family: "Playfair Display", Georgia, serif !important; font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: .16em !important; text-transform: uppercase !important;
	text-decoration: none !important; white-space: nowrap; cursor: pointer; transition: background .25s, border-color .25s, color .25s;
}
.posz-btn:hover { background: var(--posz-ink) !important; border-color: var(--posz-ink) !important; color: #fff !important; }
.posz-btn-ghost { background: #fff !important; color: var(--posz-ink) !important; border-color: var(--posz-ink) !important; }
.posz-btn-ghost:hover { background: var(--posz-ink) !important; color: #fff !important; }
.posz-btn.is-loading { opacity: .6; pointer-events: none; }
.posz-add-err { margin: 10px 0 0 !important; font-size: 13px; font-weight: 600; color: #c0392b; }

/* ================= Added to your bag panel ================= */
.posz-drawer { position: fixed; inset: 0; z-index: 2147482500; }
.posz-drawer[hidden] { display: none !important; }
.posz-dr-back { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; cursor: pointer; }
.posz-dr-panel { position: absolute; top: 0; right: 0; bottom: 0; width: 430px; max-width: 100%; display: flex; flex-direction: column; background: #fff; box-shadow: -20px 0 60px rgba(0,0,0,.18); transform: translateX(100%); transition: transform .3s ease; }
.posz-drawer.is-open .posz-dr-back { opacity: 1; }
.posz-drawer.is-open .posz-dr-panel { transform: none; }
.posz-dr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; background: var(--posz-soft); border-bottom: 1px solid #e4dfd8; }
.posz-dr-head h2 { display: flex; align-items: center; gap: 8px; margin: 0 !important; font-family: "Playfair Display", Georgia, serif !important; font-size: 15px !important; font-weight: 700 !important; letter-spacing: .14em !important; text-transform: uppercase !important; color: var(--posz-ink) !important; }
.posz-dr-head h2 svg { color: var(--posz-brand); }
.posz-dr-body { flex: 1; overflow-y: auto; padding: 6px 20px 10px; }
.posz-dr-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #e4dfd8; background: #fff; }
.posz-dr-foot .posz-btn { width: 100%; }
/* Mini cart inside the panel */
.posz-dr-body .woocommerce-mini-cart__buttons { display: none !important; }
.posz-dr-body ul.woocommerce-mini-cart { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.posz-dr-body li.woocommerce-mini-cart-item { position: relative; display: block; min-height: 92px; margin: 0 !important; padding: 16px 28px 16px 88px !important; border-bottom: 1px solid #efebe6; list-style: none !important; font-size: 14px; line-height: 1.4; }
.posz-dr-body li.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 16px; width: 72px !important; height: 72px !important; object-fit: cover; margin: 0 !important; border: 1px solid #eee; }
.posz-dr-body li.woocommerce-mini-cart-item > a:not(.remove) { display: block; color: var(--posz-ink) !important; font-weight: 600; text-decoration: none !important; }
.posz-dr-body li.woocommerce-mini-cart-item .remove { position: absolute; top: 14px; right: 0; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; color: var(--posz-muted) !important; font-size: 18px; text-decoration: none !important; }
.posz-dr-body li.woocommerce-mini-cart-item .remove:hover { background: var(--posz-ink); color: #fff !important; }
.posz-dr-body .variation { margin: 4px 0 !important; font-size: 12px; color: var(--posz-muted); }
.posz-dr-body .variation dt, .posz-dr-body .variation dd { display: inline; margin: 0 !important; }
.posz-dr-body .variation dd p { display: inline; margin: 0; }
.posz-dr-body .quantity { display: block; margin-top: 4px; font-size: 13px; color: var(--posz-muted); }
.posz-dr-body .quantity .amount { color: var(--posz-brand); font-weight: 700; }
.posz-dr-body .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: center; margin: 0 !important; padding: 16px 0 6px !important; border: 0 !important; font-family: "Playfair Display", Georgia, serif; font-size: 16px; color: var(--posz-ink); }
.posz-dr-body .woocommerce-mini-cart__total strong { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 13px; }
.posz-dr-body .woocommerce-mini-cart__empty-message { padding: 40px 0; text-align: center; color: var(--posz-muted); }

/* ================= Mobile ================= */
@media (max-width: 600px) {
	.posz-size { min-width: 46px; height: 42px; padding: 0 12px !important; }
	.posz-rs-form { grid-template-columns: 1fr; }
	.posz-rs-form .posz-btn { width: 100%; }
	.posz-modal { padding: 0; align-items: flex-end; }
	.posz-modal-box { max-height: 92vh; }
	.posz-dr-panel { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.posz-modal-box, .posz-modal-back, .posz-dr-panel, .posz-dr-back, .posz-size { transition: none !important; }
}
