/**
 * Menu & Order Pick up only. Every rule is under body.bpc-pickup-page
 * or the chooser root, so other pages keep the existing nav and layout.
 *
 * Figra is not loaded on the site. Headings and body stay on Lato.
 */

/* Desktop menu sits in the transparent below-header bar, on the page
   background, and Astra paints the links white (--ast-global-color-5).
   Charcoal is this page only, and only from Astra's desktop breakpoint up. */
@media (min-width: 922px) {
	body.bpc-pickup-page .ast-below-header-bar .ast-builder-menu-1 .menu-item > .menu-link,
	body.bpc-pickup-page .ast-below-header-bar .ast-builder-menu-1 .menu-item:hover > .menu-link,
	body.bpc-pickup-page .ast-below-header-bar .ast-builder-menu-1 .menu-item:focus > .menu-link,
	body.bpc-pickup-page .ast-below-header-bar .ast-builder-menu-1 .menu-item:focus-visible > .menu-link,
	body.bpc-pickup-page .ast-below-header-bar .ast-builder-menu-1 .menu-item.current-menu-item > .menu-link,
	body.bpc-pickup-page .ast-below-header-bar .ast-builder-menu-1 .menu-item.current-menu-ancestor > .menu-link,
	body.bpc-pickup-page .ast-below-header-bar .ast-builder-menu-1 .current-menu-ancestor > .menu-link {
		color: #23252c;
	}

	body.bpc-pickup-page .ast-below-header-bar .ast-builder-menu-1 .menu-item.current-menu-item > .menu-link {
		box-shadow: inset 0 -3px 0 #f5893e;
	}
}

/* The phone menu button is the same white, on the white header bar. */
body.bpc-pickup-page [data-section="section-header-mobile-trigger"] .ast-button-wrap .ast-mobile-menu-trigger-minimal {
	color: #23252c;
}

body.bpc-pickup-page [data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
	fill: #23252c;
}

/* Old "Please pick your location" block. Hidden only after the new chooser
   is in the page, so a filter failure leaves the original buttons in place. */
