/* Freebox Tickets — Public Styles */

:root {
	--freebox-primary: #1a1a2e;
	--freebox-accent: #2ba0d4;
	--freebox-accent-hover: #1e8bbe;
	--freebox-bg: #f8f9fa;
	--freebox-text: #333;
	--freebox-muted: #888;
	--freebox-border: #e0e0e0;
	--freebox-radius: 6px;
	--freebox-gap: 16px;
}

.freebox-event {
	max-width: 960px;
	margin: 0 auto;
	padding: var(--freebox-gap);
}

.freebox-event__header {
	display: flex;
	gap: calc(var(--freebox-gap) * 2);
	align-items: flex-start;
	margin-bottom: calc(var(--freebox-gap) * 2);
}

.freebox-event__info {
	flex: 1;
}

.freebox-event__title {
	font-size: 2rem;
	color: var(--freebox-primary);
	margin: 0 0 var(--freebox-gap);
	line-height: 1.2;
}

.freebox-event__description {
	color: var(--freebox-text);
	line-height: 1.6;
	margin-bottom: var(--freebox-gap);
}

.freebox-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--freebox-gap);
	color: var(--freebox-muted);
	font-size: 0.9rem;
}

.freebox-event__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.freebox-event__meta svg {
	flex-shrink: 0;
}

.freebox-event__logo {
	flex-shrink: 0;
	max-width: 220px;
}

.freebox-event__logo-img {
	width: 100%;
	height: auto;
	border-radius: var(--freebox-radius);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Tickets Section */

.freebox-event__tickets {
	margin-top: calc(var(--freebox-gap) * 2);
}

.freebox-event__tickets-title {
	font-size: 1.3rem;
	color: var(--freebox-primary);
	margin-bottom: var(--freebox-gap);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--freebox-border);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.freebox-ticket {
	display: flex;
	align-items: flex-start;
	padding: 18px 24px;
	border: 1px solid var(--freebox-border);
	border-radius: var(--freebox-radius);
	margin-bottom: 10px;
	background: #fff;
	transition: box-shadow 0.2s, border-color 0.2s;
}

.freebox-ticket__thumb {
	flex-shrink: 0;
	margin-right: 16px;
}

.freebox-ticket__thumb-img {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: cover;
	border-radius: 8px;
	border: 1px solid var(--freebox-border);
}

.freebox-ticket__excerpt {
	font-size: 0.9rem;
	color: var(--freebox-muted);
	line-height: 1.45;
	margin-top: 6px;
	max-width: 42rem;
}

.freebox-ticket__excerpt p {
	margin: 0 0 0.35em;
}

.freebox-ticket__excerpt p:last-child {
	margin-bottom: 0;
}

.freebox-ticket__price,
.freebox-ticket__qty-group,
.freebox-ticket .freebox-ticket__buy,
.freebox-ticket .freebox-ticket__sold-out {
	align-self: center;
}

.freebox-ticket:hover {
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
	border-color: var(--freebox-accent);
}

.freebox-ticket--sold-out {
	opacity: 0.55;
}

.freebox-ticket__details {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.freebox-ticket__name {
	font-weight: 600;
	color: var(--freebox-primary);
	font-size: 1.05rem;
}

.freebox-ticket__remaining {
	font-size: 0.8rem;
	color: #e67e22;
	font-weight: 500;
}

.freebox-ticket__price {
	margin: 0 24px;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--freebox-text);
	white-space: nowrap;
}

.freebox-ticket__price-tax {
	display: block;
	font-weight: 400;
	font-size: 0.78rem;
	color: var(--freebox-muted, #6b7280);
	margin-top: 2px;
}

.freebox-ticket__qty-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin: 0 12px;
	flex-shrink: 0;
}

.freebox-ticket__qty-label {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--freebox-muted);
	font-weight: 600;
}

/* !important needed to override Elementor theme's aggressive button/input resets */
.freebox-ticket__qty-wrapper {
	display: inline-flex !important;
	align-items: center !important;
	flex-direction: row !important;
	gap: 0 !important;
	width: auto !important;
}

