/* Store Toolkit — front-end styles. Colours follow the theme where possible. */

/* Order via WhatsApp */
.stk-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 12px 0 0;
	padding: 12px 20px;
	background: #25d366;
	color: #fff !important;
	border-radius: 4px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .15s;
}
.stk-wa-btn:hover,
.stk-wa-btn:focus-visible { background: #1da851; }
.wc-proceed-to-checkout .stk-wa-btn { display: flex; width: 100%; }
.stk-wa-cart-wrap { max-width: 1200px; margin: 0 auto 32px; padding: 0 16px; text-align: right; }

/* Back in stock */
.stk-bis { margin: 12px 0 16px; max-width: 460px; }
.stk-bis-label { display: block; font-weight: 600; margin-bottom: 6px; }
.stk-bis-row { display: flex; gap: 8px; }
.stk-bis-email { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid currentColor; border-radius: 4px; font: inherit; }
.stk-bis-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.stk-bis-btn {
	padding: 10px 18px;
	border: 0;
	border-radius: 4px;
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.stk-bis-btn[disabled] { opacity: .6; cursor: wait; }
.stk-bis-msg { margin: 6px 0 0; font-size: .9em; min-height: 1.2em; }
.stk-bis.is-done .stk-bis-row { display: none; }

/* Live search */
.stk-search-results {
	position: absolute;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	min-width: 280px;
	max-height: 70vh;
	overflow-y: auto;
	z-index: 9999;
	background: var(--wp--preset--color--base, #fff);
	color: var(--wp--preset--color--contrast, #111);
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 6px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
	text-align: left;
}
.stk-search-results[hidden] { display: none; }
.stk-sr-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; color: inherit !important; text-decoration: none !important; }
.stk-sr-item img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; flex: none; }
.stk-sr-text { display: flex; flex-direction: column; min-width: 0; }
.stk-sr-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk-sr-price { font-size: .9em; opacity: .8; }
.stk-sr-price del { opacity: .6; }
.stk-sr-item:hover, .stk-sr-item.is-active, .stk-sr-all:hover, .stk-sr-all.is-active { background: rgba(0, 0, 0, .05); }
.stk-sr-all { display: block; padding: 10px 12px; border-top: 1px solid rgba(0, 0, 0, .08); font-weight: 600; color: inherit !important; text-decoration: underline; }
.stk-sr-empty { padding: 12px; opacity: .7; }

/* Swatches */
.stk-swatch-select {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	padding: 0 !important;
}
.stk-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0; }
.stk-swatch {
	min-width: 48px;
	padding: 9px 14px;
	border: 1px solid rgba(0, 0, 0, .25);
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	line-height: 1.2;
	cursor: pointer;
}
.stk-swatch:hover { border-color: currentColor; }
.stk-swatch.is-selected {
	border-color: var(--wp--preset--color--contrast, #111);
	background: var(--wp--preset--color--contrast, #111);
	color: var(--wp--preset--color--base, #fff);
}
.stk-swatch.is-disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.variations_form .reset_variations { display: inline-block; margin-top: 6px; }
