/**
 * BFP Blue Dart Delivery Estimates — product / cart / checkout / thank-you.
 * Compact Amazon-style card in the same warm premium tint as the tracking
 * tiles. Scoped to .bfp-edd-card* — touches no existing theme styles.
 */

.bfp-edd-card {
	--bfp-edd-ink: #17130f;
	--bfp-edd-muted: rgba(23, 19, 15, 0.55);
	--bfp-edd-green: #147a3c;
	--bfp-edd-red: #c0392b;
	--bfp-edd-amber: #b45309;

	margin: 14px 0 0;
	padding: 12px 14px;
	background: linear-gradient(135deg, #f8f5f1 0%, #f2ece5 100%);
	border-radius: 14px;
	width: 100%;
	font-size: 13px;
	line-height: 1.45;
	color: var(--bfp-edd-ink);
	position: relative;
}

/* Head — compact */
.bfp-edd-card__head {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 8px;
}

.bfp-edd-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	box-shadow: 0 1px 4px rgba(23, 19, 15, 0.08);
	color: #6b584a;
	flex: 0 0 auto;
}

.bfp-edd-card__icon svg {
	display: block;
	width: 13px;
	height: 13px;
}

.bfp-edd-card__title {
	font-weight: 800;
	font-size: 12.5px;
	letter-spacing: 0.01em;
	color: var(--bfp-edd-ink);
}

.bfp-edd-card__brand {
	margin-left: auto;
	font-size: 9.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #9b9189;
}

/* Row — compact */
.bfp-edd-card__row {
	display: flex;
	gap: 7px;
	align-items: stretch;
}

.bfp-edd-card .bfp-edd-card__pin {
	flex: 1 1 auto;
	min-width: 0;
	height: 38px;
	padding: 0 12px;
	border: 1.5px solid #d9cfc2 !important; /* visible default border (beats theme input resets) */
	border-radius: 9px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: 0.06em;
	color: var(--bfp-edd-ink);
	background: #fff;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	-webkit-appearance: none;
	appearance: none;
}

.bfp-edd-card__pin::placeholder {
	font-weight: 400;
	letter-spacing: normal;
	color: #a39b93;
}

.bfp-edd-card__pin:focus {
	border-color: #ff4b1f;
	box-shadow: 0 0 0 3px rgba(255, 75, 31, 0.14);
}

