/* Anmka Tiered Offers - frontend styles (RTL-safe via logical properties). */

/* Hide the WooCommerce quantity input for tiered products; the unit sold is "1 bundle". */
.ato-tiers-active form.cart .quantity {
	display: none !important;
}

.ato-wrap {
	margin-block-end: 1em;
}

.ato-legend {
	font-weight: 600;
	margin-block-end: .5em;
	font-size: .95em;
}

.ato-tiers {
	border: 0;
	padding: 0;
	margin: 0 0 1em;
	display: flex;
	flex-wrap: wrap;
	gap: .75em;
}

.ato-tier {
	display: flex;
	align-items: flex-start;
	gap: .5em;
	border: 2px solid #dcdcde;
	border-radius: 10px;
	padding: .75em 1em;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease;
	min-width: 140px;
}

.ato-tier:hover {
	border-color: #a0a5aa;
}

.ato-tier:has(.ato-tier-radio:checked) {
	border-color: #1a7a4a;
	box-shadow: 0 0 0 1px #1a7a4a inset;
}

.ato-tier-radio {
	margin-block-start: .35em;
}

.ato-tier-body {
	display: flex;
	flex-direction: column;
	gap: .15em;
}

.ato-tier-label {
	font-weight: 600;
}

.ato-tier-price {
	font-size: 1.1em;
	font-weight: 700;
}

.ato-tier-regular {
	color: #8a8f94;
	font-size: .9em;
}

.ato-tier-save {
	color: #1a7a4a;
	font-size: .85em;
	font-weight: 600;
}

/* Selection pills. */
.ato-selections {
	border: 0;
	padding: 0;
	margin: 0 0 1em;
}

.ato-pills {
	display: flex;
	flex-wrap: wrap;
	gap: .5em;
}

.ato-pill {
	position: relative;
}

.ato-pill input {
	position: absolute;
	inset-inline-start: .6em;
	inset-block-start: 50%;
	transform: translateY(-50%);
	opacity: 0;
	pointer-events: none;
}

.ato-pill .ato-pill-label {
	display: inline-block;
	border: 1.5px solid #c8cdd2;
	border-radius: 999px;
	padding: .45em 1em;
	cursor: pointer;
	transition: background .15s ease, border-color .15s ease;
}

.ato-pill input:checked + .ato-pill-label {
	background: #1a7a4a;
	border-color: #1a7a4a;
	color: #fff;
}

.ato-pill input:disabled + .ato-pill-label {
	opacity: .45;
	cursor: not-allowed;
}

.ato-pill input:focus-visible + .ato-pill-label {
	outline: 2px solid #1a7a4a;
	outline-offset: 2px;
}

.ato-counter {
	font-size: .85em;
	color: #646970;
	margin-block-start: .5em;
}

.ato-notice,
.ato-reason {
	font-size: .9em;
	padding: .5em .9em;
	border-radius: 6px;
}

.ato-notice {
	background: #fcf8e3;
	border-inline-start: 4px solid #f0b849;
}

.ato-reason {
	background: #fef1f1;
	border-inline-start: 4px solid #b32d2e;
}

/* Woodmart sticky bar / buy-now disabled states. */
.ato-wrap .disabled[disabled],
form.cart .disabled[disabled] {
	opacity: .5;
	cursor: not-allowed;
}
