/* Armeria 3S Toolkit — F2 in-store products + 18+ note. Reads theme tokens (--a3s-*) with own fallbacks. */

/* Notice block ------------------------------------------------------------ */
.a3s-instore {
	margin: 0 0 20px;
	font-family: var(--a3s-font-body, inherit);
	color: var(--a3s-color-text, #231f20);
}

.a3s-instore .a3s-instore__alert {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding-bottom: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--a3s-color-border, #dcd9d5);
}

.a3s-instore .a3s-instore__icon {
	flex: 0 0 auto;
	width: 53px;
	height: 46px;
	color: var(--a3s-color-error, #c8102e);
}

.a3s-instore .a3s-instore__title {
	margin: 0 0 4px;
	font-size: 16px;
	line-height: 22px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--a3s-color-error, #c8102e);
}

.a3s-instore .a3s-instore__text {
	font-size: 13px;
	line-height: 17px;
}

.a3s-instore .a3s-instore__text p {
	margin: 0 0 4px;
}

.a3s-instore .a3s-instore__more {
	font-size: 13px;
	color: inherit;
	text-decoration: underline;
}

/* CTA buttons ------------------------------------------------------------- */
.a3s-instore .a3s-instore__ctas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.a3s-instore .a3s-instore__ctas li {
	margin: 0;
	padding: 0;
}

.a3s-instore .a3s-instore__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-sizing: border-box;
	width: 100%;
	min-height: 58px;
	padding: 8px 16px;
	border: 1px solid var(--a3s-color-secondary, #231f20);
	border-radius: var(--a3s-radius, 0);
	background: var(--a3s-color-bg, #fff);
	color: var(--a3s-color-secondary, #231f20);
	font-size: 16px;
	line-height: 1.2;
	font-weight: 500;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 150ms ease-in-out, color 150ms ease-in-out, border-color 150ms ease-in-out;
}

.a3s-instore .a3s-instore__ctas li:first-child .a3s-instore__cta {
	border-color: var(--a3s-color-primary, #e95e1b);
	background: var(--a3s-color-primary, #e95e1b);
	color: var(--a3s-color-primary-contrast, #231f20);
}

.a3s-instore .a3s-instore__cta:hover,
.a3s-instore .a3s-instore__ctas li:first-child .a3s-instore__cta:hover {
	border-color: var(--a3s-color-secondary, #231f20);
	background: var(--a3s-color-secondary, #231f20);
	color: #fff;
}

.a3s-instore .a3s-instore__cta:focus-visible,
.a3s-instore .a3s-instore__more:focus-visible {
	outline: 2px solid var(--a3s-color-primary, #e95e1b);
	outline-offset: 2px;
	box-shadow: 0 0 0 3px rgba(233, 94, 27, .35);
}

.a3s-instore .a3s-instore__cta-icon {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
}

@media (max-width: 767px) {
	.a3s-instore .a3s-instore__icon {
		width: 30px;
		height: 26px;
	}

	.a3s-instore .a3s-instore__cta {
		min-height: 48px;
		font-size: 14px;
	}

	.a3s-instore .a3s-instore__ctas {
		grid-template-columns: 1fr 1fr;
	}
}

/* Price replacement ------------------------------------------------------- */
.a3s-price-instore {
	font-weight: 600;
}

/* Loop: own badge for themes without armeria3s-badges --------------------- */
:where(ul.products li.product) {
	position: relative;
}

/* Zero specificity: the theme's own badge styles (armeria3s-badges) always win. */
:where(.a3s-badge--instore) {
	display: inline-block;
	padding: 5px 7px;
	background: var(--a3s-color-secondary, #231f20);
	color: var(--a3s-color-accent, #ffde17);
	font-size: 12px;
	line-height: 13.2px;
	font-weight: 500;
	border-radius: var(--a3s-radius, 0);
}

.a3s-badge--float {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
}

/* 18+ note on the product page -------------------------------------------- */
.a3s-age-note {
	display: flex;
	gap: 12px;
	align-items: center;
	margin: 0 0 16px;
	padding: 10px 12px;
	border: 1px solid var(--a3s-color-border, #dcd9d5);
	background: var(--a3s-color-surface, #f3f2f0);
	color: var(--a3s-color-text, #231f20);
	font-size: 13px;
	line-height: 17px;
}

.a3s-age-note__badge {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--a3s-color-secondary, #231f20);
	color: var(--a3s-color-accent, #ffde17);
	font-weight: 700;
	font-size: 13px;
}

.a3s-age-note__text p {
	margin: 0;
}

/* Classic checkout checkbox ----------------------------------------------- */
.a3s-age-confirm {
	margin: 0 0 12px;
}

.a3s-age-confirm .form-row {
	margin: 0;
}

/* Visually hidden, read by screen readers. */
.a3s-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.a3s-instore .a3s-instore__cta {
		transition: none;
	}
}
