/* Table Reservation Widget - unlockaddons_table_reservation_ prefix */

.unlockaddons_table_reservation_container {
	box-sizing: border-box;
	max-width: 100%;
	position: relative;
}

.unlockaddons_table_reservation_book_btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a2e;
	background-color: #f5f5f5;
	border: 1px solid #e0e0e0;
	border-radius: 999px;
	cursor: pointer;
	margin-bottom: 16px;
	transition: background-color 0.2s, border-color 0.2s;
}

.unlockaddons_table_reservation_book_btn:hover {
	background-color: #ebebeb;
	border-color: #ccc;
}

.unlockaddons_table_reservation_book_btn_icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.unlockaddons_table_reservation_book_btn_icon svg {
	width: 1em;
	height: 1em;
}

.unlockaddons_table_reservation_required {
	display: inline;
}

.unlockaddons_table_reservation_title {
	margin: 0 0 0.5em;
	font-weight: 700;
}

.unlockaddons_table_reservation_description {
	margin: 0 0 1.25em;
}

.unlockaddons_table_reservation_form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.unlockaddons_table_reservation_fields {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.unlockaddons_table_reservation_fields_two_col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.unlockaddons_table_reservation_fields_two_col .unlockaddons_table_reservation_field_full {
	grid-column: 1 / -1;
}

@media (max-width: 767px) {
	.unlockaddons_table_reservation_fields_two_col {
		grid-template-columns: 1fr;
	}
}

.unlockaddons_table_reservation_field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.unlockaddons_table_reservation_label {
	font-weight: 600;
	font-size: 14px;
	color: #333333;
}

.unlockaddons_table_reservation_label .required {
	color: #c8102e;
}

.unlockaddons_table_reservation_input {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	font-size: 15px;
	line-height: 1.5;
	color: #1a1a2e;
	background-color: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
}

.unlockaddons_table_reservation_select {
	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 fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	padding-right: 40px;
}

.unlockaddons_table_reservation_input:focus {
	outline: none;
	border-color: var(--e-global-color-primary, #c8102e);
	box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.2);
}

.unlockaddons_table_reservation_input::placeholder {
	color: #999;
}

.unlockaddons_table_reservation_textarea.unlockaddons_table_reservation_input {
	min-height: 100px;
	resize: vertical;
}

.unlockaddons_table_reservation_actions {
	margin-top: 8px;
}

.unlockaddons_table_reservation_submit {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	cursor: pointer;
	border: none;
	font-weight: 700;
	font-size: 16px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.unlockaddons_table_reservation_submit:hover {
	opacity: 0.95;
}

.unlockaddons_table_reservation_submit_icon {
	display: inline-flex;
	align-items: center;
}

.unlockaddons_table_reservation_submit_icon svg {
	width: 1em;
	height: 1em;
}

.unlockaddons_table_reservation_message {
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 15px;
}

.unlockaddons_table_reservation_message.success {
	background-color: #d4edda;
	color: #155724;
}

.unlockaddons_table_reservation_message.error {
	background-color: #f8d7da;
	color: #721c24;
}

.unlockaddons_table_reservation_summary {
	margin-top: 16px;
	padding: 16px;
	background-color: #f8f9fa;
	border-radius: 8px;
	font-size: 14px;
	color: #333;
}

.unlockaddons_table_reservation_summary p {
	margin: 0 0 6px;
}

.unlockaddons_table_reservation_summary p:last-child {
	margin-bottom: 0;
}

/* Booking summary popup */
.unlockaddons_table_reservation_popup_overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	box-sizing: border-box;
}
.unlockaddons_table_reservation_popup_inner {
	background: #fff;
	border-radius: 12px;
	padding: 24px;
	max-width: 400px;
	width: 100%;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}
.unlockaddons_table_reservation_popup_title {
	margin: 0 0 16px;
	font-size: 18px;
	font-weight: 700;
	color: #1a1a2e;
}
.unlockaddons_table_reservation_popup_inner p {
	margin: 0 0 8px;
	font-size: 14px;
	color: #333;
}
.unlockaddons_table_reservation_popup_close {
	margin-top: 20px;
	padding: 10px 24px;
	background: #c8102e;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
}
.unlockaddons_table_reservation_popup_close:hover {
	opacity: 0.95;
}
