/**
 * Wave 162a — Buy button styles.
 *
 * Brand: #328cc1 primary, #246991 hover (per [[feedback_use_brand_colors_in_lms]]).
 *
 * Class shape:
 *   .itk-buy-btn                          base, all buttons
 *   .itk-buy-btn--primary | --outline | --minimal   style variants
 *   .itk-buy-btn--sm | --md | --lg        size variants
 *   .itk-buy-btn--buy | --subscribe | --bulk | --continue | --free-* variants
 *
 * The variant classes are mostly for theming hooks. The base + style +
 * size classes do all the actual styling out of the box.
 */

.itk-buy-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
	box-sizing: border-box;
	white-space: nowrap;
}

.itk-buy-btn:focus-visible {
	outline: 3px solid rgba(50, 140, 193, 0.45);
	outline-offset: 2px;
}

.itk-buy-btn:active {
	transform: translateY(1px);
}

/* ---------- Style variants ---------- */

.itk-buy-btn--primary {
	background-color: #328cc1;
	color: #ffffff;
	border: 2px solid #328cc1;
}
.itk-buy-btn--primary:hover {
	background-color: #246991;
	border-color: #246991;
	color: #ffffff;
	text-decoration: none;
}

.itk-buy-btn--outline {
	background-color: transparent;
	color: #328cc1;
	border: 2px solid #328cc1;
}
.itk-buy-btn--outline:hover {
	background-color: #328cc1;
	color: #ffffff;
	text-decoration: none;
}

.itk-buy-btn--minimal {
	background-color: transparent;
	color: #328cc1;
	border: 2px solid transparent;
	padding-left: 0;
	padding-right: 0;
}
.itk-buy-btn--minimal:hover {
	color: #246991;
	text-decoration: underline;
}

/* ---------- Size variants ---------- */

.itk-buy-btn--sm {
	padding: 8px 16px;
	font-size: 14px;
}

.itk-buy-btn--md {
	padding: 12px 24px;
	font-size: 16px;
}

.itk-buy-btn--lg {
	padding: 16px 32px;
	font-size: 18px;
}

/* ---------- Login note (logged-out buy button) ---------- */

.itk-buy-btn__login-note {
	margin: 8px 0 0;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.4;
}

.itk-buy-btn__login-note a {
	color: #328cc1;
	font-weight: 600;
	text-decoration: none;
}

.itk-buy-btn__login-note a:hover {
	color: #246991;
	text-decoration: underline;
}

/* ---------- Wave 194 — Coupon field ---------- */

.itk-buy {
	display: inline-block;
}

.itk-buy-btn__price {
	display: inline;
}

/* Struck-through original price shown when a coupon is applied. */
.itk-buy-btn__was {
	text-decoration: line-through;
	opacity: 0.7;
	font-weight: 600;
	margin-right: 2px;
}

.itk-coupon {
	margin: 12px 0 0;
	max-width: 360px;
}

.itk-coupon__label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

.itk-coupon__row {
	display: flex;
	align-items: stretch;
	gap: 8px;
	flex-wrap: wrap;
}

.itk-coupon__input {
	flex: 1 1 auto;
	min-width: 140px;
	padding: 9px 12px;
	font-size: 15px;
	font-family: inherit;
	text-transform: uppercase;
	border: 2px solid #cbd5e1;
	border-radius: 8px;
	background: #ffffff;
	color: #111827;
	box-sizing: border-box;
}

.itk-coupon__input:focus {
	outline: none;
	border-color: #328cc1;
	box-shadow: 0 0 0 3px rgba(50, 140, 193, 0.2);
}

.itk-coupon__apply {
	flex: 0 0 auto;
	padding: 9px 18px;
	font-size: 15px;
	font-weight: 700;
	font-family: inherit;
	color: #ffffff;
	background: #328cc1;
	border: 2px solid #328cc1;
	border-radius: 8px;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.itk-coupon__apply:hover {
	background: #246991;
	border-color: #246991;
}

.itk-coupon__apply:disabled {
	opacity: 0.6;
	cursor: default;
}

.itk-coupon__remove {
	flex: 0 0 auto;
	padding: 0 8px;
	font-size: 13px;
	font-weight: 600;
	font-family: inherit;
	color: #6b7280;
	background: none;
	border: none;
	cursor: pointer;
	text-decoration: underline;
}

.itk-coupon__remove:hover {
	color: #b91c1c;
}

.itk-coupon__msg {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
	min-height: 1em;
}

.itk-coupon__msg--ok {
	color: #15803d;
	font-weight: 600;
}

.itk-coupon__msg--error {
	color: #b91c1c;
	font-weight: 600;
}