.freebox-ticket .freebox-ticket__qty-btn,
.freebox-short-ticket .freebox-ticket__qty-btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 28px !important;
	min-width: 28px !important;
	max-width: 28px !important;
	height: 28px !important;
	border: 1px solid var(--freebox-border) !important;
	background: #f8f9fa !important;
	color: var(--freebox-text) !important;
	cursor: pointer !important;
	font-size: 0.85rem !important;
	line-height: 1 !important;
	padding: 0 !important;
	margin: 0 !important;
	transition: background 0.15s, border-color 0.15s;
}

.freebox-ticket .freebox-ticket__qty-btn--minus,
.freebox-short-ticket .freebox-ticket__qty-btn--minus {
	border-radius: 4px 0 0 4px !important;
	border-right: none !important;
}

.freebox-ticket .freebox-ticket__qty-btn--plus,
.freebox-short-ticket .freebox-ticket__qty-btn--plus {
	border-radius: 0 4px 4px 0 !important;
	border-left: none !important;
}

.freebox-ticket .freebox-ticket__qty-btn:hover,
.freebox-short-ticket .freebox-ticket__qty-btn:hover {
	background: var(--freebox-accent) !important;
	border-color: var(--freebox-accent) !important;
	color: #fff !important;
}

.freebox-ticket input.freebox-ticket__qty,
.freebox-short-ticket input.freebox-ticket__qty {
	display: inline-block !important;
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 28px !important;
	text-align: center !important;
	border: 1px solid var(--freebox-border) !important;
	border-left: none !important;
	border-right: none !important;
	border-radius: 0 !important;
	font-size: 0.85rem !important;
	font-weight: 600 !important;
	color: var(--freebox-text) !important;
	padding: 0 !important;
	margin: 0 !important;
	background: #fff !important;
	-moz-appearance: textfield !important;
	appearance: textfield !important;
}

.freebox-ticket input.freebox-ticket__qty::-webkit-inner-spin-button,
.freebox-ticket input.freebox-ticket__qty::-webkit-outer-spin-button,
.freebox-short-ticket input.freebox-ticket__qty::-webkit-inner-spin-button,
.freebox-short-ticket input.freebox-ticket__qty::-webkit-outer-spin-button {
	-webkit-appearance: none !important;
	margin: 0 !important;
}

