/*
Theme Name: ebb-child
Theme URI: https://eatbaobao.com
Description: Child theme for Sydney. Custom theme changes live here so the parent theme can be updated independently.
Author: Eat Bao Bao
Author URI: https://eatbaobao.com
Template: sydney
Version: 1.0.0
Text Domain: ebb-child
*/

.ebb-global-header:empty,
.ebb-global-footer:empty {
	display: none;
}

.ebb-order-bar {
	position: fixed;
	right: 20px;
	bottom: calc(20px + env(safe-area-inset-bottom));
	left: auto;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	width: max-content;
	min-width: 168px;
	padding: 14px;
	background: #101828;
	border-radius: 20px;
	box-shadow: 0 16px 40px rgba(16, 24, 40, 0.28);
}

.ebb-order-bar__title {
	margin: 0;
	color: #f6e7c1;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.18em;
	line-height: 1;
	text-align: center;
}

.ebb-order-bar__actions {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
}

.ebb-order-bar__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	outline: none;
	box-shadow: none;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ebb-order-bar__action--grab {
	background: #00b14f;
}

.ebb-order-bar__action--foodpanda {
	background: #d70f64;
}

.ebb-order-bar__action--shopee {
	background: #ee4d2d;
}

.ebb-order-bar__action:hover,
.ebb-order-bar__action:focus,
.ebb-order-bar__action:focus-visible {
	border: 0;
	outline: none;
	box-shadow: none;
	color: #fff;
	filter: none;
}

.ebb-order-bar__action--grab:hover,
.ebb-order-bar__action--grab:focus,
.ebb-order-bar__action--grab:focus-visible {
	background-color: #009643;
}

.ebb-order-bar__action--foodpanda:hover,
.ebb-order-bar__action--foodpanda:focus,
.ebb-order-bar__action--foodpanda:focus-visible {
	background-color: #c00d58;
}

.ebb-order-bar__action--shopee:hover,
.ebb-order-bar__action--shopee:focus,
.ebb-order-bar__action--shopee:focus-visible {
	background-color: #d94424;
}

.ebb-order-bar__shopee {
	position: relative;
	display: flex;
}

.ebb-order-bar__action,
.ebb-order-bar__shopee,
.ebb-order-bar__action--shopee {
	width: 100%;
}

.ebb-order-bar__tip {
	position: absolute;
	top: 50%;
	right: calc(100% + 14px);
	bottom: auto;
	left: auto;
	width: max-content;
	max-width: min(220px, calc(100vw - 210px));
	margin: 0;
	padding: 12px 14px;
	background: #fff;
	color: #101828;
	border-radius: 12px;
	box-shadow: none;
	filter: drop-shadow(0 12px 24px rgba(16, 24, 40, 0.2));
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.45;
	text-align: center;
	transform: translateY(-50%);
}

.ebb-order-bar__tip::after {
	content: "";
	position: absolute;
	top: 50%;
	right: -9px;
	bottom: auto;
	left: auto;
	width: 0;
	height: 0;
	background: transparent;
	transform: translateY(-50%);
	border-style: solid;
	border-width: 8px 0 8px 10px;
	border-color: transparent transparent transparent #fff;
}

.ebb-order-bar__tip[hidden] {
	display: none;
}

@media (max-width: 782px) {
	.ebb-order-bar {
		right: 12px;
		bottom: calc(12px + env(safe-area-inset-bottom));
	}
}