.bfp-edd-card__btn {
	flex: 0 0 auto;
	height: 38px;
	padding: 0 14px;
	border: 0;
	border-radius: 9px;
	background: linear-gradient(135deg, #ff4b1f, #ff6a35);
	color: #fff;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: 0.02em;
	cursor: pointer;
	transition: background 0.15s ease, transform 0.05s ease;
	white-space: nowrap;
	box-shadow: 0 5px 12px -6px rgba(255, 75, 31, 0.5);
}

.bfp-edd-card__btn:hover,
.bfp-edd-card__btn:focus,
.bfp-edd-card__btn:active {
	background: #f0400f;
	color: #fff !important; /* keep label white on hover (theme hover styles turn it black) */
}

.bfp-edd-card__btn:active {
	transform: translateY(1px);
}

.bfp-edd-card__btn:disabled {
	opacity: 0.6;
	cursor: wait;
}

/* Result — compact */
.bfp-edd-card__result {
	margin-top: 0;
}

.bfp-edd-card__placeholder {
	margin: 0;
	color: var(--bfp-edd-muted);
	font-size: 12.5px;
}

/* Result — single plain line, only the date bold */
.bfp-edd-card__line {
	margin: 0;
	font-size: 11px;
	line-height: 1;
	color: var(--bfp-edd-ink);
	word-break: break-word;
	overflow-wrap: anywhere;
}

.bfp-edd-card__line strong {
	font-weight: 800;
	color: var(--bfp-edd-ink);
}

.bfp-edd-card__unavailable {
	margin: 0;
	font-size: 12.5px;
	color: var(--bfp-edd-red);
}

.bfp-edd-card__error {
	margin: 0;
	font-size: 12px;
	color: var(--bfp-edd-amber);
}

/* Collapsed product card — result-only: head, editor row and note hidden */
.bfp-edd-card.is-collapsed .bfp-edd-card__head,
.bfp-edd-card.is-collapsed .bfp-edd-card__editor,
.bfp-edd-card.is-collapsed .bfp-edd-card__note {
	display: none;
}

/* Inline Edit link (pencil icon + text) at the end of the result line */
.bfp-edd-card__edit {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	margin-left: 6px;
	color: #ea580c;
	font-weight: 700;
	font-size: 11px;
	text-decoration: none;
	cursor: pointer;
	vertical-align: middle;
}

/* =================================================================
 * Recently Viewed — match Related Products exactly (fonts, spacing,
 * gaps, full width). Plugin bfp-recently-viewed renders .bfp-single-recent
 * inside the theme product container; the escape trick below makes it
 * full width like .pbpp-related.
 * ============================================================== */

body.single-product .bfp-single-recent {
	width: min(1320px, 94vw);
	max-width: none;
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	margin-top: 34px;
	padding-top: 22px;
	padding-bottom: 34px;
	background: #fff;
	border-top: 1px solid #e7e2df;
	border-bottom: 0;
}

body.single-product .bfp-single-recent__container {
	width: 100%;
	max-width: none;
	margin: 0 auto;
	padding: 0;
}

body.single-product .bfp-single-recent__grid {
	gap: 16px;
}

/* Card: same border/shadow as related */
body.single-product .bfp-single-recent__card {
	border-color: #e9e5e2;
}

/* Image: 220px like related */
body.single-product .bfp-single-recent__image {
	height: 220px !important;
}

/* Category chip: 10px uppercase — same as related */
body.single-product .bfp-single-recent__category {
	margin: 10px 0 !important;
	font-size: 10px !important;
	letter-spacing: 1px !important;
	text-transform: uppercase !important;
	color: #96918d !important;
	font-weight: 500 !important;
}

body.single-product .bfp-single-recent__category a {
	color: inherit !important;
	text-decoration: none;
}

/* Title: 14px like related + hover orange */
body.single-product .bfp-single-recent__card h3 {
	margin: 0 0 7px !important;
	font-size: 14px !important;
	line-height: 1.35 !important;
	min-height: 0 !important;
	font-weight: 700 !important;
	color: #242424 !important;
}

body.single-product .bfp-single-recent__card h3 a {
	color: #242424 !important;
	text-decoration: none;
}

body.single-product .bfp-single-recent__card h3 a:hover {
	color: #ea580c !important;
	text-decoration: underline;
}

/* SKU: centered 12px like related */
body.single-product .bfp-single-recent__sku {
	margin: 0 0 8px !important;
	font-size: 12px !important;
	color: #777 !important;
}

body.single-product .bfp-single-recent__sku strong {
	font-weight: 600 !important;
	color: #555 !important;
}

/* Price: 15px w900 like related */
body.single-product .bfp-single-recent__price {
	margin: 4px 0 7px !important;
	font-size: 15px !important;
	font-weight: 900 !important;
	color: #252525 !important;
}

body.single-product .bfp-single-recent__price del {
	font-size: 12px !important;
	color: #888 !important;
	font-weight: 500 !important;
}

/* Rating: same rhythm as related */
body.single-product .bfp-single-recent__rating {
	margin: 0 8px 14px !important;
	font-size: 13px !important;
	min-height: 20px !important;
}

body.single-product .bfp-single-recent__stars {
	font-size: 17px !important;
	letter-spacing: 1px !important;
}

/* Actions + buttons: SAME split design/colors/height as Related Products
   (mirrors the theme's .pbpp-related-grid rules: flex actions, 45px
   buttons, 11px font, 10px 5px padding, width 50% each) */
body.single-product .bfp-single-recent__actions {
	display: flex !important;
	width: 100% !important;
	margin-top: auto !important;
	min-height: 45px !important;
}

body.single-product .bfp-single-recent__button {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 7px !important;
	width: 50% !important;
	min-height: 45px !important;
	padding: 10px 5px !important;
	text-align: center !important;
	color: #fff !important;
	font-size: 11px !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	line-height: 1.2 !important;
	white-space: nowrap;
}

body.single-product .bfp-single-recent__button svg {
	width: 15px !important;
	height: 15px !important;
	flex: 0 0 15px;
}

body.single-product .bfp-single-recent__button--cart {
	background: #ff4b1f !important;
	border-right: 1px solid rgba(255, 255, 255, 0.25) !important;
}

body.single-product .bfp-single-recent__button--cart:hover {
	background: #e83d14 !important;
	color: #fff !important;
	filter: none;
}

body.single-product .bfp-single-recent__button--buy {
	background: #171717 !important;
	border-left: 1px solid rgba(255, 255, 255, 0.18) !important;
}

body.single-product .bfp-single-recent__button--buy:hover {
	background: #fff0e5 !important;
	color: #171717 !important;
	filter: none;
}

/* Responsive mirrors of Related Products' breakpoints */
@media (max-width: 1100px) {
	body.single-product .bfp-single-recent {
		width: 94vw;
	}

	body.single-product .bfp-single-recent__image {
		height: 205px !important;
	}

	body.single-product .bfp-single-recent__card h3 {
		font-size: 16px !important;
	}

	body.single-product .bfp-single-recent__category {
		font-size: 12px !important;
	}

	body.single-product .bfp-single-recent__sku {
		font-size: 13px !important;
	}

	body.single-product .bfp-single-recent__price {
		font-size: 19px !important;
	}

	body.single-product .bfp-single-recent__button {
		font-size: 11px !important;
	}
}

@media (max-width: 900px) {
	body.single-product .bfp-single-recent__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}

	body.single-product .bfp-single-recent__image {
		height: 220px !important;
	}
}