.freebox-ticket__buy {
	display: inline-block;
	background: transparent;
	color: var(--freebox-accent);
	border: 2px solid var(--freebox-accent);
	padding: 8px 28px;
	border-radius: 20px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.freebox-ticket__buy:hover {
	background: var(--freebox-accent);
	color: #fff;
	text-decoration: none;
}

.freebox-ticket__buy:active {
	background: var(--freebox-accent-hover);
	border-color: var(--freebox-accent-hover);
	color: #fff;
}

.freebox-ticket__buy--loading {
	pointer-events: none;
	opacity: 0.6;
}

.freebox-ticket__sold-out {
	display: inline-block;
	background: transparent;
	color: var(--freebox-muted);
	border: 2px solid var(--freebox-border);
	padding: 8px 28px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}

.freebox-event__no-tickets {
	text-align: center;
	padding: calc(var(--freebox-gap) * 3) 0;
	color: var(--freebox-muted);
}

/* Responsive */

@media screen and (max-width: 600px) {
	.freebox-event__header {
		flex-direction: column;
	}

	.freebox-event__logo {
		max-width: 100%;
		order: -1;
	}

	.freebox-event__title {
		font-size: 1.5rem;
	}

	.freebox-ticket {
		flex-direction: column;
		text-align: center;
		gap: calc(var(--freebox-gap) / 2);
	}

	.freebox-ticket__details {
		align-items: center;
	}

	.freebox-ticket__price {
		margin: 0;
	}

	.freebox-ticket__qty-group {
		margin: 4px 0;
	}
}

/* Short Event — Compact View */

.freebox-short-event {
	max-width: 960px;
	margin: 0 auto;
	padding: var(--freebox-gap);
}

.freebox-short-event__header {
	display: flex;
	gap: calc(var(--freebox-gap) * 2);
	align-items: flex-start;
	margin-bottom: calc(var(--freebox-gap) * 2);
}

.freebox-short-event__info {
	flex: 1;
}

.freebox-short-event__title {
	font-size: 2rem;
	color: var(--freebox-primary);
	margin: 0 0 var(--freebox-gap);
	line-height: 1.2;
}

.freebox-short-event__description {
	color: var(--freebox-text);
	line-height: 1.6;
	margin-bottom: var(--freebox-gap);
}

.freebox-short-event__meta {
	display: flex;
	flex-wrap: wrap;
	gap: var(--freebox-gap);
	color: var(--freebox-muted);
	font-size: 0.9rem;
}

.freebox-short-event__meta span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.freebox-short-event__meta svg {
	flex-shrink: 0;
}

.freebox-short-event__logo {
	flex-shrink: 0;
	max-width: 220px;
}

.freebox-short-event__logo-img {
	width: 100%;
	height: auto;
	border-radius: var(--freebox-radius);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.freebox-short-event__tickets {
	margin-top: calc(var(--freebox-gap) * 2);
}

.freebox-short-event__tickets-title {
	font-size: 1.3rem;
	color: var(--freebox-primary);
	margin-bottom: var(--freebox-gap);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--freebox-border);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.freebox-short-ticket {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	padding: 14px 20px;
	border: 1px solid var(--freebox-border);
	border-radius: var(--freebox-radius);
	margin-bottom: 8px;
	background: #fff;
	transition: box-shadow 0.2s, border-color 0.2s;
	gap: 12px;
}

.freebox-short-ticket__thumb {
	flex-shrink: 0;
}

.freebox-short-ticket__thumb-img {
	display: block;
	width: 56px;
	height: 56px;
	object-fit: cover;
	border-radius: 6px;
	border: 1px solid var(--freebox-border);
}

.freebox-short-ticket__text {
	flex: 1;
	min-width: 0;
	text-align: left;
}

.freebox-short-ticket__excerpt {
	font-size: 0.85rem;
	color: var(--freebox-muted);
	line-height: 1.4;
	margin-top: 4px;
}

.freebox-short-ticket__excerpt p {
	margin: 0 0 0.35em;
}

.freebox-short-ticket__excerpt p:last-child {
	margin-bottom: 0;
}

.freebox-short-ticket:hover {
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
	border-color: var(--freebox-accent);
}

.freebox-short-ticket--sold-out {
	opacity: 0.55;
}

.freebox-short-ticket__name {
	font-weight: 600;
	color: var(--freebox-primary);
	font-size: 1rem;
}

.freebox-short-ticket__actions {
	display: flex;
	align-items: center;
	align-self: center;
	gap: 16px;
	flex-shrink: 0;
}

.freebox-short-ticket__price {
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--freebox-text);
	white-space: nowrap;
}

.freebox-short-ticket__buy {
	display: inline-block;
	background: transparent;
	color: var(--freebox-accent);
	border: 2px solid var(--freebox-accent);
	padding: 8px 28px;
	border-radius: 20px;
	cursor: pointer;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9rem;
	transition: background 0.2s, color 0.2s;
	white-space: nowrap;
}

.freebox-short-ticket__buy:hover {
	background: var(--freebox-accent);
	color: #fff;
	text-decoration: none;
}

.freebox-short-ticket__buy:active {
	background: var(--freebox-accent-hover);
	border-color: var(--freebox-accent-hover);
	color: #fff;
}

.freebox-short-ticket__sold-out {
	display: inline-block;
	background: transparent;
	color: var(--freebox-muted);
	border: 2px solid var(--freebox-border);
	padding: 8px 28px;
	border-radius: 20px;
	font-weight: 600;
	font-size: 0.9rem;
	white-space: nowrap;
}

.freebox-short-event__no-tickets {
	text-align: center;
	padding: calc(var(--freebox-gap) * 3) 0;
	color: var(--freebox-muted);
}

@media screen and (max-width: 600px) {
	.freebox-short-event__header {
		flex-direction: column;
	}

	.freebox-short-event__logo {
		max-width: 100%;
		order: -1;
	}

	.freebox-short-event__title {
		font-size: 1.5rem;
	}

	.freebox-short-ticket {
		flex-direction: column;
		text-align: center;
		gap: calc(var(--freebox-gap) / 2);
	}

	.freebox-short-ticket__actions {
		flex-direction: column;
	}
}

/* Checkout form */

.freebox-checkout-form {
	background: var(--freebox-bg);
	border: 1px solid var(--freebox-border);
	border-radius: var(--freebox-radius);
	padding: 24px;
	margin: 24px 0;
}

.freebox-checkout-form h3 {
	margin: 0 0 4px;
	font-size: 1.1rem;
	color: var(--freebox-primary);
}

.freebox-checkout-form__desc {
	margin: 0 0 16px;
	font-size: 0.85rem;
	color: var(--freebox-muted);
}

/* Modal — Formulario pre-carrito */

.freebox-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(0, 0, 0, 0.5);
	justify-content: center;
	align-items: center;
	padding: var(--freebox-gap);
}

