/* Cook This Way - Site-Wide Location Selector Modal */

.ctw-modal[hidden] {
	display: none !important;
}

.ctw-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
	font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ctw-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 18, 20, 0.8);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	animation: ctwFadeIn 0.2s ease-out;
}

.ctw-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 760px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: #282828;
	color: #ffffff;
	border: 1px solid rgba(242, 198, 20, 0.35);
	border-radius: 12px;
	padding: 36px 32px 32px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
	box-sizing: border-box;
	animation: ctwSlideUp 0.22s ease-out;
}

.ctw-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.08);
	color: #ffffff;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 50%;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ctw-modal__close:hover,
.ctw-modal__close:focus-visible {
	background: #F2C614;
	color: #000000;
	border-color: #F2C614;
	outline: none;
}

.ctw-modal__header {
	text-align: center;
	margin-bottom: 28px;
	padding: 0 24px;
}

.ctw-modal__eyebrow {
	display: inline-block;
	font-family: "Oswald", "Montserrat", sans-serif;
	font-size: 13px;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #F2C614;
	margin-bottom: 8px;
}

.ctw-modal__title {
	margin: 0 0 8px;
	font-family: "Montserrat", sans-serif;
	font-size: 28px;
	line-height: 1.25;
	font-weight: 700;
	text-transform: uppercase;
	color: #ffffff !important;
}

.ctw-modal__subtitle {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #d6d6d6;
}

.ctw-modal__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.ctw-loc-card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	background: #333333;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 10px;
	padding: 24px 22px;
	text-align: center;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.ctw-loc-card:hover {
	border-color: rgba(242, 198, 20, 0.55);
	transform: translateY(-2px);
}

.ctw-loc-card__name {
	margin: 0 0 12px;
	font-family: "Montserrat", sans-serif;
	font-size: 20px;
	font-weight: 700;
	color: #F2C614 !important;
	text-transform: uppercase;
}

.ctw-loc-card__meta {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
	color: #e8e8e8;
}

.ctw-loc-card__phone {
	display: inline-block;
	margin-top: 6px;
	color: #ffffff;
	font-weight: 600;
	text-decoration: none;
}

.ctw-loc-card__phone:hover,
.ctw-loc-card__phone:focus-visible {
	color: #F2C614;
	text-decoration: underline;
}

.ctw-loc-card__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
}

.ctw-loc-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 13px 18px;
	border-radius: 4px;
	background: #F2C614;
	color: #000000 !important;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	text-decoration: none;
	border: 2px solid #F2C614;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.ctw-loc-card__btn:hover,
.ctw-loc-card__btn:focus-visible {
	background: #ffffff;
	border-color: #ffffff;
	color: #000000 !important;
	outline: none;
}

.ctw-loc-card__soon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 13px 18px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.06);
	color: #F2C614;
	font-weight: 700;
	font-size: 14px;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	border: 1px dashed rgba(242, 198, 20, 0.55);
	cursor: default;
}

.ctw-loc-card__call-fallback {
	font-size: 13px;
	color: #d0d0d0;
	text-decoration: none;
	padding: 4px 0;
}

.ctw-loc-card__call-fallback:hover,
.ctw-loc-card__call-fallback:focus-visible {
	color: #F2C614;
	text-decoration: underline;
}

body.ctw-modal-open {
	overflow: hidden;
}

@keyframes ctwFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes ctwSlideUp {
	from { opacity: 0; transform: translateY(12px) scale(0.98); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 680px) {
	.ctw-modal {
		padding: 14px;
	}

	.ctw-modal__dialog {
		padding: 30px 18px 22px;
	}

	.ctw-modal__title {
		font-size: 22px;
	}

	.ctw-modal__grid {
		grid-template-columns: 1fr;
		gap: 14px;
	}
}
