.qd-picker { margin: 16px 0; }
.qd-picker--waiting { display: none; } /* variable product: shown by JS once a variation is chosen */
.qd-picker__title { font-weight: 700; margin: 0 0 10px; }
.qd-picker__incart { margin: -4px 0 10px; font-size: .86em; font-weight: 600; color: #1e7e34;
	background: #f2faf3; border: 1px dashed #bfe6bf; border-radius: 8px; padding: 6px 10px; display: inline-block; }

/* The picker replaces the quantity field entirely — hide WooCommerce/theme
   +/- quantity UI whenever a picker lives in the same add-to-cart form.
   display:none keeps the input in the DOM, so the JS-set quantity still submits. */
form.cart:has(.qd-picker) .quantity { display: none !important; }

.qd-picker__cards { display: flex; gap: 12px; flex-wrap: wrap; }

.qd-card { position: relative; display: flex; flex-direction: column; align-items: center;
	min-width: 120px; padding: 16px 14px 0; border: 1.5px solid var(--qd-box-border, #e5e7eb); border-radius: 16px;
	background: linear-gradient(180deg, var(--qd-box-bg, #fff), color-mix(in srgb, var(--qd-box-bg, #fff) 97%, #000));
	cursor: pointer; font: inherit; overflow: hidden;
	text-transform: none; letter-spacing: normal; line-height: 1.35; text-align: center;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
	transition: border-color .15s, box-shadow .15s, transform .15s; }
.qd-card:hover { border-color: var(--qd-active, #f97316); box-shadow: 0 4px 14px rgba(0,0,0,.09); transform: translateY(-1px); }
.qd-card.is-active { border-color: var(--qd-active, #f97316); box-shadow: 0 0 0 3px color-mix(in srgb, var(--qd-active, #f97316) 18%, transparent), 0 4px 14px rgba(0,0,0,.08); }

.qd-card__qty { font-weight: 700; font-size: 1em; }
.qd-card__base { font-size: .75em; opacity: .5; text-decoration: line-through; margin-top: 3px; }
.qd-card__base .amount, .qd-card__base bdi { color: inherit; }
.qd-card__price { font-weight: 800; font-size: 1.14em; margin: 1px 0 2px; }
.qd-card__unit { font-size: .7em; opacity: .55; margin-bottom: 12px; }

.qd-card__label { align-self: stretch; margin-top: auto; background: var(--qd-label-bg, #38bdf8); color: var(--qd-label-text, #fff);
	font-size: 10.5px; font-weight: 700; text-transform: uppercase; padding: 5px 6px; text-align: center; letter-spacing: .04em; }

.qd-card__badge { position: absolute; top: 8px; right: 8px; background: var(--qd-badge-bg, #f97316); color: var(--qd-badge-text, #fff);
	font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

.qd-card__check { display: none; position: absolute; left: 50%; transform: translateX(-50%); bottom: 6px; width: 20px; height: 20px;
	border-radius: 50%; background: var(--qd-active, #f97316); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.qd-card.is-active .qd-card__check { display: block; }
.qd-card:not(:has(.qd-card__label)) { padding-bottom: 14px; }
.qd-card.is-active:not(:has(.qd-card__label)) { padding-bottom: 30px; }
.qd-card.is-active:has(.qd-card__label) .qd-card__label { padding-bottom: 26px; }

/* ---- Layout: rows & packs (full-width option rows) ---- */
.qd-picker--rows .qd-picker__cards,
.qd-picker--packs .qd-picker__cards { flex-direction: column; gap: 10px; }

.qd-row { display: flex; flex-direction: row !important; align-items: center !important; gap: 14px; width: 100%; min-width: 0; text-align: left !important;
	padding: 14px 16px !important; border: 1.5px solid var(--qd-box-border, #e5e7eb); border-radius: 14px;
	background: var(--qd-box-bg, #fff); overflow: visible; }
.qd-row:hover { transform: none; }
.qd-row.is-active { background: color-mix(in srgb, var(--qd-active, #f97316) 6%, var(--qd-box-bg, #fff)); }

.qd-row__radio { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--qd-box-border, #cbd2d9); position: relative; transition: border-color .15s; }
.qd-row.is-active .qd-row__radio { border-color: var(--qd-active, #f97316); }
.qd-row.is-active .qd-row__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--qd-active, #f97316); }

.qd-row__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qd-row__title { font-weight: 700; display: flex; align-items: center; gap: 8px; }
.qd-row__badge { background: var(--qd-badge-bg, #f97316); color: var(--qd-badge-text, #fff); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.qd-row__sub { font-size: .82em; opacity: .65; }

.qd-row__price { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.qd-row__price del { font-size: .8em; opacity: .55; text-decoration: line-through; }
.qd-row__price del .amount, .qd-row__price del bdi { color: inherit; }
.qd-row__price strong { font-size: 1.14em; font-weight: 800; }
.qd-row__price small { font-size: .7em; opacity: .6; font-weight: 400; }
.qd-row__price .qd-row__unitnote .amount, .qd-row__price .qd-row__unitnote bdi { color: inherit; }

.qd-row__flag { position: absolute; top: -9px; right: 12px; background: var(--qd-label-bg, #38bdf8);
	font-size: 10.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.15); white-space: nowrap; }
.qd-row__flag, .qd-row__flag * { color: var(--qd-label-text, #fff) !important; }
.qd-row { position: relative; margin-top: 6px; }
.qd-row .qd-card__check { display: none !important; }

/* ---- "Add one more" nudge ---- */
/* Hint under the item name (item-data line, Blocks + classic). */
.wc-block-components-product-details__qd-nudge { list-style: none; font-size: .82em; font-weight: 600; color: #1e7e34; }
.wc-block-components-product-details__qd-nudge .wc-block-components-product-details__name { display: none; }
dl.variation dt.variation-qd-nudge { display: none; }
dl.variation dd.variation-qd-nudge { font-size: .82em; font-weight: 600; color: #1e7e34; margin: 0; }
dl.variation dd.variation-qd-nudge p { display: inline; margin: 0; }

/* Gift pill in classic contexts (mini cart, cart, checkout review) + Blocks gift line. */
.qd-inline-pill { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
	color: #1e7e34; background: #e7f6e7; border: 1px solid #bfe6bf; white-space: nowrap; vertical-align: 1px; }
.wc-block-components-product-details__qd-gift { list-style: none; display: inline-block; padding: 1px 9px; border-radius: 999px;
	font-size: 12px; font-weight: 700; color: #1e7e34; background: #e7f6e7; border: 1px solid #bfe6bf; }
.wc-block-components-product-details__qd-gift .wc-block-components-product-details__name { display: none; }

/* Compact inline nudge button (classic cart/checkout item rows). */
.qd-nudge-btn--inline { width: auto; display: inline-flex; padding: 5px 12px 5px 8px; font-size: .82em; margin-top: 6px; border-radius: 999px; gap: 7px; }
.qd-nudge-btn--inline .qd-nudge-btn__plus { width: 18px; height: 18px; font-size: 13px; line-height: 18px; }

/* Clickable banner above the cart/checkout block. */
.qd-nudges { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; }
.qd-nudge-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
	padding: 11px 14px; border: 1.5px dashed #1e7e34; border-radius: 12px; background: #f2faf3; color: #1e1e1e;
	font: inherit; font-size: .92em; text-transform: none; letter-spacing: normal; transition: background .12s, border-color .12s; }
.qd-nudge-btn:hover { background: #e7f6e7; border-style: solid; }
.qd-nudge-btn__plus { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #1e7e34; color: #fff;
	font-weight: 700; font-size: 16px; line-height: 24px; text-align: center; }