.freebox-modal-overlay--visible {
	display: flex;
}

.freebox-modal {
	background: #fff;
	border-radius: calc(var(--freebox-radius) * 2);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
	width: 100%;
	max-width: 500px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	animation: freebox-modal-in 0.2s ease-out;
}

@keyframes freebox-modal-in {
	from { opacity: 0; transform: translateY(16px); }
	to   { opacity: 1; transform: translateY(0); }
}

.freebox-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px 16px;
	border-bottom: 1px solid var(--freebox-border);
}

.freebox-modal__title {
	margin: 0;
	font-size: 1.15rem;
	color: var(--freebox-primary);
	font-weight: 700;
}

.freebox-modal__close {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: var(--freebox-muted);
	padding: 0 0 0 12px;
	transition: color 0.15s;
}

.freebox-modal__close:hover {
	color: var(--freebox-text);
}

.freebox-modal__body {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

.freebox-modal__field {
	margin-bottom: 18px;
}

.freebox-modal__field:last-child {
	margin-bottom: 0;
}

.freebox-modal__label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--freebox-text);
}

.freebox-modal__label--required::after {
	content: " *";
	color: #e74c3c;
}

.freebox-modal__input {
	width: 100%;
	padding: 10px 14px;
	border: 1px solid var(--freebox-border);
	border-radius: var(--freebox-radius);
	font-size: 0.95rem;
	font-family: inherit;
	color: var(--freebox-text);
	background: #fff;
	transition: border-color 0.15s;
	box-sizing: border-box;
}

.freebox-modal__input:focus {
	outline: none;
	border-color: var(--freebox-accent);
	box-shadow: 0 0 0 2px rgba(43, 160, 212, 0.15);
}

.freebox-modal__input--error {
	border-color: #e74c3c;
}

.freebox-modal__input--error:focus {
	box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.15);
}

textarea.freebox-modal__input {
	resize: vertical;
	min-height: 80px;
}

.freebox-modal__field--checkbox {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 8px;
}

.freebox-modal__checkbox {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	accent-color: var(--freebox-primary, #2563eb);
	cursor: pointer;
	flex-shrink: 0;
}

.freebox-modal__checkbox-label {
	flex: 1;
	font-size: 0.9rem;
	color: var(--freebox-text, #1f2937);
	cursor: pointer;
	line-height: 1.4;
}

.freebox-modal__field--error .freebox-modal__checkbox {
	outline: 2px solid #e74c3c;
	outline-offset: 1px;
	border-radius: 3px;
}

.freebox-modal__field--checkbox .freebox-modal__field-error {
	width: 100%;
}

.freebox-modal__field-error {
	display: none;
	font-size: 0.8rem;
	color: #e74c3c;
	margin-top: 4px;
}

.freebox-modal__field-error--visible {
	display: block;
}

.freebox-modal__footer {
	padding: 16px 24px 20px;
	border-top: 1px solid var(--freebox-border);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.freebox-modal__global-error {
	display: none;
	font-size: 0.85rem;
	color: #e74c3c;
	text-align: center;
}

.freebox-modal__global-error--visible {
	display: block;
}

.freebox-modal__submit {
	display: block;
	width: 100%;
	padding: 12px 24px;
	background: var(--freebox-accent);
	color: #fff;
	border: none;
	border-radius: 24px;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
	font-family: inherit;
}

.freebox-modal__submit:hover {
	background: var(--freebox-accent-hover);
}

.freebox-modal__submit--loading {
	opacity: 0.6;
	pointer-events: none;
}

@media screen and (max-width: 600px) {
	.freebox-modal-overlay {
		padding: 8px;
		align-items: flex-end;
	}

	.freebox-modal {
		max-width: 100%;
		max-height: 95vh;
		border-radius: var(--freebox-radius) var(--freebox-radius) 0 0;
	}
}

/* ========================================
   Stripe Card Element
   ======================================== */

.freebox-modal__price-summary {
	text-align: center;
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--freebox-primary);
	padding: 14px 0 6px;
	margin-top: 8px;
	border-top: 1px solid var(--freebox-border);
}

.freebox-modal__stripe-card {
	margin-bottom: 18px;
}

.freebox-modal__stripe-card-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--freebox-text);
}