@media (max-width: 600px) {
	body.single-product .bfp-single-recent {
		width: 94vw;
		margin-top: 28px;
		padding-top: 18px;
	}

	body.single-product .bfp-single-recent__image {
		height: 160px !important;
	}

	body.single-product .bfp-single-recent__category {
		margin: 11px 7px 6px !important;
		font-size: 10px !important;
		letter-spacing: 0.5px !important;
	}

	body.single-product .bfp-single-recent__card h3 {
		margin: 0 7px 6px !important;
		font-size: 13px !important;
		min-height: 2.8em !important;
	}

	body.single-product .bfp-single-recent__sku {
		margin-bottom: 10px !important;
		font-size: 11px !important;
	}

	body.single-product .bfp-single-recent__price {
		margin-bottom: 9px !important;
		font-size: 16px !important;
	}

	body.single-product .bfp-single-recent__rating {
		gap: 4px !important;
		margin-bottom: 11px !important;
		font-size: 10px !important;
	}

	body.single-product .bfp-single-recent__stars {
		font-size: 14px !important;
		letter-spacing: 0 !important;
	}

	body.single-product .bfp-single-recent__actions {
		min-height: 44px !important;
	}

	body.single-product .bfp-single-recent__button {
		gap: 3px !important;
		padding: 9px 2px !important;
		font-size: 9px !important;
	}

	body.single-product .bfp-single-recent__button svg {
		flex-basis: 12px !important;
		width: 12px !important;
		height: 12px !important;
	}
}

@media (max-width: 380px) {
	body.single-product .bfp-single-recent__image {
		height: 145px !important;
	}

	body.single-product .bfp-single-recent__button {
		font-size: 8px !important;
	}

	body.single-product .bfp-single-recent__button svg {
		display: none !important;
	}
}

/* Related Products: title/SKU/price link (nested <a> fix in PBPP plugin) */
body.single-product .pbpp-related-name-link {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	flex: 0 0 auto;
	color: inherit;
	text-decoration: none;
}

/* Hover: title turns brand orange + underline (!important beats plugin color rules) */
body.single-product .pbpp-related-name-link:hover .pbpp-related-name {
	color: #ea580c !important;
	text-decoration: underline;
}

/* Category chip spacing — a product can belong to MULTIPLE categories
   (wc_get_product_category_list renders "A, B" with one <a> each). Links
   must render INLINE on a single line (never stacked blocks), and the 10px
   top/bottom spacing lives on the span itself so it applies once. */
body.single-product .pbpp-related-grid .pbpp-related-category {
	display: block !important;
	margin: 10px 0 !important;
}

body.single-product .pbpp-related-grid .pbpp-related-category a,
body.single-product .pbpp-related-grid a[rel="tag"] {
	display: inline !important;
	margin: 0 !important;
}

