/* Simple Event Tickets — front-end styles */

.set-widget {
	max-width: 480px;
	margin: 2rem auto;
	padding: 2rem 2rem 1.5rem;
	border: 1px solid #ddd;
	border-radius: 12px;
	background: #fff;
	font-family: inherit;
	box-shadow: 0 4px 20px rgba(0,0,0,.07);
}

/* ── Notices ── */
.set-notice {
	padding: .75rem 1rem;
	border-radius: 8px;
	margin-bottom: 1.25rem;
	font-size: .9rem;
}
.set-notice--success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.set-notice--info {
	background: #d1ecf1;
	color: #0c5460;
	border: 1px solid #bee5eb;
}

/* ── Header ── */
.set-header {
	margin-bottom: 1.25rem;
}
.set-title {
	font-size: 1.5rem;
	font-weight: 700;
	margin: 0 0 .25rem;
	line-height: 1.2;
}
.set-date {
	font-size: .95rem;
	color: #555;
	margin: .2rem 0;
	font-weight: 600;
}
.set-venue {
	font-size: .9rem;
	color: #666;
	margin: .2rem 0;
}

/* ── Price ── */
.set-price {
	display: flex;
	align-items: baseline;
	gap: .5rem;
	margin-bottom: 1rem;
}
.set-price__amount {
	font-size: 2rem;
	font-weight: 800;
	color: #1a1a1a;
}
.set-price__label {
	font-size: .85rem;
	color: #888;
}

/* ── Availability ── */
.set-availability {
	font-size: .9rem;
	margin-bottom: 1.25rem;
	min-height: 1.4em;
}
.set-avail__ok {
	color: #2e7d32;
	font-weight: 600;
}
.set-avail__low {
	color: #c62828;
	font-weight: 700;
}
.set-avail__sold-out {
	color: #999;
	font-style: italic;
}

/* ── Quantity selector ── */
.set-selector {
	margin-bottom: 1rem;
}
.set-selector__label {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: #555;
	margin-bottom: .4rem;
}
.set-qty {
	display: flex;
	align-items: center;
	gap: 0;
	width: fit-content;
	border: 2px solid #222;
	border-radius: 8px;
	overflow: hidden;
}
.set-qty__btn {
	background: #fff;
	border: none;
	padding: .5rem 1rem;
	font-size: 1.3rem;
	cursor: pointer;
	line-height: 1;
	color: #222;
	transition: background .15s;
}
.set-qty__btn:hover:not(:disabled) {
	background: #f0f0f0;
}
.set-qty__btn:disabled {
	color: #ccc;
	cursor: default;
}
.set-qty__input {
	border: none;
	border-left: 2px solid #222;
	border-right: 2px solid #222;
	padding: .5rem .75rem;
	width: 3.5rem;
	text-align: center;
	font-size: 1.1rem;
	font-weight: 700;
	background: #fff;
	-moz-appearance: textfield;
	pointer-events: none; /* buttons only — prevents direct keyboard editing */
	user-select: none;
	caret-color: transparent;
}
.set-qty__input::-webkit-inner-spin-button,
.set-qty__input::-webkit-outer-spin-button {
	display: none;
}
/* Ensure buttons are never clipped */
.set-qty__btn {
	flex-shrink: 0;
	min-width: 2.5rem;
}

/* ── Total ── */
.set-total {
	margin: .75rem 0 0;
	font-size: .95rem;
	color: #444;
}
.set-total__amount {
	font-size: 1.1rem;
	color: #1a1a1a;
}

/* ── Buy button ── */
.set-btn-buy {
	display: block;
	width: 100%;
	padding: 1rem;
	margin-top: 1rem;
	background: #1a1a1a;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: .05em;
	cursor: pointer;
	transition: background .2s, transform .1s;
}
.set-btn-buy:hover:not(:disabled) {
	background: #333;
}
.set-btn-buy:active:not(:disabled) {
	transform: scale(.98);
}
.set-btn-buy--sold-out,
.set-btn-buy:disabled {
	background: #ccc;
	color: #888;
	cursor: not-allowed;
}

/* ── Secure note ── */
.set-secure {
	text-align: center;
	font-size: .78rem;
	color: #aaa;
	margin: .5rem 0 0;
}

/* ── Loading ── */
.set-loading {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin-top: 1rem;
	font-size: .9rem;
	color: #555;
}
.set-spinner {
	width: 20px;
	height: 20px;
	border: 3px solid #ddd;
	border-top-color: #1a1a1a;
	border-radius: 50%;
	animation: set-spin .7s linear infinite;
	flex-shrink: 0;
}
@keyframes set-spin {
	to { transform: rotate(360deg); }
}

/* ── Error message ── */
.set-error-msg {
	margin-top: .75rem;
	padding: .6rem .9rem;
	background: #fdecea;
	color: #c62828;
	border-radius: 6px;
	font-size: .88rem;
}
.set-error {
	color: red;
	font-size: .9rem;
}