.freebox-modal__stripe-card-label::after {
	content: " *";
	color: #e74c3c;
}

.freebox-modal__stripe-element {
	padding: 10px 14px;
	border: 1px solid var(--freebox-border);
	border-radius: var(--freebox-radius);
	background: #fff;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.freebox-modal__stripe-element--focus {
	border-color: var(--freebox-accent);
	box-shadow: 0 0 0 2px rgba(43, 160, 212, 0.15);
}

.freebox-modal__stripe-element--error {
	border-color: #e74c3c;
}

.freebox-modal__stripe-error {
	display: none;
	font-size: 0.8rem;
	color: #e74c3c;
	margin-top: 4px;
}

.freebox-modal__stripe-error--visible {
	display: block;
}

/* Multi-ticket: price summary, toggle, tabs */

.freebox-modal__qty-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	background: var(--freebox-bg);
	border: 1px solid var(--freebox-border);
	border-radius: var(--freebox-radius);
	padding: 10px 14px;
	margin-bottom: 16px;
	font-size: 0.9rem;
	color: var(--freebox-text);
}

.freebox-modal__qty-summary-detail {
	color: var(--freebox-muted);
}

.freebox-modal__qty-summary-total {
	font-weight: 700;
	font-size: 1.05rem;
	color: var(--freebox-primary);
}

.freebox-modal__qty-summary-tax {
	width: 100%;
	text-align: right;
	font-size: 0.78rem;
	font-weight: 400;
	color: var(--freebox-muted, #6b7280);
	margin-top: 2px;
}

.freebox-modal__same-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	margin-bottom: 12px;
	border-bottom: 1px solid var(--freebox-border);
	cursor: pointer;
	user-select: none;
	font-size: 0.88rem;
	color: var(--freebox-text);
}

.freebox-modal__same-toggle input[type="checkbox"] {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	accent-color: var(--freebox-accent);
	cursor: pointer;
	flex-shrink: 0;
}

.freebox-modal__tabs {
	display: flex;
	gap: 0;
	border-bottom: 2px solid var(--freebox-border);
	margin-bottom: 16px;
	overflow-x: auto;
}

.freebox-modal__tab {
	padding: 8px 16px;
	font-size: 0.82rem;
	font-weight: 600;
	color: var(--freebox-muted);
	cursor: pointer;
	border: none;
	background: none;
	border-bottom: 2px solid transparent;
	margin-bottom: -2px;
	white-space: nowrap;
	transition: color 0.15s, border-color 0.15s;
}

.freebox-modal__tab:hover {
	color: var(--freebox-text);
}

.freebox-modal__tab--active {
	color: var(--freebox-accent);
	border-bottom-color: var(--freebox-accent);
}

.freebox-modal__tab-panel {
	display: none;
}

.freebox-modal__tab-panel--active {
	display: block;
}

.freebox-modal__tab-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	font-size: 0.6rem;
	margin-left: 4px;
}

.freebox-modal__tab-badge--ok {
	background: #00a32a;
	color: #fff;
}

.freebox-modal__tab-badge--empty {
	background: var(--freebox-border);
	color: var(--freebox-muted);
}

/* ========================================
   Collapsible Sections (Account / Billing)
   ======================================== */

.freebox-modal__collapsible {
	border: 1px solid var(--freebox-border);
	border-radius: var(--freebox-radius);
	margin-bottom: 16px;
	overflow: hidden;
}