/* Equal-height grid rows: the image link must NOT flex-grow (it used to
   swallow leftover space, leaving a big gap between image and title on
   shorter cards). Pin rating+actions to the bottom instead — any leftover
   space sits invisibly between price and rating.
   NOTE: the plugin rule `.pbpp-product-page .pbpp-related-product-link`
   has specificity (0,3,0) with flex:1 0 auto — our selector adds the grid
   class (0,3,1) + !important so the grow is dead for good. */
body.single-product .pbpp-related-grid .pbpp-related-product-link {
	flex: 0 0 auto !important;
}

body.single-product .pbpp-related-grid .pbpp-related-rating {
	margin-top: auto !important;
}

.bfp-edd-card__edit:hover {
	color: #c2410c;
	text-decoration: underline;
}

.bfp-edd-card__edit svg {
	display: block;
	width: 11px;
	height: 11px;
}

.bfp-edd-card__note {
	margin: 8px 0 0;
	padding-top: 7px;
	border-top: 1px dashed rgba(23, 19, 15, 0.12);
	font-size: 10.5px;
	color: #a39b93;
}

/* Admin-only test-mode notice (customers never see this) */
.bfp-edd-card__admin-note {
	margin: 6px 0 0;
	font-size: 10.5px;
	font-weight: 600;
	color: #b45309;
}

/* Loading shimmer */
.bfp-edd-card.is-loading .bfp-edd-card__result {
	min-height: 28px;
	border-radius: 8px;
	background: linear-gradient(90deg, rgba(255,255,255,.6) 25%, rgba(255,255,255,.95) 50%, rgba(255,255,255,.6) 75%);
	background-size: 200% 100%;
	animation: bfp-edd-shimmer 1.1s linear infinite;
}

@keyframes bfp-edd-shimmer {
	from { background-position: 200% 0; }
	to { background-position: -200% 0; }
}

@keyframes bfp-edd-fade-in {
	from { opacity: 0; transform: translateY(2px); }
	to { opacity: 1; transform: none; }
}

/* Checkout placement */
#order_review .bfp-edd-card {
	margin: 12px 0 0;
	box-shadow: none;
}

/* Product page: keep the buy box's horizontal line, but remove its
   padding-top so the delivery card sits right under the line */
body.single-product .pbpp-buybox {
	padding-top: 0;
}

/* Gap below the delivery card, before the Add to Cart / Buy Now buttons */
.bfp-edd-card--product {
	margin-bottom: 10px;
}

/* Hide the finance line (0% finance at checkout) on the product page */
.pbpp-finance {
	display: none !important;
}

/* Help line now lives at the bottom of the Overview tab */
.pbpp-panel[data-panel="overview"] .pbpp-help {
	margin-top: 16px;
}

