/* BJC Buy Flow — responsive ticket purchase stepper */

.bjc-buy-flow {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	font-family: inherit;
	direction: rtl;
	text-align: right;
	color: #1a1a1a;
}

.bjc-buy-flow *,
.bjc-buy-flow *::before,
.bjc-buy-flow *::after {
	box-sizing: border-box;
}

/* ----- Open button (collapsed state) ----- */
.bjc-bf-open-btn {
	display: inline-block;
	background: #1e6091;
	color: #fff;
	border: 0;
	padding: 14px 36px;
	font-size: 18px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
}
.bjc-bf-open-btn:hover { background: #154872; }
.bjc-bf-open-btn:active { transform: translateY(1px); }

/* ----- Step indicator ----- */
.bjc-bf-stepper {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 12px;
	padding: 20px 24px;
	margin-top: 16px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bjc-bf-steps {
	display: flex;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0 0 24px;
	border-bottom: 1px solid #eee;
	padding-bottom: 14px;
}
.bjc-bf-step {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #888;
	font-weight: 500;
}
.bjc-bf-step.is-active { color: #1e6091; }
.bjc-bf-step.is-done   { color: #2c8a4a; }
.bjc-bf-step-num {
	display: inline-flex;
	width: 26px; height: 26px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: #f0f0f0;
	color: #666;
	font-weight: 700;
	font-size: 13px;
}
.bjc-bf-step.is-active .bjc-bf-step-num { background: #1e6091; color: #fff; }
.bjc-bf-step.is-done   .bjc-bf-step-num { background: #2c8a4a; color: #fff; }

/* ----- Pane ----- */
.bjc-bf-pane { display: none; }
.bjc-bf-pane.is-active { display: block; }

.bjc-bf-section { margin-top: 22px; }
.bjc-bf-section:first-of-type { margin-top: 0; }

.bjc-bf-section-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 600;
}

/* ----- Variation picker ----- */
.bjc-bf-variation-list { display: flex; flex-direction: column; gap: 8px; }
.bjc-bf-variation {
	display: flex; gap: 12px; align-items: center;
	padding: 12px 14px;
	border: 1px solid #d6dde4; border-radius: 8px; background: #fff;
	cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
.bjc-bf-variation:hover { border-color: #1e6091; background: #f7faff; }
.bjc-bf-variation:has(input:checked),
.bjc-bf-variation.is-checked {
	border-color: #1e6091; background: #f0f6fc; box-shadow: 0 0 0 1px #1e6091 inset;
}
.bjc-bf-variation input[type="radio"] { margin: 0; flex-shrink: 0; }
.bjc-bf-variation-body { flex: 1; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.bjc-bf-variation-label { font-weight: 600; font-size: 15px; }
.bjc-bf-variation-price { margin-right: auto; color: #1e6091; font-weight: 600; font-size: 15px; }
.bjc-bf-variation-stock { color: #c0392b; font-size: 12px; }
.bjc-bf-variation.is-out { opacity: 0.5; cursor: not-allowed; }
.bjc-bf-variation.is-out:hover { border-color: #d6dde4; background: #fff; }

/* ----- Quantity row ----- */
.bjc-bf-qty-row {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 12px;
	background: #f7faff;
	border-radius: 8px;
	margin-bottom: 18px;
}
.bjc-bf-qty-label { font-weight: 600; }
#bjc-bf-qty {
	width: 90px;
	padding: 8px 10px;
	font-size: 16px;
	text-align: center;
	border: 1px solid #ccc;
	border-radius: 6px;
}
.bjc-bf-price { margin-right: auto; color: #555; }

/* ----- Field grid ----- */
.bjc-bf-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 16px;
}
.bjc-bf-field-wide { grid-column: 1 / -1; }

.bjc-bf-field { display: flex; flex-direction: column; gap: 4px; }
.bjc-bf-field label {
	font-size: 13px;
	font-weight: 500;
	color: #333;
}
.bjc-bf-field input[type="text"],
.bjc-bf-field input[type="tel"],
.bjc-bf-field input[type="email"],
.bjc-bf-field input[type="url"],
.bjc-bf-field input[type="number"],
.bjc-bf-field input[type="date"],
.bjc-bf-field input[type="password"],
.bjc-bf-field textarea,
.bjc-bf-field select {
	width: 100%;
	padding: 9px 10px;
	font-size: 14px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	font-family: inherit;
}
.bjc-bf-field textarea { min-height: 70px; resize: vertical; }
.bjc-bf-field input:focus,
.bjc-bf-field textarea:focus,
.bjc-bf-field select:focus {
	outline: 2px solid #1e6091;
	outline-offset: 1px;
	border-color: transparent;
}
.bjc-bf-required { color: #c0392b; margin-right: 2px; }

/* ----- Attendee fieldset ----- */
.bjc-bf-attendees { display: flex; flex-direction: column; gap: 14px; }
.bjc-bf-attendee {
	border: 1px solid #e6e6e6;
	border-radius: 8px;
	padding: 14px 16px 16px;
	background: #fff;
}
.bjc-bf-attendee legend {
	font-weight: 600;
	padding: 0 6px;
	color: #1e6091;
}

/* ----- Actions ----- */
.bjc-bf-actions {
	display: flex;
	gap: 10px;
	justify-content: space-between;
	margin-top: 24px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}
.bjc-bf-btn {
	display: inline-block;
	padding: 11px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 6px;
	border: 0;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}
.bjc-bf-btn-primary {
	background: #1e6091;
	color: #fff;
}
.bjc-bf-btn-primary:hover  { background: #154872; }
.bjc-bf-btn-primary:disabled { background: #99aac1; cursor: not-allowed; }
.bjc-bf-btn-ghost {
	background: transparent;
	color: #1e6091;
	border: 1px solid #1e6091;
}
.bjc-bf-btn-ghost:hover { background: #f0f6fc; }

/* ----- Payment ----- */
.bjc-bf-payment-wrap {
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
	position: relative;
	min-height: 720px;
}
.bjc-bf-payment-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	color: #555;
}
.bjc-bf-payment-loading[hidden] { display: none; }
.bjc-bf-payment-iframe {
	display: block;
	width: 100%;
	height: 80vh;
	min-height: 720px;
	border: 0;
}

/* ----- Success ----- */
.bjc-bf-success {
	text-align: center;
	padding: 32px 20px;
}
.bjc-bf-success h3 {
	margin: 0 0 12px;
	font-size: 24px;
	color: #2c8a4a;
}
.bjc-bf-success p { margin: 8px 0; }
.bjc-bf-success-actions {
	display: flex;
	gap: 10px;
	justify-content: center;
	flex-wrap: wrap;
	margin-top: 18px;
}
.bjc-bf-success-actions .bjc-bf-btn { text-decoration: none; }

/* ----- Error ----- */
.bjc-bf-error {
	margin-top: 14px;
	padding: 10px 14px;
	background: #fdecea;
	color: #b3261e;
	border: 1px solid #f5c6c2;
	border-radius: 6px;
	font-size: 14px;
}

/* ----- Responsive ----- */
@media (max-width: 640px) {
	.bjc-bf-stepper { padding: 16px; border-radius: 8px; }
	.bjc-bf-steps { gap: 6px; flex-wrap: wrap; }
	.bjc-bf-step { font-size: 12px; min-width: 0; }
	.bjc-bf-step-num { width: 22px; height: 22px; font-size: 11px; }
	.bjc-bf-grid { grid-template-columns: 1fr; }
	.bjc-bf-actions { flex-direction: column-reverse; gap: 8px; }
	.bjc-bf-btn { width: 100%; padding: 12px 20px; }
	.bjc-bf-qty-row { padding: 10px; }
	.bjc-bf-price { width: 100%; }
}