.freebox-modal__collapsible-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 14px;
	cursor: pointer;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--freebox-text);
	background: var(--freebox-bg);
	transition: background 0.15s;
	user-select: none;
}

.freebox-modal__collapsible-header:hover {
	background: #eef3f7;
}

.freebox-modal__collapsible-chevron {
	display: flex;
	align-items: center;
	transition: transform 0.3s ease;
	color: var(--freebox-muted);
}

.freebox-modal__collapsible--open .freebox-modal__collapsible-chevron {
	transform: rotate(180deg);
}

.freebox-modal__collapsible-body {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding: 0 14px;
	transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.freebox-modal__collapsible--open .freebox-modal__collapsible-body {
	max-height: 600px;
	opacity: 1;
	padding: 14px;
}

/* Billing 2-column layout */

.freebox-modal__billing-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

@media screen and (max-width: 480px) {
	.freebox-modal__billing-row {
		grid-template-columns: 1fr;
	}
}

.freebox-modal__label--billing-required::after {
	content: " *";
	color: #e74c3c;
}

/* Select dropdown styling */

select.freebox-modal__input {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4L6 8L10 4' stroke='%23666' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
	cursor: pointer;
}

/* Password strength bar */

.freebox-modal__password-strength {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: -8px;
	margin-bottom: 4px;
}

.freebox-modal__password-strength-track {
	flex: 1;
	height: 4px;
	background: var(--freebox-border);
	border-radius: 2px;
	overflow: hidden;
}

.freebox-modal__password-strength-bar {
	height: 100%;
	width: 0;
	border-radius: 2px;
	transition: width 0.3s ease, background-color 0.3s ease;
}

.freebox-modal__password-strength-bar--weak {
	background: #e74c3c;
}

.freebox-modal__password-strength-bar--fair {
	background: #f39c12;
}

.freebox-modal__password-strength-bar--good {
	background: #27ae60;
}

.freebox-modal__password-strength-bar--strong {
	background: #00a32a;
}

.freebox-modal__password-strength-text {
	font-size: 0.75rem;
	color: var(--freebox-muted);
	white-space: nowrap;
}

/* Username availability indicator */

.freebox-modal__username-status {
	font-size: 0.8rem;
	margin-top: 4px;
	min-height: 18px;
}

.freebox-modal__username-status--checking {
	color: var(--freebox-muted);
}

.freebox-modal__username-status--available {
	color: #00a32a;
}

.freebox-modal__username-status--taken {
	color: #e74c3c;
}

/* =========================================
   Thank You page
   ========================================= */

.freebox-thankyou {
	max-width: 680px;
	margin: 32px auto;
	padding: 0 16px;
}

.freebox-thankyou__title {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--freebox-dark, #1a1a2e);
	margin: 0 0 8px;
}

.freebox-thankyou__subtitle {
	color: var(--freebox-muted, #666);
	font-size: 0.95rem;
	margin: 0 0 24px;
}

.freebox-thankyou__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 16px;
}

.freebox-thankyou__card {
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
	text-align: center;
}

.freebox-thankyou__card-header {
	background: #f8f8fa;
	padding: 16px;
	border-bottom: 1px solid #e0e0e0;
}

.freebox-thankyou__event-name {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	color: var(--freebox-dark, #1a1a2e);
}

.freebox-thankyou__ticket-name {
	display: block;
	font-size: 0.85rem;
	color: var(--freebox-muted, #888);
	margin-top: 2px;
}

.freebox-thankyou__qr {
	padding: 20px 16px 12px;
}

.freebox-thankyou__qr img {
	border: 1px solid #eee;
	border-radius: 8px;
}

.freebox-thankyou__btn {
	display: inline-block;
	background: var(--freebox-primary, #e94560);
	color: #fff;
	text-decoration: none;
	padding: 10px 24px;
	border-radius: 8px;
	font-size: 0.9rem;
	font-weight: 600;
	margin: 0 16px 20px;
	transition: opacity 0.2s ease;
}

.freebox-thankyou__btn:hover {
	opacity: 0.85;
	color: #fff;
}