/* Thank-you — same warm tint, compact */
.bfp-edd-thanks {
	margin: 24px 0;
	padding: 20px 22px;
	text-align: center;
	background: linear-gradient(135deg, #f8f5f1 0%, #f2ece5 100%);
	border-radius: 16px;
	position: relative;
	overflow: hidden;
}

.bfp-edd-thanks__badge {
	width: 46px;
	height: 46px;
	margin: 0 auto 12px;
	border-radius: 50%;
	background: rgba(22, 163, 74, 0.12);
	color: #1c9e4f;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bfp-edd-thanks__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 800;
	color: var(--bfp-edd-ink, #17130f);
}

.bfp-edd-thanks__edd {
	margin: 0 0 5px;
	font-size: 14px;
	line-height: 1.6;
	color: var(--bfp-edd-ink, #17130f);
	word-break: break-word;
}

.bfp-edd-thanks__edd strong {
	font-weight: 800;
	color: var(--bfp-edd-ink, #17130f);
}

.bfp-edd-thanks__note {
	margin: 0;
	font-size: 11px;
	color: #a39b93;
}

/* Mobile */
@media (max-width: 575.98px) {
	.bfp-edd-card {
		padding: 12px;
		border-radius: 12px;
		max-width: 100%;
	}

	.bfp-edd-card__row {
		flex-direction: column;
	}

	.bfp-edd-card__pin {
		width: 100%;
	}

	.bfp-edd-card__btn {
		width: 100%;
	}

	.bfp-edd-thanks__title {
		font-size: 17px;
	}
}

/* =================================================================
 * Reviews Tab — complete premium redesign
 * (the woo-photo-reviews plugin replaces the native comment list with
 * wcpr masonry markup — restyled here into uniform premium cards)
 * ============================================================== */

/* Kill the wrapper's big top gap — content starts right under the tab bar */
.pbpp-reviews-panel .bfp-reviews-wrapper {
	margin: 0 auto !important;
	padding: 0 !important;
}

.pbpp-reviews-panel > h2 {
	margin: 0 0 14px !important;
}

.pbpp-reviews-panel .bfp-reviews-header {
	margin-bottom: 18px !important;
}

/* Summary card — beige brand tile */
.pbpp-reviews-panel .bfp-reviews-summary-card {
	background: linear-gradient(135deg, #f8f5f1 0%, #f2ece5 100%) !important;
	border: 1px solid rgba(23, 19, 15, 0.08) !important;
	border-radius: 16px !important;
	padding: 14px 20px !important;
	box-shadow: none !important;
}

.pbpp-reviews-panel .bfp-reviews-average {
	font-size: 2.2rem !important;
	font-weight: 800 !important;
	color: #17130f !important;
	line-height: 1 !important;
}

.pbpp-reviews-panel .bfp-reviews-summary-card .bfp-product-stars {
	color: #ff9800 !important;
	font-size: 1.15rem !important;
	letter-spacing: 3px !important;
}

.pbpp-reviews-panel .bfp-reviews-count-label {
	font-size: 12px !important;
	color: #9b9189 !important;
}

/* Masonry → uniform single-column premium cards */
/* Masonry → uniform single-column premium cards (tight) */
.pbpp-reviews-panel .wcpr-grid.wcpr-masonry-3-col {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 12px !important;
	position: static !important;
	height: auto !important;
}

.pbpp-reviews-panel .wcpr-grid-item {
	position: static !important;
	width: 100% !important;
	left: auto !important;
	top: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.pbpp-reviews-panel .wcpr-grid-item .wcpr-content {
	background: #fff !important;
	border: 1px solid #e9e5e2 !important;
	border-radius: 16px !important;
	padding: 14px 16px !important;
	box-shadow: 0 4px 14px rgba(23, 19, 15, 0.05) !important;
	position: static !important;
	height: auto !important;
	width: 100% !important;
	overflow: visible !important;
}

.pbpp-reviews-panel .review-content-container {
	padding: 0 !important;
	background: none !important;
	border: 0 !important;
}

/* Top row: author left — rating + date right */
.pbpp-reviews-panel .review-content-container-top {
	display: flex !important;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding-bottom: 8px;
	border-bottom: 1px dashed rgba(23, 19, 15, 0.1);
	margin-bottom: 8px;
}

.pbpp-reviews-panel .wcpr-comment-author {
	font-weight: 700 !important;
	color: #17130f !important;
	font-size: 14px !important;
	display: inline-flex !important;
	align-items: center;
	gap: 9px;
	margin: 0 !important;
}

.pbpp-reviews-panel .wcpr-comment-author::before {
	content: "" !important;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	padding: 0 !important;
	background: #ffece4 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") center / 16px no-repeat;
	box-shadow: inset 0 0 0 1px #ffd9c9;
}

.pbpp-reviews-panel .wcpr-comment-author a {
	color: inherit !important;
	text-decoration: none !important;
}

.pbpp-reviews-panel .wcpr-review-rating {
	display: flex !important;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	margin: 0 !important;
	text-align: right;
}

.pbpp-reviews-panel .wcpr-review-rating .star-rating {
	font-size: 14px !important;
	margin: 0 !important;
	float: none !important;
	display: inline-block !important;
}

/* Yellow/gold rating stars (wcpr theme rules were turning them dark) */
.pbpp-reviews-panel .wcpr-review-rating .star-rating:before {
	color: #ffb600 !important;
	opacity: 0.3 !important;
}

.pbpp-reviews-panel .wcpr-review-rating .star-rating span:before {
	color: #ffb600 !important;
	opacity: 1 !important;
}

.pbpp-reviews-panel .wcpr-review-date {
	font-size: 11px !important;
	color: #9b9189 !important;
}

/* Review text */
.pbpp-reviews-panel .wcpr-review-content {
	font-size: 14px !important;
	color: #4a4540 !important;
	line-height: 1.55 !important;
	margin: 0 !important;
	text-align: left !important;
}

/* Review photos (if any) — rounded tiles */
.pbpp-reviews-panel .wcpr-review-images,
.pbpp-reviews-panel .review-content-container img {
	border-radius: 10px !important;
}

.pbpp-reviews-panel .wcpr-review-images img {
	max-width: 88px !important;
	height: 88px !important;
	object-fit: cover !important;
	border: 1px solid #e9e5e2 !important;
	margin: 8px 6px 0 0 !important;
}

/* Review form card — premium */
.pbpp-reviews-panel .bfp-review-card-form {
	border: 1px solid #e9e5e2 !important;
	border-radius: 16px !important;
	padding: 16px !important;
	background: linear-gradient(160deg, #ffffff 0%, #fbf8f5 100%) !important;
	box-shadow: 0 4px 14px rgba(23, 19, 15, 0.05) !important;
}

.pbpp-reviews-panel .bfp-review-form-title {
	font-size: 16px !important;
	font-weight: 800 !important;
	color: #17130f !important;
	margin: 0 0 12px !important;
}

.pbpp-reviews-panel .wcpr-form-description {
	display: inline-block !important;
	background: #ffece4 !important;
	color: #c23a12 !important;
	border: 1px solid #ffd9c9 !important;
	border-radius: 999px !important;
	padding: 4px 12px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	margin: 0 0 12px !important;
}

.pbpp-reviews-panel .bfp-review-card-form .comment-notes {
	font-size: 11.5px !important;
	color: #9b9189 !important;
	margin: 0 0 12px !important;
}

.pbpp-reviews-panel .bfp-review-card-form input[type="text"],
.pbpp-reviews-panel .bfp-review-card-form input[type="email"],
.pbpp-reviews-panel .bfp-review-card-form textarea {
	width: 100% !important;
	border: 1.5px solid #d9cfc2 !important;
	border-radius: 10px !important;
	padding: 10px 12px !important;
	background: #fff !important;
	font-size: 13px !important;
	color: #17130f !important;
	margin: 0 0 12px !important;
	box-shadow: none !important;
	outline: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.pbpp-reviews-panel .bfp-review-card-form input[type="text"]:focus,
.pbpp-reviews-panel .bfp-review-card-form input[type="email"]:focus,
.pbpp-reviews-panel .bfp-review-card-form textarea:focus {
	border-color: #ff4b1f !important;
	box-shadow: 0 0 0 3px rgba(255, 75, 31, 0.14) !important;
}

.pbpp-reviews-panel .bfp-form-group label,
.pbpp-reviews-panel .bfp-review-card-form label {
	font-size: 11px !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.6px !important;
	color: #9b9189 !important;
	margin-bottom: 6px !important;
	display: inline-block !important;
}

/* Rating picker (select + stars) */
.pbpp-reviews-panel .comment-form-rating select {
	height: 40px !important;
	border: 1.5px solid #d9cfc2 !important;
	border-radius: 10px !important;
	background: #fff !important;
	padding: 0 12px !important;
	font-size: 13px !important;
	width: 100% !important;
	margin: 0 0 12px !important;
}

/* Submit button — brand gradient */
.pbpp-reviews-panel .bfp-review-card-form input[type="submit"],
.pbpp-reviews-panel .bfp-review-card-form button[type="submit"] {
	background: linear-gradient(135deg, #ff4b1f, #ff6a35) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 10px !important;
	padding: 12px 24px !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	letter-spacing: 0.02em;
	cursor: pointer !important;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, 0.5) !important;
	transition: background 0.15s ease !important;
}

.pbpp-reviews-panel .bfp-review-card-form input[type="submit"]:hover,
.pbpp-reviews-panel .bfp-review-card-form button[type="submit"]:hover {
	background: #f0400f !important;
}

/* =================================================================
 * Reviews Tab v2 — fully custom premium markup (bfp-rv__*, rendered by
 * mu-plugins/templates/bfp-reviews-template.php via comments_template
 * filter — no wcpr masonry at all)
 * ============================================================== */

.bfp-rv__head {
	margin-bottom: 14px;
}

.bfp-rv__eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: #ea580c;
	margin-bottom: 4px;
}

.bfp-rv__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	color: #17130f;
}

/* Summary tile — score + stars + count */
.bfp-rv__summary {
	display: flex;
	align-items: center;
	gap: 18px;
	background: linear-gradient(135deg, #f8f5f1 0%, #f2ece5 100%);
	border: 1px solid rgba(23, 19, 15, 0.08);
	border-radius: 16px;
	padding: 14px 20px;
	margin-bottom: 18px;
}

.bfp-rv__score {
	font-size: 2.1rem;
	font-weight: 800;
	color: #17130f;
	line-height: 1;
}

.bfp-rv__summary-right {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.bfp-rv__count {
	font-size: 12px;
	color: #9b9189;
}

/* Layout — cards left, form right */
.bfp-rv__layout {
	display: grid;
	grid-template-columns: 1.15fr 0.85fr;
	gap: 24px;
	align-items: start;
}

@media (max-width: 860px) {
	.bfp-rv__layout {
		grid-template-columns: 1fr;
	}
}

/* Cards — tight premium */
.bfp-rv__cards {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.bfp-rv__card {
	display: flex;
	gap: 12px;
	background: #fff;
	border: 1px solid #e9e5e2;
	border-radius: 14px;
	padding: 14px 16px;
	box-shadow: 0 4px 12px rgba(23, 19, 15, 0.04);
}

.bfp-rv__avatar {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #ffece4;
	color: #ea580c;
	font-weight: 800;
	font-size: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px #ffd9c9;
}

.bfp-rv__card-main {
	flex: 1 1 auto;
	min-width: 0;
}

.bfp-rv__card-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
}

.bfp-rv__who {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.bfp-rv__name {
	font-size: 14px;
	font-weight: 700;
	color: #17130f;
}

.bfp-rv__verified {
	display: inline-flex;
	align-items: center;
	background: #e8f7ee;
	color: #176b3a;
	border: 1px solid #bfe6cd;
	border-radius: 999px;
	padding: 2px 9px;
	font-size: 10px;
	font-weight: 700;
}

.bfp-rv__stars .star-rating {
	font-size: 13px !important;
	letter-spacing: 1px;
	margin: 0 !important;
	float: none !important;
	display: inline-block !important;
}

/* Gold stars everywhere in the reviews tab */
.bfp-rv__stars .star-rating:before,
.bfp-rv__stars .star-rating span:before,
.bfp-rv__score-stars .star-rating:before,
.bfp-rv__score-stars .star-rating span:before,
.bfp-rv__formcard .star-rating:before,
.bfp-rv__formcard .star-rating span:before {
	color: #ffb600 !important;
}

.bfp-rv__stars .star-rating:before,
.bfp-rv__score-stars .star-rating:before {
	opacity: 0.3 !important;
}

.bfp-rv__text {
	font-size: 13.5px;
	color: #4a4540;
	line-height: 1.55;
	margin: 8px 0 0;
	text-align: left;
}

.bfp-rv__text p {
	margin: 0;
}

.bfp-rv__photos {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	flex-wrap: wrap;
}

.bfp-rv__photos img {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover;
	border-radius: 10px;
	border: 1px solid #e9e5e2;
	display: block;
}

.bfp-rv__date {
	display: block;
	margin-top: 8px;
	font-size: 11px;
	color: #9b9189;
}

.bfp-rv__none {
	margin: 0;
	padding: 18px;
	background: #fff;
	border: 1px dashed #d9cfc2;
	border-radius: 14px;
	color: #9b9189;
	font-size: 13px;
	text-align: center;
}

/* Form card — sticky, premium */
.bfp-rv__formcard {
	position: sticky;
	top: 18px;
	background: linear-gradient(160deg, #ffffff 0%, #fbf8f5 100%);
	border: 1px solid #e9e5e2;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 4px 14px rgba(23, 19, 15, 0.05);
}

@media (max-width: 860px) {
	.bfp-rv__formcard {
		position: static;
	}
}

.bfp-rv__form-title {
	margin: 0 0 12px !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	color: #17130f !important;
}

.bfp-rv__formcard p {
	margin: 0 0 10px !important;
}

.bfp-rv__formcard .comment-notes {
	font-size: 11.5px !important;
	color: #9b9189 !important;
}

.bfp-rv__formcard label {
	font-size: 11px !important;
	font-weight: 800 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.6px !important;
	color: #9b9189 !important;
	margin-bottom: 6px !important;
	display: inline-block !important;
}

.bfp-rv__formcard input[type="text"],
.bfp-rv__formcard input[type="email"],
.bfp-rv__formcard textarea {
	width: 100% !important;
	border: 1.5px solid #d9cfc2 !important;
	border-radius: 10px !important;
	padding: 10px 12px !important;
	background: #fff !important;
	font-size: 13px !important;
	color: #17130f !important;
	margin: 0 0 10px !important;
	box-shadow: none !important;
	outline: none !important;
}

.bfp-rv__formcard input[type="text"]:focus,
.bfp-rv__formcard input[type="email"]:focus,
.bfp-rv__formcard textarea:focus {
	border-color: #ff4b1f !important;
	box-shadow: 0 0 0 3px rgba(255, 75, 31, 0.14) !important;
}

/* Rating picker + coupon pill + submit (wcpr form fields) */
.bfp-rv__formcard .comment-form-rating {
	margin: 0 0 10px !important;
}

.bfp-rv__formcard .comment-form-rating .star-rating {
	font-size: 16px !important;
	width: 6.5em !important;
}

.bfp-rv__formcard .wcpr-form-description {
	display: inline-block !important;
	background: #ffece4 !important;
	color: #c23a12 !important;
	border: 1px solid #ffd9c9 !important;
	border-radius: 999px !important;
	padding: 4px 12px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	margin: 0 0 12px !important;
}

.bfp-rv__formcard .wcpr-comment-form-images .wcpr_image_upload {
	border: 1.5px dashed #d9cfc2 !important;
	border-radius: 10px !important;
	background: #fff !important;
	padding: 14px !important;
}

.bfp-rv__formcard input[type="submit"],
.bfp-rv__formcard button[type="submit"] {
	background: linear-gradient(135deg, #ff4b1f, #ff6a35) !important;
	color: #fff !important;
	border: 0 !important;
	border-radius: 10px !important;
	padding: 12px 24px !important;
	font-size: 13px !important;
	font-weight: 800 !important;
	cursor: pointer !important;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, 0.5) !important;
	transition: background 0.15s ease !important;
	width: 100% !important;
}

.bfp-rv__formcard input[type="submit"]:hover,
.bfp-rv__formcard button[type="submit"]:hover {
	background: #f0400f !important;
	color: #fff !important;
}

/* Rating summary tile: "5.0" far left — stars + count pushed to the FAR RIGHT.
   The block sits inside a flex parent, so it must take the FULL tile width —
   otherwise space-between has nothing to distribute across. */
body.single-product .pbpp-reviews-panel .bfp-reviews-score-block {
	display: grid !important;
	width: 100% !important;
	grid-template-columns: auto auto;
	grid-template-rows: auto auto;
	justify-content: space-between;
	justify-items: end;
	column-gap: 16px;
	row-gap: 3px;
	align-items: center;
}

body.single-product .pbpp-reviews-panel .bfp-reviews-score-block .bfp-reviews-average {
	grid-row: 1 / span 2;
	grid-column: 1;
	font-size: 2.4rem !important;
	line-height: 1 !important;
}

body.single-product .pbpp-reviews-panel .bfp-reviews-score-block .bfp-product-stars {
	grid-column: 2;
	grid-row: 1;
	font-size: 16px !important;
	letter-spacing: 3px !important;
	color: #ffb600 !important;
}

body.single-product .pbpp-reviews-panel .bfp-reviews-score-block .bfp-reviews-count-label {
	grid-column: 2;
	grid-row: 2;
	font-size: 12px !important;
	color: #9b9189 !important;
}

/* Checkout card — 100% product-card design: 20px gap below before the
   Payment options section */
.bfp-edd-card--checkout {
	margin-bottom: 20px !important;
}
