/* =========================================================================
   DecantQ commerce base — shared by the cart (.dq-cart) and checkout (.dq-co):
   kit reset, amounts, notices, mini vials. Loaded before cart.css / checkout.css.
   ====================================================================== */

/* The site kit styles every link, heading, button and field (uppercase, wide letter-spacing,
   its own fonts and borders). Inside the cart, start from neutral and let the rules below decide. */
/* :where() keeps this at 0,2,0: above the kit's 0,1,1 element rules, below every component rule in this plugin. */
.dq-cart.dq-cart :where(h1, h2, h3, p, a, button, label, input, select, textarea, th, td, summary, span, li, dt, dd),
.dq-co.dq-co :where(h1, h2, h3, p, a, button, label, input, select, textarea, th, td, summary, span, li, dt, dd),
.dq-cart-bar.dq-cart-bar :where(a, span, button) {
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
}
.dq-cart.dq-cart :where(a),
.dq-co.dq-co :where(a) {
	color: inherit;
}
/* WooCommerce buttons: the kit's ".elementor-kit-X .button" (0,2,0) would tie the reset above. */
.dq-cart.dq-cart :is(.button, button),
.dq-co.dq-co :is(.button, button, #place_order) {
	text-transform: none;
	letter-spacing: normal;
	font-family: inherit;
}
/* WooCommerce wraps amounts in <bdi>; keep one reading order on this English page. */
html:not([dir="rtl"]) .dq-cart bdi,
html:not([dir="rtl"]) .dq-co bdi,
html:not([dir="rtl"]) .dq-cart-bar bdi {
	direction: ltr;
}
.dq-cart .screen-reader-text,
.dq-co .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}
.dq-cart .dq-icon,
.dq-co .dq-icon {
	flex: none;
	width: 20px;
	height: 20px;
}
/* ---------- Notices ---------- */

.dq-cart .woocommerce-notices-wrapper:empty,
.dq-co .woocommerce-notices-wrapper:empty {
	display: none;
}
.dq-cart .woocommerce-message,
.dq-co .woocommerce-message,
.dq-cart .woocommerce-info,
.dq-co .woocommerce-info,
.dq-cart .woocommerce-error,
.dq-co .woocommerce-error {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin: 0 0 24px;
	padding: 14px 18px 14px 50px;
	border: 0;
	border-radius: var(--dq-radius);
	background: var(--dq-panel);
	font-size: 15px;
	line-height: 1.45;
	color: var(--dq-ink);
	list-style: none;
}
.dq-cart .woocommerce-message::before,
.dq-co .woocommerce-message::before,
.dq-cart .woocommerce-info::before,
.dq-co .woocommerce-info::before {
	top: 50%;
	left: 18px;
	transform: translateY(-50%);
	color: var(--dq-amber);
}
.dq-cart .woocommerce-error,
.dq-co .woocommerce-error {
	background: #fbefec;
}
.dq-cart :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus,
.dq-co :is(.woocommerce-message, .woocommerce-info, .woocommerce-error):focus {
	outline: none;
}
/* WooCommerce re-shows "Your cart is currently empty." as a notice; the empty block already says it. */
.dq-cart .cart-empty.woocommerce-info,
.dq-co .cart-empty.woocommerce-info {
	display: none;
}
.dq-cart .woocommerce-error::before,
.dq-co .woocommerce-error::before {
	top: 50%;
	left: 18px;
	transform: translateY(-50%);
	color: #a4321d;
}
/* Error lists stack, one message per line */
.dq-cart ul.woocommerce-error,
.dq-co ul.woocommerce-error {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}
.dq-cart .woocommerce-error li,
.dq-co .woocommerce-error li {
	margin: 0;
}
.dq-cart.dq-cart .woocommerce-message .button,
.dq-co.dq-co .woocommerce-message .button,
.dq-cart.dq-cart .woocommerce-info .button,
.dq-co.dq-co .woocommerce-info .button {
	order: 2;
	float: none;
	margin-inline-start: auto;
	padding: 0;
	border: 0;
	background: none;
	font-size: 14px;
	font-weight: 600;
	color: var(--dq-amber);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.dq-cart.dq-cart .woocommerce-message .button:hover,
.dq-co.dq-co .woocommerce-message .button:hover {
	background: none;
	color: var(--dq-amber-hover);
}

/* ---------- Mini vial (same drawing as the product page size selector) ---------- */

.dq-cart .dq-mini-vial,
.dq-co .dq-mini-vial {
	display: inline-flex;
	flex: none;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	width: calc(var(--w) + 3px);
}
.dq-cart .dq-mini-vial__cap,
.dq-co .dq-mini-vial__cap {
	width: calc(var(--w) - 1px);
	height: calc(var(--h) * 0.44);
	border-radius: 2px 2px 1px 1px;
	background: linear-gradient(90deg, var(--dq-gold-lo) 0%, var(--dq-gold-hi) 28%, var(--dq-gold) 52%, var(--dq-gold-lo) 100%);
}
.dq-cart .dq-mini-vial__collar,
.dq-co .dq-mini-vial__collar {
	width: calc(var(--w) + 2px);
	height: 3px;
	border-radius: 1px;
	background: linear-gradient(90deg, var(--dq-gold-lo) 0%, var(--dq-gold-hi) 32%, var(--dq-gold) 58%, var(--dq-gold-lo) 100%);
}
.dq-cart .dq-mini-vial__body,
.dq-co .dq-mini-vial__body {
	position: relative;
	overflow: hidden;
	width: var(--w);
	height: var(--h);
	border-radius: 1px 1px 4px 4px;
	background: linear-gradient(180deg, var(--dq-vial-top, var(--dq-glass-top)), var(--dq-vial-bottom, var(--dq-glass-bottom)));
	box-shadow: inset 0 0 0 1px var(--dq-vial-edge, rgba(120, 60, 20, 0.22));
}
.dq-cart .dq-mini-vial__body::after,
.dq-co .dq-mini-vial__body::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 12%, rgba(255, 255, 255, 0) 30% 72%, rgba(255, 255, 255, 0.22) 86%);
}
.dq-cart .dq-mini-vial__liquid,
.dq-co .dq-mini-vial__liquid {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	height: 80%;
	background: linear-gradient(180deg, rgba(var(--dq-liquid), 0.4), rgba(var(--dq-liquid), 0.78));
	box-shadow: inset 0 1px 0 rgba(255, 226, 190, 0.6);
}
