.hp-kudos-offer-row {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	box-sizing: border-box;
	margin-top: 12px;
}

.hp-listing--view-block .hp-listing__footer:has(.hp-kudos-offer-row) {
	flex-wrap: wrap;
}

.hp-listing__footer .hp-kudos-offer-row {
	flex: 1 0 100%;
	order: 40;
	margin-top: 0;
}

/*
 * ExpertHive 1.0.6 style.css, from 48em, sets
 * .hp-listing--view-block .hp-listing__footer to column-reverse and flex-end.
 * A 100% flex-basis would be the column height. Stretch this row across the
 * footer and keep the price on the left. order -1 sits at the bottom of that
 * reversed column, and on a normal HivePress row it still wraps to its own line.
 */
@media only screen and (min-width: 48em) {
	.hp-listing--view-block .hp-listing__footer .hp-kudos-offer-row {
		flex: 0 0 auto;
		align-self: stretch;
		width: 100%;
		order: -1;
	}
}

.hp-listing--view-block > .hp-kudos-offer-row,
.hp-listing__content > .hp-kudos-offer-row {
	flex: 1 0 100%;
}

.hp-kudos-offer-row__price {
	display: inline-flex;
	flex-flow: row nowrap;
	align-items: center;
	gap: 8px;
	min-width: 0;
	font-weight: 600;
	white-space: nowrap;
}

.hp-kudos-offer-row__icon {
	width: 20px;
	height: 20px;
	flex: 0 0 auto;
}

.hp-kudos-offer-row__action {
	flex: 0 0 auto;
	margin-left: auto;
	white-space: nowrap;
}

.hp-kudos-panel {
	display: grid;
	gap: 12px;
}

.hp-kudos-offer-form textarea,
.hp-kudos-offer-form input[type="text"] {
	width: 100%;
	box-sizing: border-box;
}

.hp-kudos-note {
	font-size: 0.9em;
}

/*
 * Get a Quick Quote is the row under the listing price and the favourites
 * heart. Those two stay where HivePress and ExpertHive already place them.
 * HivePress lays .hp-listing__footer out as one flex line, so the quote row
 * takes the whole line (flex-basis 100%, no shrink) and wraps under them.
 * The button itself is a block, the full width of that row, with space above
 * it. Its left edge is the footer's content edge, the same edge as the price.
 *
 * ExpertHive 1.0.6, from 48em, sets that footer to column-reverse and flex-end
 * and uses it as the card's right-hand column. A 100% flex-basis there is the
 * column height and would sit the button beside the price. The desktop rule
 * takes the quote row out of that flex line and pins it to the bottom of the
 * footer, still full width, still inside the footer.
 */
.hp-listing--view-block .hp-listing__footer,
.hp-vendor--view-block .hp-vendor__footer {
	flex-wrap: wrap;
}

.spl-quick-quote-row {
	display: block;
	box-sizing: border-box;
	width: 100%;
	flex: 1 0 100%;
	margin-left: 0;
	margin-right: 0;
}

a.spl-quick-quote {
	display: block;
	box-sizing: border-box;
	width: 100%;
	margin-top: 12px;
	margin-left: 0;
	margin-right: 0;
	text-align: center;
	text-decoration: none;
}

@media only screen and (min-width: 48em) {
	.hp-listing--view-block .hp-listing__footer {
		position: relative;
		min-width: 11rem;
		padding-bottom: 52px;
	}

	.hp-listing--view-block .hp-listing__footer .spl-quick-quote-row {
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0;
		width: 100%;
		flex: 0 0 auto;
		margin: 0;
	}

	.site-sidebar .hp-listing--view-block .hp-listing__footer {
		position: static;
		min-width: 0;
		padding-bottom: 0;
	}

	.site-sidebar .hp-listing--view-block .hp-listing__footer .spl-quick-quote-row {
		position: static;
		left: auto;
		right: auto;
		bottom: auto;
		flex: 1 0 100%;
		width: 100%;
	}
}

/*
 * On a single provider listing the HivePress buy form is relabelled
 * Request a Quote and repeats Get a Quick Quote. Hide that form only.
 * The homepage carousel Request a Quote control is not this form.
 */
body.single-hp_listing form.hp-form--listing-buy {
	display: none !important;
}

.hp-kudos-wallet__balance {
	font-size: 1.35rem;
	font-weight: 700;
	color: #14332e;
}

.spl-kudos-topup,
.hp-kudos-plan-grid .hp-membership-plan__select-button {
	background: #00796f;
	border-color: #00796f;
	color: #fff;
	text-decoration: none;
}

.hp-kudos-plan-grid .hp-membership-plan {
	height: 100%;
}

.hp-kudos-plan__quantity {
	margin: 0.35rem 0 0;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
	color: #00796f;
}

.hp-kudos-plan-grid .hp-row {
	display: flex;
	flex-wrap: wrap;
}

@media only screen and (max-width: 47.99em) {
	.hp-kudos-plan-grid .hp-col-xs-12 {
		flex-basis: 100%;
		max-width: 100%;
	}
}

body.woocommerce-cart .site-header .header-navbar {
	min-height: 0 !important;
	padding-top: 8px !important;
	padding-bottom: 4px !important;
}

body.woocommerce-cart .site-header .custom-logo {
	width: 148px !important;
	max-width: 148px !important;
	max-height: 52px !important;
}

body.woocommerce-cart .site-header .header-navbar__menu > ul > li > a,
body.woocommerce-cart .site-header .header-navbar__actions .hp-menu__item {
	padding-top: 0.35rem !important;
	padding-bottom: 0.35rem !important;
}

body.woocommerce-cart .header-hero,
body.woocommerce-cart .header-hero--title {
	padding-top: 0 !important;
}

body.woocommerce-cart .header-hero--title .header-hero__content,
body.woocommerce-cart .site-header .header-hero--title .header-hero__content {
	padding-top: 0 !important;
	padding-bottom: 10px !important;
}

body.woocommerce-cart .header-hero--title h1,
body.woocommerce-cart .header-hero--title .page__title,
body.woocommerce-cart .site-header .header-hero--title .page__title {
	margin: 0 !important;
	font-size: 22px !important;
	line-height: 1.15 !important;
}

body.woocommerce-cart .wc-block-cart,
body.woocommerce-cart .wp-block-woocommerce-cart {
	margin-top: 12px;
}

body.woocommerce-cart .wc-block-grid__product-link,
body.woocommerce-cart .wc-block-grid__product-title {
	color: #14332e;
	font-weight: 700;
	text-decoration: none;
}

body.woocommerce-cart .wc-block-grid__product .add_to_cart_button {
	background: #00796f;
	border-radius: 8px;
	color: #fff;
}

@media only screen and (max-width: 48em) {
	body.woocommerce-cart .header-hero--title h1,
	body.woocommerce-cart .site-header .header-hero--title .page__title {
		margin-top: 0 !important;
		font-size: 20px !important;
	}

	body.woocommerce-cart .site-header .header-navbar {
		padding-left: 12px !important;
		padding-right: 12px !important;
	}

	body.woocommerce-cart .wc-block-grid__products {
		grid-template-columns: 1fr;
	}
}
