/* Scoped book purchase UI — all classes prefixed to avoid theme/WooCommerce conflicts */

.kc-book-purchase-wrap,
.kc-book-purchase-wrap *,
.kc-book-purchase-wrap *::before,
.kc-book-purchase-wrap *::after {
	box-sizing: border-box;
}

.kc-book-purchase-wrap {
	display: block;
	width: fit-content;
	max-width: 100%;
	font-family: inherit;
	line-height: 1.4;
}

.kc-book-purchase-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.kc-book-purchase-qty {
	display: inline-flex;
	margin: 0;
}

.kc-book-purchase-qty__select {
	appearance: none;
    width: 75px;
    height: 45px;
    margin: 0;
    padding: 0 34px 0 18px;
    border: 0;
    border-radius: 12px;
	background-color: #fff0f3;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239f1239' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	color: #9f1239;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(159, 18, 57, 0.14);
}

.kc-book-purchase-cta {
	display: inline-flex;
	flex-shrink: 0;
	min-width: 196px;
	height: 45px;
}

.kc-book-purchase-cta__button {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin: 0;
	padding: 0 28px;
	border: 1px solid #C41E3A;
	border-radius: 12px;
	font-family: "bhashaskool", Sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	overflow: hidden;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.kc-book-purchase-cta__button--buy {
	background: #C41E3A;
	color: #fff;
	box-shadow: 0 12px 28px rgba(225, 29, 72, 0.26);
}

.kc-book-purchase-cta__button--buy:hover,
.kc-book-purchase-cta__button--buy:focus-visible {
	background:#FFF0F3;
	color: #C41E3A;
	transform: translateY(-1px);
	box-shadow: 0 14px 30px rgba(225, 29, 72, 0.32);
}

.kc-book-purchase-cta__button--proceed {
	background: #fff0f3;
	color: #9f1239;
}

.kc-book-purchase-cta__button--proceed:hover,
.kc-book-purchase-cta__button--proceed:focus-visible {
	background: #ffe4e6;
	color: #9f1239;
	transform: translateY(-1px);
}

.kc-book-purchase-cta__button--owned {
	background: #f8fafc;
	color: #475569;
	border-color: #cbd5e1;
	box-shadow: none;
	cursor: default;
	text-decoration: none;
}

.kc-book-purchase-cta__button--owned:hover,
.kc-book-purchase-cta__button--owned:focus-visible {
	background: #f1f5f9;
	color: #334155;
	transform: none;
	box-shadow: none;
}

.kc-book-purchase-cta__label {
	display: inline-block;
	transition: opacity 0.15s ease;
}

.kc-book-purchase-cta__button--loading .kc-book-purchase-cta__label {
	opacity: 0;
}

.kc-book-purchase-cta__spinner {
	position: absolute;
	width: 22px;
	height: 22px;
	border: 2.5px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	opacity: 0;
	pointer-events: none;
	animation: kc-book-purchase-spin 0.7s linear infinite;
}

.kc-book-purchase-cta__button--proceed .kc-book-purchase-cta__spinner {
	border-color: rgba(159, 18, 57, 0.2);
	border-top-color: #9f1239;
}

.kc-book-purchase-cta__button--loading .kc-book-purchase-cta__spinner {
	opacity: 1;
}

.kc-book-purchase-cta__button--loading {
	cursor: wait;
	transform: none;
	pointer-events: none;
}

.kc-book-purchase-cta__button:disabled {
	cursor: wait;
}

@keyframes kc-book-purchase-spin {
	to {
		transform: rotate(360deg);
	}
}
