/* OTV Gate Entry Widget */
#otv-gate-widget {
	max-width: 480px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.otv-step {
	padding: 24px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0,0,0,.1);
	text-align: left;
}

.otv-step h2 {
	margin: 0 0 12px;
	font-size: 1.4rem;
}

.otv-step h3 {
	margin: 20px 0 8px;
	font-size: 1.1rem;
}

.otv-form label {
	display: block;
	margin: 10px 0;
	font-weight: 600;
}

.otv-form input[type="text"],
.otv-form input[type="email"],
.otv-form input[type="tel"],
.otv-form select {
	display: block;
	width: 100%;
	padding: 8px 10px;
	margin-top: 4px;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 1rem;
	box-sizing: border-box;
}

.otv-form button,
.otv-btn {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 24px;
	background: #1a73e8;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
}

.otv-form button:hover,
.otv-btn:hover {
	background: #1558b0;
}

.otv-checkbox {
	font-weight: normal;
}

.otv-checkbox input {
	margin-right: 8px;
}

.otv-required {
	color: #c00;
	margin-left: 2px;
}

.otv-hint {
	font-size: .85rem;
	color: #666;
	margin: 8px 0 0;
}

.otv-lot {
	padding: 8px 12px;
	background: #f0f7ff;
	border-radius: 4px;
	margin-bottom: 12px;
}

.otv-error {
	background: #fff3f3;
	border-left: 4px solid #e53e3e;
	padding: 12px 16px;
	border-radius: 4px;
}

.otv-success {
	text-align: center;
}

.otv-icon {
	font-size: 3rem;
	color: #38a169;
	margin-bottom: 8px;
}

.otv-next-available {
	padding: 10px 14px;
	background: #fffbeb;
	border-left: 4px solid #f6ad55;
	border-radius: 4px;
	margin: 8px 0;
}

.otv-alt-lot {
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	margin: 8px 0;
}

.otv-alt-lot.otv-full {
	background: #f7fafc;
	color: #718096;
}

.otv-inline button {
	margin-top: 8px;
	padding: 8px 16px;
	font-size: .9rem;
}

.otv-loading {
	opacity: .6;
	pointer-events: none;
}

/* ---- Donation step ---- */
.otv-donation-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 16px 0;
}

/* Suppress the theme's universal div clearfix, which creates a ghost grid item in cell 1. */
.otv-donation-grid::before,
.otv-donation-grid::after {
	display: none;
	content: none;
}

.otv-donation-btn {
	position: relative;
	font-weight: normal;
	margin: 0;
}

.otv-donation-btn input[type="radio"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	pointer-events: none;
}

.otv-donation-btn span {
	display: block;
	padding: 18px 8px;
	text-align: center;
	font-size: 1.4rem;
	font-weight: 700;
	border: 2px solid #d1d5db;
	border-radius: 8px;
	cursor: pointer;
	background: #fff;
	transition: border-color .12s, background .12s, color .12s;
	user-select: none;
}

.otv-donation-btn input[type="radio"]:checked + span {
	border-color: #1a73e8;
	background: #e8f0fe;
	color: #1558b0;
}

.otv-donation-btn:hover span {
	border-color: #1a73e8;
}

.otv-donation-custom {
	margin-top: 16px;
	font-weight: 600;
}

.otv-donation-custom-wrap {
	display: flex;
	align-items: center;
	margin-top: 4px;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
}

.otv-currency-prefix {
	padding: 8px 10px;
	background: #f3f4f6;
	font-size: 1rem;
	color: #555;
	border-right: 1px solid #ccc;
	flex-shrink: 0;
}

.otv-donation-custom-wrap input[type="number"] {
	border: none;
	padding: 8px 10px;
	background: #fff;
	font-size: 1rem;
	width: 100%;
	outline: none;
	box-sizing: border-box;
}

.otv-donation-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 20px;
}

.otv-donation-actions button {
	margin-top: 0;
}

.otv-btn-primary {
	display: inline-block;
	padding: 12px 32px;
	background: #1a73e8;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-size: 1rem;
	font-weight: bold;
	cursor: pointer;
	white-space: nowrap;
}

.otv-btn-primary:hover {
	background: #1558b0;
}

.otv-btn-secondary {
	display: inline-block;
	padding: 10px 24px;
	background: #1a73e8;
	color: #fff;
	border: 1px solid #1a73e8;
	border-radius: 4px;
	font-size: .9rem;
	font-weight: normal;
	cursor: pointer;
	white-space: nowrap;
}

.otv-btn-secondary:hover {
	background: #f5f5f5;
	border-color: #aaa;
}

.otv-btn-skip {
	background: none;
	border: none;
	color: #9ca3af;
	font-size: .85rem;
	font-weight: normal;
	cursor: pointer;
	padding: 4px 0;
	text-decoration: underline;
	margin-top: 0;
	white-space: nowrap;
}

.otv-btn-skip:hover {
	color: #4b5563;
}

.otv-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 16px;
}
