/* OrdersForMe buttons and windows on the website. Colours and sizes come from the button's own style. */
.ordersforme-button {
	display: inline-block;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	border: 0;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	transition: filter 0.15s ease, transform 0.15s ease;
}
.ordersforme-button:hover,
.ordersforme-button:focus-visible {
	filter: brightness(0.92);
}
.ordersforme-button:active {
	transform: translateY(1px);
}
.ordersforme-button:focus-visible {
	outline: 3px solid rgba(0, 0, 0, 0.35);
	outline-offset: 2px;
}

.ordersforme-menu iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 12px;
	background: #f8fafc;
}

.ordersforme-notice {
	padding: 8px 12px;
	border-left: 4px solid #d97706;
	background: #fffbeb;
	color: #78350f;
	font-size: 14px;
}

/*
 * Restaurant info shortcodes. They use the website's own font and text colour; only the
 * open / closed accents are set here. Themes can restyle any .ordersforme-* class.
 */
.ordersforme-info {
	--ofm-open: #15803d;
	--ofm-closed: #b91c1c;
	--ofm-paused: #b45309;
	--ofm-line: rgba(127, 127, 127, 0.25);
	margin: 0 0 1.5em;
}
.ordersforme-info ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.ordersforme-info-title {
	margin: 0 0 0.6em;
}
.ordersforme-hours table {
	width: 100%;
	max-width: 420px;
	margin: 0;
	border: 0;
	border-collapse: collapse;
}
.ordersforme-hours th,
.ordersforme-hours td {
	padding: 0.4em 0;
	border: 0;
	border-bottom: 1px solid var(--ofm-line);
	background: none;
	text-align: left;
	font-weight: 400;
	vertical-align: top;
}
.ordersforme-hours td {
	text-align: right;
	font-variant-numeric: tabular-nums;
}
.ordersforme-hours tr.is-today th,
.ordersforme-hours tr.is-today td {
	font-weight: 700;
}
.ordersforme-special-days li {
	padding: 0.7em 0;
	border-bottom: 1px solid var(--ofm-line);
}
.ordersforme-day-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5em;
}
.ordersforme-day-when {
	font-weight: 700;
}
.ordersforme-badge {
	padding: 0.15em 0.6em;
	border-radius: 999px;
	font-size: 0.8em;
	font-weight: 700;
	color: #fff;
	background: var(--ofm-open);
}
.ordersforme-special-days .is-closed .ordersforme-badge {
	background: var(--ofm-closed);
}
.ordersforme-day-name {
	margin-top: 0.2em;
}
.ordersforme-day-message {
	margin: 0.3em 0 0;
	opacity: 0.85;
}
.ordersforme-live {
	display: contents;
}
.ordersforme-status {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
}
.ordersforme-dot {
	display: inline-block;
	flex: none;
	width: 0.6em;
	height: 0.6em;
	border-radius: 50%;
	background: var(--ofm-closed, #b91c1c);
}
.ordersforme-status.is-open .ordersforme-dot {
	background: var(--ofm-open, #15803d);
}
.ordersforme-status.is-paused .ordersforme-dot {
	background: var(--ofm-paused, #b45309);
}
.ordersforme-services li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.3em 1em;
	padding: 0.45em 0;
	border-bottom: 1px solid var(--ofm-line);
}
.ordersforme-services .is-off {
	opacity: 0.55;
}
.ordersforme-check {
	display: inline-block;
	width: 1.2em;
	font-weight: 700;
	color: var(--ofm-open);
}
.ordersforme-services .ordersforme-status {
	font-size: 0.9em;
}
.ordersforme-message {
	margin: 0 0 0.6em;
	padding: 0.8em 1em;
	border-left: 4px solid var(--ofm-open);
	border-radius: 6px;
	background: rgba(21, 128, 61, 0.08);
}
.ordersforme-message.is-closed {
	border-left-color: var(--ofm-closed);
	background: rgba(185, 28, 28, 0.08);
}
.ordersforme-message p {
	margin: 0.2em 0 0;
}
.ordersforme-message small {
	display: block;
	margin-top: 0.3em;
	opacity: 0.8;
}

.ordersforme-contact li {
	padding: 0.35em 0;
}
.ordersforme-contact-label {
	display: inline-block;
	min-width: 5.5em;
	font-weight: 700;
}
.ordersforme-map {
	margin-top: 0.8em;
}
.ordersforme-map iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: 12px;
}
.ordersforme-promotions ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1em;
}
.ordersforme-promo {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ofm-line);
	border-radius: 12px;
}
.ordersforme-promo img {
	display: block;
	width: 100%;
	height: 160px;
	object-fit: cover;
}
.ordersforme-promo-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 0.4em;
	padding: 0.9em 1em 1em;
}
.ordersforme-promo-title {
	font-size: 1.1em;
}
.ordersforme-promo-body p {
	margin: 0;
}
.ordersforme-promo-body small {
	opacity: 0.75;
}
.ordersforme-promo-action {
	margin-top: auto;
	padding-top: 0.5em;
}

/* The window (popup) */
.ordersforme-overlay {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.6);
}
.ordersforme-dialog {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 1100px;
	height: 100%;
	max-height: 900px;
	overflow: hidden;
	border-radius: 16px;
	background: #f8fafc;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}
.ordersforme-head {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	height: 48px;
	padding: 0 6px 0 16px;
	background: #0f172a;
	color: #fff;
	font: 600 15px/1.2 Arial, sans-serif;
}
.ordersforme-head-title {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.ordersforme-body {
	position: relative;
	flex: 1;
	min-height: 0;
}
.ordersforme-body iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}
.ordersforme-close {
	flex: none;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font: 400 28px/40px Arial, sans-serif;
	cursor: pointer;
}
.ordersforme-close:hover,
.ordersforme-close:focus-visible {
	background: rgba(255, 255, 255, 0.15);
}
.ordersforme-loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #64748b;
	font: 15px Arial, sans-serif;
}
html.ordersforme-open,
html.ordersforme-open body {
	overflow: hidden !important;
}

@media (max-width: 640px) {
	.ordersforme-overlay {
		padding: 0;
	}
	.ordersforme-dialog {
		max-height: none;
		border-radius: 0;
	}
}
