/* RestroPress Pickup Discount badge styles (theme-safe). */

.order-online .rpress-delivery-wrap .rpress-delivery-options ul#rpressdeliveryTab.nav > li.nav-item {
	width: 50%;
}

.order-online .rpress-delivery-wrap .rpress-delivery-options ul#rpressdeliveryTab.nav > li > a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	line-height: 1.2;
	text-align: center;
	white-space: normal;
}

.order-online .rpress-delivery-wrap .rpress-delivery-options .rp-discount-service-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	gap: 0;
	line-height: 1.1;
}

.order-online .rpress-delivery-wrap .rpress-delivery-options .rp-discount-badge,
.order-online .rpress-delivery-wrap .rpress-delivery-options ul#rpressdeliveryTab.nav > li > a i.badge.badge-info {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 11px;
	font-style: italic;
	font-weight: 600;
	line-height: 1.05;
	background: transparent;
	border: 0;
	color: #e7272d;
	white-space: nowrap;
}

.order-online .rpress-delivery-wrap .rpress-delivery-options .discount-badge-label {
	display: block;
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.1;
	color: inherit;
	white-space: nowrap;
}

.order-online .rpress-delivery-wrap .rpress-delivery-options ul#rpressdeliveryTab.nav > li.active > a .rp-discount-badge,
.order-online .rpress-delivery-wrap .rpress-delivery-options ul#rpressdeliveryTab.nav > li.active > a i.badge.badge-info {
	color: #e7272d;
}

/* Compact checkout tab rendering (avoid stacked/overflow tabs). */
#rpress_checkout_wrap .rpress-delivery-options ul#rpressdeliveryTab.nav {
	display: flex;
	padding: 0;
}

#rpress_checkout_wrap .rpress-delivery-options ul#rpressdeliveryTab.nav > li.nav-item {
	flex: 1 1 0;
}

#rpress_checkout_wrap .rpress-delivery-options ul#rpressdeliveryTab.nav > li > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 43px;
	padding: 2px 8px;
	margin: 0;
	border-radius: 0;
	line-height: 1.1;
}

#rpress_checkout_wrap .rpress-delivery-options .rp-discount-service-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	max-width: 100%;
}

#rpress_checkout_wrap .rpress-delivery-options .rp-discount-badge,
#rpress_checkout_wrap .rpress-delivery-options ul#rpressdeliveryTab.nav > li > a i.badge.badge-info {
	display: block;
	margin: 0;
	padding: 0;
	font-size: 11px;
	font-style: italic;
	font-weight: 600;
	line-height: 1;
	color: #e7272d;
	white-space: nowrap;
}

#rpress_checkout_wrap .rpress-delivery-options .discount-badge-label {
	display: block;
	line-height: 1;
	color: inherit;
	white-space: nowrap;
}

#rpress_checkout_wrap .rpress-delivery-options ul#rpressdeliveryTab.nav > li.active > a .rp-discount-badge {
	color: #fff;
}

/* Keep badge hidden where service labels are not needed. */
div#rp-order-details .rp-order-section .rp-discount-badge,
p#rpress-order-note .rp-discount-badge,
div#rp-order-details .rp-order-section span.badge.badge-primary.badge-in-modal,
p#rpress-order-note span.badge.badge-primary.badge-in-modal {
	display: none !important;
}