body.bpc-pickup-page:has(#bpc-pickup) .elementor-element-253e0c2,
body.bpc-pickup-page:has(#bpc-pickup) .elementor-element-da0ef6c,
body.bpc-pickup-page:has(#bpc-pickup) .e-con:has(a[href="https://bopple.app/black-pearl-cafe-palmerston/menu?order_type=collect"]),
body.bpc-pickup-page .bpc-pickup-legacy {
	display: none !important;
}

.bpc-pickup {
	box-sizing: border-box;
	width: min(1120px, calc(100% - 48px));
	margin: 28px auto 88px;
	color: #23252c;
	font-family: Lato, sans-serif;
}

.bpc-pickup__title {
	margin: 0 0 36px;
	color: #23252c;
	font-family: Lato, sans-serif;
	font-size: clamp(2.25rem, 4vw, 3.25rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
}

.bpc-pickup *,
.bpc-pickup *::before,
.bpc-pickup *::after,
.bpc-pickup__dialog,
.bpc-pickup__dialog * {
	box-sizing: border-box;
}

.bpc-pickup__lead {
	margin: 0 0 8px;
	max-width: 40rem;
	color: #23252c;
	font-family: Lato, sans-serif;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.35;
}

.bpc-pickup__privacy {
	margin: 0 0 20px;
	max-width: 40rem;
	color: #23252c;
	font-size: 1rem;
	line-height: 1.5;
}

.bpc-pickup__status:empty {
	margin: 0;
}

.bpc-pickup__banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: -12px 0 28px;
}

.bpc-pickup__banner p {
	margin: 0;
	color: #23252c;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
}

.bpc-pickup__switch {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 8px 2px;
	color: #23252c;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.bpc-pickup__switch:hover,
.bpc-pickup__switch:focus-visible,
.bpc-pickup__switch:visited {
	color: #23252c;
}

.bpc-pickup__switch:focus-visible {
	outline: 2px solid #23252c;
	outline-offset: 3px;
	border-radius: 8px;
}

.bpc-pickup__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	align-items: stretch;
}

.bpc-pickup__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin: 0;
	padding: 36px 28px 28px;
	background: #fff;
	border: 1px solid #eadfd4;
	border-radius: 20px;
}

.bpc-pickup__card.is-primary {
	background: #f1dfd1;
	border-color: #f5893e;
}

/* The other card is only pointed at by moving focus to its order button.
   A second outline around the whole card read as a heavy black box. */

.bpc-pickup__badge {
	align-self: flex-start;
	margin: 0 0 14px;
	padding: 7px 12px;
	color: #fff;
	background: #23252c;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	line-height: 1.2;
	text-transform: uppercase;
}

.bpc-pickup__badge[hidden] {
	display: none !important;
}

.bpc-pickup__name {
	margin: 0 0 10px;
	color: #23252c;
	font-family: Lato, sans-serif;
	font-size: clamp(1.85rem, 2.8vw, 2.5rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.12;
}

.bpc-pickup__address {
	margin: 0;
	color: #23252c;
	font-size: 1.2rem;
	line-height: 1.4;
}

.bpc-pickup__hours {
	margin: 10px 0 0;
	color: #23252c;
	font-size: 0.95rem;
	font-weight: 400;
	line-height: 1.4;
}

.bpc-pickup__detail {
	margin: 4px 0 0;
	color: #23252c;
	font-size: 1rem;
	line-height: 1.45;
}

.bpc-pickup__order,
.bpc-pickup__continue,
.bpc-pickup__back {
	touch-action: manipulation;
	font-family: Lato, sans-serif;
}

/* Astra sets a:hover, a:focus { color: #ee893e }. That orange is the same
   as the button fill, so a focused order link became a blank orange bar.
   These selectors beat that rule for every card and every interaction state. */
body.bpc-pickup-page a.bpc-pickup__order,
body.bpc-pickup-page a.bpc-pickup__order:link,
body.bpc-pickup-page a.bpc-pickup__order:visited,
body.bpc-pickup-page a.bpc-pickup__order:hover,
body.bpc-pickup-page a.bpc-pickup__order:focus,
body.bpc-pickup-page a.bpc-pickup__order:focus-visible,
body.bpc-pickup-page a.bpc-pickup__order:active,
body.bpc-pickup-page .bpc-pickup__card.is-primary a.bpc-pickup__order,
body.bpc-pickup-page .bpc-pickup__card.is-primary a.bpc-pickup__order:link,
body.bpc-pickup-page .bpc-pickup__card.is-primary a.bpc-pickup__order:visited,
body.bpc-pickup-page .bpc-pickup__card.is-primary a.bpc-pickup__order:hover,
body.bpc-pickup-page .bpc-pickup__card.is-primary a.bpc-pickup__order:focus,
body.bpc-pickup-page .bpc-pickup__card.is-primary a.bpc-pickup__order:focus-visible,
body.bpc-pickup-page .bpc-pickup__card.is-primary a.bpc-pickup__order:active,
body.bpc-pickup-page .bpc-pickup__card.is-secondary a.bpc-pickup__order,
body.bpc-pickup-page .bpc-pickup__card.is-secondary a.bpc-pickup__order:link,
body.bpc-pickup-page .bpc-pickup__card.is-secondary a.bpc-pickup__order:visited,
body.bpc-pickup-page .bpc-pickup__card.is-secondary a.bpc-pickup__order:hover,
body.bpc-pickup-page .bpc-pickup__card.is-secondary a.bpc-pickup__order:focus,
body.bpc-pickup-page .bpc-pickup__card.is-secondary a.bpc-pickup__order:focus-visible,
body.bpc-pickup-page .bpc-pickup__card.is-secondary a.bpc-pickup__order:active {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	margin-top: 36px;
	padding: 14px 16px;
	color: #23252c;
	-webkit-text-fill-color: #23252c;
	background-color: #f5893e;
	background-image: none;
	border: 2px solid #f5893e;
	border-radius: 12px;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

body.bpc-pickup-page a.bpc-pickup__order:hover,
body.bpc-pickup-page a.bpc-pickup__order:focus:hover,
body.bpc-pickup-page .bpc-pickup__card.is-primary a.bpc-pickup__order:hover,
body.bpc-pickup-page .bpc-pickup__card.is-secondary a.bpc-pickup__order:hover {
	color: #23252c;
	-webkit-text-fill-color: #23252c;
	background-color: #ffd7b8;
	border-color: #c45e1a;
}

body.bpc-pickup-page a.bpc-pickup__order:active,
body.bpc-pickup-page .bpc-pickup__card.is-primary a.bpc-pickup__order:active,
body.bpc-pickup-page .bpc-pickup__card.is-secondary a.bpc-pickup__order:active {
	color: #23252c;
	-webkit-text-fill-color: #23252c;
	background-color: #f5893e;
	border-color: #23252c;
}

body.bpc-pickup-page a.bpc-pickup__order:focus,
body.bpc-pickup-page a.bpc-pickup__order:focus-visible {
	outline: 2px solid #23252c !important;
	outline-offset: 3px !important;
}

.bpc-pickup__overlay {
	position: fixed;
	z-index: 1000000;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(35, 37, 44, 0.62);
}

.bpc-pickup__overlay[hidden] {
	display: none !important;
}

.bpc-pickup__dialog {
	width: min(100%, 28rem);
	max-height: min(90vh, 40rem);
	overflow: auto;
	padding: 28px 24px 24px;
	background: #fff;
	border-top: 8px solid #f5893e;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(35, 37, 44, 0.28);
	color: #23252c;
	font-family: Lato, sans-serif;
}

.bpc-pickup__dialog:focus {
	outline: none;
}

.bpc-pickup__dialog-title {
	margin: 0;
	color: #23252c;
	font-family: Lato, sans-serif;
	font-size: clamp(1.45rem, 3.5vw, 1.75rem);
	font-weight: 700;
	line-height: 1.3;
}

.bpc-pickup__dialog-hours {
	margin: 0;
	color: #23252c;
	font-size: 1.05rem;
	line-height: 1.45;
}

.bpc-pickup__dialog-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.bpc-pickup__continue,
.bpc-pickup__back {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 52px;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

body.bpc-pickup-page a.bpc-pickup__continue,
body.bpc-pickup-page a.bpc-pickup__continue:link,
body.bpc-pickup-page a.bpc-pickup__continue:visited,
body.bpc-pickup-page a.bpc-pickup__continue:hover,
body.bpc-pickup-page a.bpc-pickup__continue:focus,
body.bpc-pickup-page a.bpc-pickup__continue:focus-visible,
body.bpc-pickup-page a.bpc-pickup__continue:active {
	color: #23252c;
	-webkit-text-fill-color: #23252c;
	background-color: #f5893e;
	background-image: none;
	border: 2px solid #f5893e;
	text-decoration: none;
}

body.bpc-pickup-page a.bpc-pickup__continue:hover,
body.bpc-pickup-page a.bpc-pickup__continue:focus:hover {
	color: #23252c;
	-webkit-text-fill-color: #23252c;
	background-color: #ffd7b8;
	border-color: #c45e1a;
}

body.bpc-pickup-page a.bpc-pickup__continue:focus,
body.bpc-pickup-page a.bpc-pickup__continue:focus-visible,
body.bpc-pickup-page button.bpc-pickup__back:focus,
body.bpc-pickup-page button.bpc-pickup__back:focus-visible {
	outline: 2px solid #23252c !important;
	outline-offset: 3px !important;
}

body.bpc-pickup-page button.bpc-pickup__back,
body.bpc-pickup-page button.bpc-pickup__back:hover,
body.bpc-pickup-page button.bpc-pickup__back:focus,
body.bpc-pickup-page button.bpc-pickup__back:focus-visible,
body.bpc-pickup-page button.bpc-pickup__back:active {
	color: #23252c;
	-webkit-text-fill-color: #23252c;
	background-color: #fff;
	background-image: none;
	border: 2px solid #23252c;
}

body.bpc-pickup-page button.bpc-pickup__back:hover,
body.bpc-pickup-page button.bpc-pickup__back:focus:hover {
	color: #23252c;
	-webkit-text-fill-color: #23252c;
	background-color: #f1dfd1;
}

body.bpc-pickup-lock {
	overflow: hidden;
}

@media (min-width: 768px) {
	.bpc-pickup__grid {
		grid-template-columns: 1fr 1fr;
		gap: 28px;
	}

	.bpc-pickup__card {
		padding: 40px 32px 32px;
	}
}

@media (min-width: 1025px) {
	.bpc-pickup {
		width: min(1120px, calc(100% - 80px));
	}
}

@media (max-width: 767px) {
	.bpc-pickup {
		width: calc(100% - 48px);
		margin-top: 12px;
		margin-bottom: 56px;
	}

	.bpc-pickup__title {
		margin-bottom: 24px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bpc-pickup__card,
	.bpc-pickup__order,
	.bpc-pickup__continue,
	.bpc-pickup__back {
		transition: none;
	}
}

@media print {
	.bpc-pickup__overlay {
		display: none !important;
	}
}
