/* Checkout “View license” — BeatStore tokens, ghost until hover. */

.beatstore-contract-preview-btn {
	--beatstore-accent: #c6f22e;
	--beatstore-accent-ink: #141b03;
	appearance: none;
	display: inline-block;
	margin-left: 0.55em;
	vertical-align: middle;
	border: 1px solid color-mix(in srgb, var(--beatstore-accent) 70%, currentColor);
	border-radius: 8px;
	padding: 0.22rem 0.7rem;
	background: color-mix(in srgb, var(--beatstore-accent) 14%, transparent);
	color: var(--beatstore-accent);
	font: inherit;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.25;
	max-width: 120px;
	white-space: nowrap;
	cursor: pointer;
	box-shadow: none;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	transition:
		background 180ms cubic-bezier(0.32, 0.72, 0, 1),
		border-color 180ms cubic-bezier(0.32, 0.72, 0, 1),
		color 180ms cubic-bezier(0.32, 0.72, 0, 1),
		transform 180ms cubic-bezier(0.32, 0.72, 0, 1),
		box-shadow 180ms cubic-bezier(0.32, 0.72, 0, 1);
}

.beatstore-contract-preview-btn:hover,
.beatstore-contract-preview-btn:focus-visible {
	background: var(--beatstore-accent);
	border-color: var(--beatstore-accent);
	color: var(--beatstore-accent-ink);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px color-mix(in srgb, var(--beatstore-accent) 38%, transparent);
}

.beatstore-contract-preview-btn:active {
	transform: translateY(0) scale(0.98);
	box-shadow: none;
}

.beatstore-contract-preview-btn:focus-visible {
	outline: 2px solid var(--beatstore-accent);
	outline-offset: 2px;
}

.beatstore-contract-dialog {
	--beatstore-accent: #c6f22e;
	--beatstore-accent-ink: #141b03;
	width: min(42rem, 92vw);
	max-height: min(82vh, 52rem);
	padding: 0;
	border: 1px solid color-mix(in srgb, var(--beatstore-accent) 28%, #262b34);
	border-radius: 14px;
	background: #0a0b0e;
	color: #edebe3;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
	font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
	overflow: hidden;
}

.beatstore-contract-dialog::backdrop {
	background: rgba(10, 11, 14, 0.62);
}

.beatstore-contract-dialog[open] {
	animation: beatstore-contract-in 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

.beatstore-contract-dialog[open]::backdrop {
	animation: beatstore-contract-backdrop 220ms ease;
}

.beatstore-contract-dialog__bar {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding: 0.65rem 0.75rem;
	border-bottom: 1px solid #262b34;
	background: #12151b;
}

.beatstore-contract-dialog__close {
	appearance: none;
	border: 1px solid #3a4150;
	border-radius: 8px;
	padding: 0.35rem 0.75rem;
	background: transparent;
	color: #edebe3;
	font: inherit;
	font-size: 0.8rem;
	font-weight: 700;
	cursor: pointer;
	transition:
		background 180ms cubic-bezier(0.32, 0.72, 0, 1),
		border-color 180ms cubic-bezier(0.32, 0.72, 0, 1),
		color 180ms cubic-bezier(0.32, 0.72, 0, 1);
}

.beatstore-contract-dialog__close:hover,
.beatstore-contract-dialog__close:focus-visible {
	background: var(--beatstore-accent);
	border-color: var(--beatstore-accent);
	color: var(--beatstore-accent-ink);
}

.beatstore-contract-dialog__body {
	max-height: calc(82vh - 3.5rem);
	overflow: auto;
	padding: 1.25rem 1.35rem 1.5rem;
	background: #f1efe7;
	color: #131510;
	font-size: 0.92rem;
	line-height: 1.55;
}

.beatstore-contract-dialog__body.is-loading {
	color: #4e5248;
}

@keyframes beatstore-contract-in {
	from {
		opacity: 0;
		transform: translate3d(0, 10px, 0) scale(0.98);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes beatstore-contract-backdrop {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.wc-block-components-product-details a.beatstore-contract-preview-btn {
	margin-left: 0;
	text-decoration: none;
	color: var(--beatstore-accent);
}

.wc-block-components-product-details a.beatstore-contract-preview-btn:hover,
.wc-block-components-product-details a.beatstore-contract-preview-btn:focus-visible {
	color: var(--beatstore-accent-ink);
}

@media (prefers-reduced-motion: reduce) {
	.beatstore-contract-preview-btn,
	.beatstore-contract-dialog__close,
	.beatstore-contract-dialog[open],
	.beatstore-contract-dialog[open]::backdrop {
		transition: none;
		animation: none;
		transform: none;
	}
}
