/* ═══════════════════════════════════════════════════════════════
   Babli Fashion Point — My Account (Phase 1: sidebar + content)
   Two-column shell: user card + nav sidebar (left), content card (right).
   Scoped under #main-content so it never touches the header search widget
   (which also carries a bare .woocommerce class).
   ═══════════════════════════════════════════════════════════════ */

/* ---- 1. Hide the theme page banner on account pages ----
   Merto prints a page title + breadcrumb via merto_breadcrumbs_title().
   The sidebar already shows the user, so the banner is redundant.
   Covers /my-account/ and every endpoint (orders, addresses, ...). */
body.woocommerce-account .breadcrumb-title,
body.woocommerce-account .ts-breadcrumbs,
body.woocommerce-account .merto-breadcrumbs,
body.woocommerce-account .page-slider,
body.woocommerce-account .breadcrumb-title-wrapper {
	display: none !important;
}

/* ---- 2. Shell: two columns, full width ---- */
body.woocommerce-account #main-content .woocommerce {
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 20px 0 56px !important;
	box-sizing: border-box !important;
	display: grid !important;
	grid-template-columns: 290px minmax(0, 1fr) !important;
	gap: 26px !important;
	align-items: start !important;
}

/* The account page wrapper also carries side padding; drop it so the shell
   can run edge to edge (the shell owns its own spacing). */

/* ---- 3. Sidebar ---- */
#main-content .bfp-account-nav {
	position: sticky;
	top: 18px;
	margin: 0 !important;
	background: #fff;
	border: 1px solid #ece6e2;
	border-radius: 18px;
	box-shadow: 0 4px 18px rgba(28, 22, 18, .05);
	overflow: hidden;
}

/* User card */
.bfp-account-user {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 18px 16px;
	background: linear-gradient(150deg, #ff5a26 0%, #ff4b1f 55%, #e2340c 100%);
	color: #fff;
}
.bfp-account-user__avatar {
	width: 46px;
	height: 46px;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	background: rgba(255, 255, 255, .2);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 18px;
}
.bfp-account-user__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bfp-account-user__meta { min-width: 0; }
.bfp-account-user__name {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.25;
	color: #fff;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bfp-account-user__email {
	margin: 2px 0 0;
	font-size: 11.5px;
	line-height: 1.3;
	color: rgba(255, 255, 255, .85);
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Mobile toggle */
.bfp-account-nav__toggle {
	display: none;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 13px 16px;
	border: 0;
	background: #fff;
	color: #2b2622;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
}
.bfp-account-nav__toggle svg { transition: transform .25s ease; }
.bfp-account-nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Menu list — no separators, clean rows */
#main-content .bfp-account-nav ul {
	display: block !important;
	flex-wrap: nowrap !important;
	gap: 0 !important;
	margin: 0 !important;
	padding: 8px !important;
	border: 0 !important;
	list-style: none;
}
#main-content .bfp-account-nav ul li {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-bottom: 0 !important;
}
#main-content .bfp-account-nav ul li:before,
#main-content .bfp-account-nav ul li:after { display: none !important; content: none !important; }
#main-content .bfp-account-nav ul li a {
	display: flex !important;
	align-items: center;
	gap: 11px;
	padding: 11px 13px !important;
	border: 0 !important;
	border-bottom: 0 !important;
	border-radius: 11px;
	color: #4a423d !important;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	text-decoration: none !important;
	box-shadow: none;
	transition: background .16s ease, color .16s ease;
}
#main-content .bfp-account-nav ul li a:hover {
	background: #fff4ef;
	color: #e2340c !important;
}
#main-content .bfp-account-nav ul li.is-active a,
#main-content .bfp-account-nav ul li.woocommerce-MyAccount-navigation-link--is-active a {
	background: linear-gradient(135deg, #ff4b1f, #ff6a35);
	color: #fff !important;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, .55);
}
.bfp-account-nav__icon { display: inline-flex; flex: 0 0 auto; width: 18px; height: 18px; opacity: .85; }
.bfp-account-nav__icon svg { width: 18px; height: 18px; display: block; }
#main-content .bfp-account-nav ul li.is-active .bfp-account-nav__icon,
#main-content .bfp-account-nav ul li.woocommerce-MyAccount-navigation-link--is-active .bfp-account-nav__icon { opacity: 1; }

/* Logout row */
#main-content .bfp-account-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout { margin-top: 6px !important; }
#main-content .bfp-account-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout a { color: #b0492e !important; }
#main-content .bfp-account-nav ul li.woocommerce-MyAccount-navigation-link--customer-logout a:hover { background: #fff1ec; }

/* ---- 4. Content card ---- */
#main-content .woocommerce-MyAccount-content {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	background: #fff;
	border: 1px solid #ece6e2;
	border-radius: 18px;
	padding: 26px 20px 30px;
	box-shadow: 0 4px 18px rgba(28, 22, 18, .05);
	overflow-x: auto;
}
#main-content .woocommerce-MyAccount-content > h2:first-child,
#main-content .woocommerce-MyAccount-content > h3:first-child { margin-top: 0 !important; }

/* ---- 5. Tables (premium admin-panel style) ---- */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 16px;
}
#main-content .woocommerce-MyAccount-content table,
#main-content .woocommerce-MyAccount-content .shop_table {
	width: 100% !important;
	max-width: 100% !important;
	min-width: 680px;
	border: 1px solid #ece6e2 !important;
	border-radius: 16px !important;
	border-collapse: separate !important;
	border-spacing: 0 !important;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 6px 22px -12px rgba(28, 22, 18, .12);
}
/* Header row */
#main-content .woocommerce-MyAccount-content table thead th {
	background: #fbf8f6 !important;
	color: #8a807a !important;
	font-size: 10.5px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: .7px;
	text-align: left;
	padding: 15px 18px !important;
	border-bottom: 1px solid #efe9e5 !important;
	white-space: nowrap;
}
/* Body cells */
#main-content .woocommerce-MyAccount-content table td {
	padding: 16px 18px !important;
	font-size: 13.5px;
	color: #3a342f;
	text-align: left;
	vertical-align: middle;
	border-top: 1px solid #f4efec !important;
	border-bottom: 0 !important;
}
#main-content .woocommerce-MyAccount-content table tbody tr:first-child td { border-top: 0 !important; }
#main-content .woocommerce-MyAccount-content table tbody tr { transition: background .14s ease; }
#main-content .woocommerce-MyAccount-content table tbody tr:hover td { background: #fffaf7; }

/* Column emphasis */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a,
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number {
	font-weight: 800;
	color: #17130f;
	text-decoration: none !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number a:hover { color: #e2340c; }
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total { font-weight: 800; color: #17130f; white-space: nowrap; }
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-date { color: #6f6761; white-space: nowrap; }
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions { white-space: nowrap; text-align: right; }

/* Status pills — colour per state */
#main-content .woocommerce-MyAccount-content mark.order-status {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .2px;
	line-height: 1.4;
	background: #f1eee9 !important;
	color: #57504a !important;
}

/* Action buttons */
#main-content .woocommerce-MyAccount-content .woocommerce-button.button,
#main-content .woocommerce-MyAccount-content .woocommerce-Button.button,
#main-content .woocommerce-MyAccount-content .button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	padding: 8px 15px !important;
	border-radius: 9px !important;
	background: linear-gradient(135deg, #ff4b1f, #ff6a35) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	border: 0 !important;
	box-shadow: 0 5px 12px -5px rgba(255, 75, 31, .5);
	white-space: nowrap;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions { white-space: nowrap; }
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button { margin: 2px 2px 2px 0 !important; }
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__wrapper { overflow-x: auto; }

/* ---- 6. Responsive ---- */
@media (max-width: 1200px) {
	body.woocommerce-account #main-content .woocommerce { grid-template-columns: 250px minmax(0, 1fr) !important; gap: 22px !important; }
}
@media (max-width: 900px) {
	body.woocommerce-account #main-content .woocommerce {
		grid-template-columns: 1fr !important;
		gap: 16px !important;
		padding: 16px 0 44px !important;
	}
	#main-content .bfp-account-nav { position: static !important; }
	.bfp-account-nav__toggle { display: flex !important; }
	#main-content .bfp-account-nav ul { display: none !important; border-top: 1px solid #f1ebe7; }
	#main-content .bfp-account-nav ul.bfp-open { display: block !important; }
	#main-content .woocommerce-MyAccount-content { padding: 22px 18px 26px !important; }
}
@media (max-width: 640px) {
body.woocommerce-account #main-content .woocommerce { padding: 14px 0 40px !important; }
	#main-content .woocommerce-MyAccount-content { padding: 18px 14px 22px !important; border-radius: 14px; }
	.bfp-account-user { padding: 15px 15px 14px; }
	.bfp-account-user__avatar { width: 42px; height: 42px; }
	#main-content .woocommerce-MyAccount-content table thead th,
	#main-content .woocommerce-MyAccount-content table td { padding: 10px 12px !important; font-size: 12px; }
	#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__wrapper,
	#main-content .woocommerce-MyAccount-content table { display: block; overflow-x: auto; white-space: nowrap; }
}



/* ═══════════════════════════════════════════════════════════════
   Orders table — admin-panel style
   Columns: Order | Image | Product Details | Date | Status | Total | Actions
   ═══════════════════════════════════════════════════════════════ */

/* Give each column a sensible width so nothing breaks vertically. */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__header-order-number,
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number { width: 92px; white-space: nowrap; }

#main-content .woocommerce-MyAccount-content .bfp-col-image {
	width: 76px;
	text-align: center;
}
#main-content .woocommerce-MyAccount-content .bfp-col-image img {
	width: 55px;
	height: 55px;
	object-fit: cover;
	border-radius: 10px;
	display: inline-block;
	border: 1px solid #f0e9e5;
	background: #faf7f5;
}
#main-content .woocommerce-MyAccount-content .bfp-noimg {
	display: inline-block;
	width: 55px;
	height: 55px;
	border-radius: 10px;
	background: #f4efec;
}

#main-content .woocommerce-MyAccount-content .bfp-col-details { min-width: 240px; }

/* Product details: name (1 line), qty, description (1 line, ellipsis) */
#main-content .woocommerce-MyAccount-content .opp-order-preview {
	display: block !important;
	max-width: none;
}
#main-content .woocommerce-MyAccount-content .opp-order-preview img { display: none !important; }
#main-content .woocommerce-MyAccount-content .opp-order-preview > div { min-width: 0; line-height: 1.4; }
#main-content .woocommerce-MyAccount-content .opp-order-preview strong {
	display: inline;
	font-size: 13.5px;
	font-weight: 700;
	color: #17130f;
}
#main-content .woocommerce-MyAccount-content .opp-order-preview .product-quantity {
	display: inline-block;
	color: #8a807a;
	font-weight: 600;
	font-size: 11.5px;
	margin-left: 5px;
}
#main-content .woocommerce-MyAccount-content .opp-order-preview p {
	margin: 2px 0 0 !important;
	color: #9a938e !important;
	font-size: 11.5px !important;
	line-height: 1.4 !important;
	max-width: 320px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Date column */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-date { white-space: nowrap; color: #6f6761; }
/* Total column */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total { white-space: nowrap; font-weight: 800; color: #17130f; }

/* ── Action buttons: icon-only + tooltip ── */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	flex-wrap: nowrap;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 38px !important;
	padding: 0 !important;
	border-radius: 10px !important;
	font-size: 0 !important;
	line-height: 0 !important;
	margin: 0 !important;
	position: relative;
	overflow: visible !important;
	border: 1px solid transparent !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button svg {
	width: 17px !important;
	height: 17px !important;
	display: block;
	flex: 0 0 auto;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .bfp-btn-label { display: none !important; }
/* View = solid */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.view {
	background: linear-gradient(135deg, #ff4b1f, #ff6a35) !important;
	color: #fff !important;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, .55);
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.view:hover { background: #f0400f !important; }
/* Invoice = outline */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.invoice {
	background: #fff !important;
	color: #c23a12 !important;
	border-color: #ffd9c9 !important;
	box-shadow: none;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.invoice:hover { background: #fff4ef !important; color: #e2340c !important; }

/* Tooltip */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn::after {
	content: attr(data-bfp-tip);
	position: absolute;
	bottom: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	background: #1d1712;
	color: #fff;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
	padding: 6px 9px;
	border-radius: 7px;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease, transform .15s ease;
	z-index: 30;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn::before {
	content: "";
	position: absolute;
	bottom: calc(100% + 3px);
	left: 50%;
	transform: translateX(-50%);
	border: 5px solid transparent;
	border-top-color: #1d1712;
	opacity: 0;
	pointer-events: none;
	transition: opacity .15s ease;
	z-index: 30;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn:hover::after {
	opacity: 1; transform: translateX(-50%) translateY(0);
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn:hover::before { opacity: 1; }

/* Responsive */
@media (max-width: 640px) {
	#main-content .woocommerce-MyAccount-content .bfp-col-details { min-width: 0; }
	#main-content .woocommerce-MyAccount-content .opp-order-preview p { max-width: 100%; }
}

/* ═══════════════════════════════════════════════════════════════
   Orders: horizontal scroll + expand arrow + expand panel
   ═══════════════════════════════════════════════════════════════ */

/* Table can scroll horizontally inside its card instead of being clipped */
#main-content .woocommerce-MyAccount-content { overflow-x: auto !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
	min-width: 820px; /* keep all 7 columns readable; card scrolls on narrow screens */
}

/* Expand arrow button inside the Order cell */
#main-content .woocommerce-MyAccount-content .bfp-exp-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	margin-right: 7px;
	padding: 0;
	border: 1px solid #ece6e2;
	border-radius: 7px;
	background: #fff;
	color: #7a716b;
	cursor: pointer;
	vertical-align: middle;
	transition: background .15s ease, color .15s ease, border-color .15s ease, transform .2s ease;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-arrow svg { display: block; transition: transform .2s ease; }
#main-content .woocommerce-MyAccount-content .bfp-exp-arrow:hover { background: #fff4ef; color: #e2340c; border-color: #ffd9c9; }
#main-content .woocommerce-MyAccount-content tr.is-open .bfp-exp-arrow { background: #ff4b1f; color: #fff; border-color: #ff4b1f; }
#main-content .woocommerce-MyAccount-content tr.is-open .bfp-exp-arrow svg { transform: rotate(90deg); }

/* Expanded details panel */
#main-content .woocommerce-MyAccount-content .bfp-expand-row > td { padding: 0 !important; background: #fffaf7; border-top: 1px solid #f0e9e5 !important; }
#main-content .woocommerce-MyAccount-content .bfp-expand-panel {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 22px;
	padding: 18px 22px 20px;
	align-items: start;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-col h4 {
	margin: 0 0 8px;
	font-size: 11px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .6px;
	color: #8a807a;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-col ul { margin: 0; padding: 0; list-style: none; }
#main-content .woocommerce-MyAccount-content .bfp-exp-col li { font-size: 13px; color: #3a342f; padding: 3px 0; }
#main-content .woocommerce-MyAccount-content .bfp-exp-col p { display: flex; justify-content: space-between; gap: 14px; margin: 0 0 5px; font-size: 12.5px; }
#main-content .woocommerce-MyAccount-content .bfp-exp-col p span { color: #8a807a; }
#main-content .woocommerce-MyAccount-content .bfp-exp-col p strong { color: #17130f; font-weight: 700; }
#main-content .woocommerce-MyAccount-content .bfp-exp-cta { align-self: center; }
#main-content .woocommerce-MyAccount-content .bfp-exp-cta a {
	display: inline-flex; align-items: center;
	padding: 9px 15px; border-radius: 9px;
	background: linear-gradient(135deg, #ff4b1f, #ff6a35);
	color: #fff !important; font-size: 12px; font-weight: 700; text-decoration: none !important;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, .5);
}

/* Desktop: keep 7 columns visible inside the card without forcing scroll */
@media (min-width: 1100px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { min-width: 0; width: 100% !important; }
}

/* Responsive: tighten on tablet, keep scroll */
@media (max-width: 1099px) and (min-width: 641px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { min-width: 760px; }
}

/* ------- Mobile: cards with label : value ------- */
@media (max-width: 640px) {
	#main-content .woocommerce-MyAccount-content { overflow-x: hidden !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
		min-width: 0 !important; width: 100% !important; display: block; border: 0 !important; box-shadow: none !important; background: transparent !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead { display: none; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tr,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td { display: block !important; width: auto !important; min-width: 0 !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr {
		background: #fff; border: 1px solid #ece6e2; border-radius: 14px; margin: 0 0 14px; padding: 6px 0;
		box-shadow: 0 6px 18px -12px rgba(28, 22, 18, .25);
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td {
		border: 0 !important; padding: 9px 16px !important;
		display: flex !important; align-items: center; justify-content: space-between; gap: 14px; text-align: right;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td::before {
		content: attr(data-title);
		font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #9a938e;
		text-align: left; flex: 0 0 auto;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number { justify-content: space-between; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.bfp-col-image { justify-content: space-between; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { justify-content: flex-end; }
	#main-content .woocommerce-MyAccount-content .opp-order-preview p { max-width: 60vw; }
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel { grid-template-columns: 1fr; gap: 14px; }
	#main-content .woocommerce-MyAccount-content .bfp-expand-row { margin: -14px 0 14px; }
	#main-content .woocommerce-MyAccount-content .bfp-expand-row > td { border-radius: 0 0 14px 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   Orders: merged Order/Date meta line + 75px image + real scrolling
   ═══════════════════════════════════════════════════════════════ */

/* Image column: 75×75 */
#main-content .woocommerce-MyAccount-content .bfp-col-image { width: 96px; }
#main-content .woocommerce-MyAccount-content .bfp-col-image img { width: 75px !important; height: 75px !important; }
#main-content .woocommerce-MyAccount-content .bfp-noimg { width: 75px; height: 75px; }

/* The meta line: ORDER #id (left) + DATE (right) inside the details cell */
#main-content .woocommerce-MyAccount-content .bfp-order-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 5px;
	padding-bottom: 5px;
	border-bottom: 1px dashed #f0e9e5;
}
#main-content .woocommerce-MyAccount-content .bfp-meta-num { display: inline-flex; align-items: center; gap: 7px; }
#main-content .woocommerce-MyAccount-content .bfp-order-id {
	font-size: 13px;
	font-weight: 800;
	color: #17130f;
	white-space: nowrap;
}
#main-content .woocommerce-MyAccount-content .bfp-meta-date {
	font-size: 12px;
	font-weight: 600;
	color: #8a807a;
	white-space: nowrap;
}
/* hide the merged standalone cells (belt & braces) */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-number,
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-date { display: none !important; }
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__header-order-number,
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__header-order-date { display: none !important; }

/* Details cell now needs to be the widest column */
#main-content .woocommerce-MyAccount-content .bfp-col-details { min-width: 320px; }
#main-content .woocommerce-MyAccount-content .opp-order-preview p { max-width: 420px; }

/* Real horizontal scrolling: the wrapper scrolls, the card no longer clips. */
#main-content .woocommerce-MyAccount-content { overflow-x: auto !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { min-width: 780px; }

/* ── Collapsible sidebar (desktop) ── */
#main-content .bfp-account-nav { position: relative; }
.bfp-nav-collapse {
	position: absolute;
	top: 14px;
	right: -13px;
	z-index: 5;
	width: 26px; height: 26px;
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid #ece6e2; border-radius: 50%;
	background: #fff; color: #7a716b; cursor: pointer;
	box-shadow: 0 3px 10px -4px rgba(28,22,18,.3);
	transition: color .15s ease, transform .2s ease;
}
.bfp-nav-collapse:hover { color: #e2340c; }
body.bfp-nav-collapsed .bfp-nav-collapse svg { transform: rotate(180deg); }

/* Collapsed: grid narrows to an icon rail */
@media (min-width: 901px) {
	body.bfp-nav-collapsed #main-content .woocommerce { grid-template-columns: 74px minmax(0,1fr) !important; }
	body.bfp-nav-collapsed .bfp-account-user__meta,
	body.bfp-nav-collapsed .bfp-account-nav__label { display: none !important; }
	body.bfp-nav-collapsed .bfp-account-user { justify-content: center; padding: 16px 8px; }
	body.bfp-nav-collapsed #main-content .bfp-account-nav ul li a { justify-content: center; padding: 12px 8px !important; }
	body.bfp-nav-collapsed .bfp-account-nav__icon { width: 20px; height: 20px; }
	body.bfp-nav-collapsed .bfp-account-nav__icon svg { width: 20px; height: 20px; }
	body.bfp-nav-collapsed .bfp-account-nav__toggle { display: none !important; }
	/* tooltip on hover in collapsed state */
	body.bfp-nav-collapsed #main-content .bfp-account-nav ul li a { position: relative; }
	body.bfp-nav-collapsed #main-content .bfp-account-nav ul li a::after {
		content: attr(data-bfp-tip);
		position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%) translateX(-4px);
		background: #1d1712; color: #fff; font-size: 11.5px; font-weight: 600; white-space: nowrap;
		padding: 6px 10px; border-radius: 7px; opacity: 0; pointer-events: none;
		transition: opacity .15s ease, transform .15s ease; z-index: 40;
	}
	body.bfp-nav-collapsed #main-content .bfp-account-nav ul li a:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Hide the collapse control on tablet/phone (sidebar already collapses) */
@media (max-width: 900px) { .bfp-nav-collapse { display: none !important; } }


/* Force Image column size (75x75) with high specificity */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.bfp-col-image img,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table .bfp-col-image img.attachment-woocommerce_thumbnail {
	width: 75px !important;
	height: 75px !important;
	max-width: 75px !important;
	min-width: 75px !important;
	object-fit: cover !important;
	border-radius: 12px !important;
}

/* ═══════════════════════════════════════════════════════════════
   Fixes: meta below, even row hover, tooltip, collapse arrow, scroll,
   mobile order-id/date placement.
   ═══════════════════════════════════════════════════════════════ */

/* 1. Meta (Order # + Date) BELOW the name/description, as a quiet line */
#main-content .woocommerce-MyAccount-content .bfp-order-meta {
	display: flex; align-items: center; gap: 8px;
	margin: 6px 0 0 !important;
	padding: 0 !important;
	border: 0 !important;
}
#main-content .woocommerce-MyAccount-content .bfp-meta-num { display: inline-flex; align-items: center; gap: 6px; }
#main-content .woocommerce-MyAccount-content .bfp-order-id { font-size: 12px; font-weight: 700; color: #6f6761; white-space: nowrap; }
#main-content .woocommerce-MyAccount-content .bfp-meta-sep { color: #c9c0ba; font-size: 11px; }
#main-content .woocommerce-MyAccount-content .bfp-meta-date { font-size: 12px; font-weight: 600; color: #8a807a; white-space: nowrap; }

/* 2. Uniform row hover across the WHOLE row (all cells together) */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { border-collapse: collapse !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row:hover > td { background: #fff7f3 !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row.is-open > td { background: #fff7f3 !important; }
/* keep the expand panel tinted to match its parent row */
#main-content .woocommerce-MyAccount-content .bfp-expand-row > td { background: #fffaf7 !important; }

/* 3. Tooltip must not be clipped: give wrappers visible overflow where needed */
#main-content .woocommerce-MyAccount-content { overflow-x: auto !important; overflow-y: visible !important; }
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions { position: relative; }

/* 4. Sidebar collapse arrow: keep it visible above the card, clickable */
.bfp-nav-collapse {
	top: 15px !important;
	right: -14px !important;
	width: 28px !important;
	height: 28px !important;
	border: 1.5px solid #ffd9c9 !important;
	background: #fff !important;
	color: #e2340c !important;
	box-shadow: 0 4px 12px -4px rgba(226, 52, 12, .45) !important;
	z-index: 60 !important;
}
.bfp-nav-collapse:hover { background: #ff4b1f !important; color: #fff !important; border-color: #ff4b1f !important; }

/* 5. Sidebar tooltips in collapsed mode — show to the RIGHT, above everything */
@media (min-width: 901px) {
	body.bfp-nav-collapsed #main-content .bfp-account-nav { overflow: visible !important; }
	body.bfp-nav-collapsed #main-content .bfp-account-nav ul li a::after {
		left: calc(100% + 14px) !important;
		z-index: 999 !important;
		box-shadow: 0 8px 20px -8px rgba(0,0,0,.45);
	}
}

/* 6. Real scrolling for the table on narrow screens */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { min-width: 720px; }
@media (min-width: 1001px) { #main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { min-width: 0; } }

/* 7. Mobile: put Order #/Date next to the image; hide the "IMAGE" text label */
@media (max-width: 640px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.bfp-col-image::before { content: none !important; }
	/* stack image + identity block in the image cell */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.bfp-col-image {
		display: flex !important; align-items: center; gap: 14px; justify-content: flex-start !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.bfp-col-image .bfp-img-identity {
		display: flex; flex-direction: column; gap: 3px; min-width: 0;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.bfp-col-image .bfp-id-order {
		font-size: 14px; font-weight: 800; color: #17130f; white-space: nowrap;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.bfp-col-image .bfp-id-date {
		font-size: 12px; font-weight: 600; color: #8a807a; white-space: nowrap;
	}
	/* Product details heading column shows name + description only */
	#main-content .woocommerce-MyAccount-content .bfp-order-meta { margin-top: 4px !important; }
}

/* Hidden merged cells must not break the uniform row hover tint. */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row:hover > td,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row.is-open > td { background: #fff7f3 !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row { cursor: pointer; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row td.woocommerce-orders-table__cell-order-actions { cursor: default; }

/* Total: show only the price (the "for N items" moved into the expand panel) */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-total { font-weight: 800; color: #17130f; white-space: nowrap; }

/* Desktop/tablet: the mobile identity block should NOT show (Order#/Date live
   in the Product Details cell there). Only show it in the mobile card layout. */
#main-content .woocommerce-MyAccount-content .bfp-img-identity { display: none !important; }
@media (max-width: 640px) {
	#main-content .woocommerce-MyAccount-content .bfp-img-identity { display: flex !important; }
	/* On mobile, the meta line inside details would duplicate the identity block */
	#main-content .woocommerce-MyAccount-content .bfp-col-details .bfp-order-meta { display: none !important; }
}

/* Meta line: keep Order# • Date grouped together on the left (not pushed apart). */
#main-content .woocommerce-MyAccount-content .bfp-order-meta { justify-content: flex-start !important; gap: 9px !important; }
#main-content .woocommerce-MyAccount-content .bfp-meta-date { color: #8a807a !important; }

/* Mobile: the DATE row duplicates the identity block — hide it (date is shown
   next to Order ID in the image cell). */
@media (max-width: 640px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-date { display: none !important; }
	/* Product Details: name + description only (no meta line on mobile) */
	#main-content .woocommerce-MyAccount-content .bfp-col-details .bfp-order-meta { display: none !important; }
}

/* ═══ FIX: collapse button (was stretching to 62px and being clipped) ═══ */
#main-content .bfp-account-nav { overflow: visible !important; }
/* Clip only the menu list, not the whole nav, so the button stays round */
#main-content .bfp-account-nav ul { border-radius: 0 0 18px 18px; }
.bfp-nav-collapse {
	position: absolute !important;
	top: 18px !important;
	right: -13px !important;
	left: auto !important;
	width: 26px !important; height: 26px !important;
	min-width: 26px !important; max-width: 26px !important;
	min-height: 26px !important; max-height: 26px !important;
	padding: 0 !important;
	flex: none !important;
	display: inline-flex !important; align-items: center !important; justify-content: center !important;
	border: 1.5px solid #ffd9c9 !important;
	border-radius: 50% !important;
	background: #fff !important;
	color: #e2340c !important;
	box-shadow: 0 4px 12px -4px rgba(226, 52, 12, .45) !important;
	z-index: 60 !important;
}
.bfp-nav-collapse svg { width: 15px !important; height: 15px !important; }

/* ═══ FIX: stray white block under the last row (table used to leave a gap) ═══ */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr > td { background: #fff; }
/* Ensure the table's own background stays white and the row tint only paints real rows */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { background: #fff !important; }
/* Remove any empty filler row WooCommerce may render */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr:empty { display: none !important; }

/* ═══ Reduce the empty white gap under the table & keep tint inside rows ═══ */
#main-content .woocommerce-MyAccount-content { padding-bottom: 18px !important; }
/* Row tint must not bleed to the card background */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { box-shadow: none !important; }
/* Solid border around the table so the inner white reads as the table, not a floating card */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
	border: 1px solid #ece6e2 !important;
	border-radius: 14px !important;
	overflow: hidden !important;
}

/* ═══ FIX: user card top corners must follow the sidebar's rounded radius ═══ */
#main-content .bfp-account-nav { overflow: hidden; }
#main-content .bfp-account-nav .bfp-account-user {
	border-radius: 17px 17px 0 0; /* match nav radius (18px) minus 1px border */
}
/* When collapsed and the user meta is gone, the card still needs round tops. */
body.bfp-nav-collapsed #main-content .bfp-account-nav .bfp-account-user { border-radius: 17px 17px 0 0; }

/* ═══ FIX: horizontal scrollbar belongs to the TABLE, not the content card ═══ */
/* The content card itself never scrolls sideways. */
#main-content .woocommerce-MyAccount-content { overflow-x: hidden !important; }
/* Wrap the table in its own scroll container on narrow screens. */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	width: 100%;
}
/* Keep the inner markup laying out as a table inside the scroll box. */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody { display: table; width: 100%; min-width: 720px; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead tr,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr { display: table-row; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table th,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td { display: table-cell; }
/* On wide screens there is nothing to scroll — revert to a normal table. */
@media (min-width: 1001px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { display: table; overflow: visible; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody { min-width: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   Expand panel: Items + button (left) | Summary label:value (right)
   10px button gap · AWB copy button · Payment row
   ═══════════════════════════════════════════════════════════════ */
#main-content .woocommerce-MyAccount-content .bfp-expand-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
	gap: 26px;
	padding: 18px 22px 20px;
	align-items: start;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-items h4,
#main-content .woocommerce-MyAccount-content .bfp-exp-summary h4 {
	margin: 0 0 10px;
	font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #8a807a;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-items ul { margin: 0 0 12px; padding: 0; list-style: none; }
#main-content .woocommerce-MyAccount-content .bfp-exp-items li {
	position: relative; padding: 5px 0 5px 16px; font-size: 13.5px; color: #2b2622;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-items li::before {
	content: ""; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: #ff4b1f;
}
/* The "View full order details" button sits under the items (a real link). */
#main-content .woocommerce-MyAccount-content .bfp-exp-cta-link {
	display: inline-flex; align-items: center; gap: 7px;
	margin-top: 2px; padding: 9px 16px; border-radius: 10px;
	background: linear-gradient(135deg, #ff4b1f, #ff6a35); color: #fff !important;
	font-size: 12.5px; font-weight: 700; text-decoration: none !important;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, .5);
}
#main-content .woocommerce-MyAccount-content .bfp-exp-cta-link:hover { background: #f0400f; }

/* Summary rows: label left, value right */
#main-content .woocommerce-MyAccount-content .bfp-sum-row {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 0 0 8px !important; padding: 0 0 8px; border-bottom: 1px dashed #f0e9e5;
	font-size: 12.5px;
}
#main-content .woocommerce-MyAccount-content .bfp-sum-row:last-child { border-bottom: 0; margin-bottom: 0 !important; }
#main-content .woocommerce-MyAccount-content .bfp-sum-row > span { color: #8a807a; flex: 0 0 auto; }
#main-content .woocommerce-MyAccount-content .bfp-sum-row > strong { color: #17130f; font-weight: 700; text-align: right; }

/* AWB row: tracking link + copy button */
#main-content .woocommerce-MyAccount-content .bfp-awb-link {
	color: #1565c0 !important; font-weight: 700; text-decoration: none !important;
}
#main-content .woocommerce-MyAccount-content .bfp-awb-link:hover { text-decoration: underline !important; }
#main-content .woocommerce-MyAccount-content .bfp-copy {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; margin-left: 7px; padding: 0;
	border: 1px solid #ffd9c9; border-radius: 8px; background: #fff; color: #c23a12;
	cursor: pointer; vertical-align: middle; transition: background .15s, color .15s, border-color .15s;
}
#main-content .woocommerce-MyAccount-content .bfp-copy svg { display: block; }
#main-content .woocommerce-MyAccount-content .bfp-copy:hover { background: #fff4ef; }
#main-content .woocommerce-MyAccount-content .bfp-copy.is-copied { background: #e8f7ee; color: #176b3a; border-color: #bfe6cd; }

/* ── Action buttons: 10px gap, tooltip never clipped ── */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions { gap: 10px !important; }
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn::after {
	/* keep the tooltip inside the card: nudge it left from the right edge */
	left: auto !important; right: 0 !important; transform: translateY(4px) !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn:hover::after {
	transform: translateY(0) !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn::before { left: auto !important; right: 13px !important; }

/* ── Scrollbar on the table wrapper (not the whole card) ── */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
	display: block; overflow-x: auto; width: 100%;
}
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody { display: table; width: 100%; min-width: 760px; }

@media (min-width: 1001px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { display: table; overflow: visible; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody { min-width: 0; }
}
@media (max-width: 640px) {
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel { grid-template-columns: 1fr; gap: 16px; }
}

/* ═══ FIX: Invoice tooltip right se cut ho raha tha ═══
   Right-most buttons must show their tooltip anchored to the RIGHT edge of the
   button but pulled left so it never leaves the card. The View button (not last)
   keeps a centred tooltip. */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn::after {
	left: 50% !important; right: auto !important;
	transform: translateX(-50%) translateY(4px) !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn:hover::after {
	transform: translateX(-50%) translateY(0) !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-icon-btn::before {
	left: 50% !important; right: auto !important; transform: translateX(-50%) !important;
}
/* The invoice button is the last one in the cell — nudge its tooltip left so it
   stays inside the card instead of overflowing the right edge. */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.invoice.bfp-icon-btn::after {
	right: 0 !important; left: auto !important; transform: translateY(4px) !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.invoice.bfp-icon-btn:hover::after {
	transform: translateY(0) !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.invoice.bfp-icon-btn::before {
	right: 13px !important; left: auto !important; transform: none !important;
}

/* Keep a touch more room at the right of the actions cell so the tooltip breathes */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions { padding-right: 14px !important; }

/* ═══ FIX: scrollbar must be visible on the table when it overflows ═══ */
/* Force the table to be a scroll container with a styled, always-visible bar. */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
	display: block !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	width: 100% !important;
	-webkit-overflow-scrolling: touch;
}
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody {
	display: table !important;
	width: 100% !important;
	min-width: 820px !important; /* force overflow so the scrollbar appears on narrow screens */
}
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table::-webkit-scrollbar { height: 9px; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table::-webkit-scrollbar-track { background: #f4efec; border-radius: 999px; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table::-webkit-scrollbar-thumb { background: #d9cfc8; border-radius: 999px; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table::-webkit-scrollbar-thumb:hover { background: #c3b6ad; }

/* Wide desktop: everything fits → no forced scroll, back to a normal table. */
@media (min-width: 1201px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { display: table !important; overflow: visible !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody { min-width: 0 !important; }
}

/* ═══════════════════════════════════════════════════════════════
   FIX: header/cell alignment + table layout + meta separator
   ═══════════════════════════════════════════════════════════════ */

/* Use table-layout:fixed so <thead> and <tbody> columns share equal widths.
   (display:block on the <table> turned head/body into independent tables, which
   is why the header labels no longer lined up with the cells.) */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
	display: table !important;
	table-layout: fixed !important;
	width: 100% !important;
	border-collapse: collapse !important;
}
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody {
	display: table-header-group !important;
}
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody { display: table-row-group !important; }

/* Fixed column widths (header + cell share these). */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table .bfp-col-image { width: 110px !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table .bfp-col-details { width: auto !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table th.woocommerce-orders-table__header-order-status,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-status { width: 130px !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table th.woocommerce-orders-table__header-order-total,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-total { width: 128px !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table th.woocommerce-orders-table__header-order-actions,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-actions { width: 132px !important; }

/* Wrapper carries the horizontal scrollbar; the table itself stays a real table. */
#main-content .woocommerce-MyAccount-content { overflow-x: hidden !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { min-width: 720px !important; }
/* Give the content card a scroll container via the theme-safe wrapper rule. */
#main-content .woocommerce-MyAccount-content > form,
#main-content .woocommerce-MyAccount-content > .woocommerce-orders-table__wrapper { overflow-x: auto; }

/* Description: cap at ~44 characters on one line, then "…" */
#main-content .woocommerce-MyAccount-content .opp-order-preview p {
	max-width: 44ch !important;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Meta separator must be a bullet, not an asterisk (the JS fallback used '*'). */
#main-content .woocommerce-MyAccount-content .bfp-meta-sep { font-size: 0 !important; }
#main-content .woocommerce-MyAccount-content .bfp-meta-sep::before {
	content: "\2022"; font-size: 13px; color: #c9c0ba; line-height: 1;
}

/* Buttons: ensure a real 10px gap even if a theme rule overrides gap. */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button + .button { margin-left: 10px !important; }

/* ===============================================================
   STEP B (2026-11-20) — Horizontal scroll ON THE TABLE (not the card)
   Appended last; uses !important and very specific selectors so any
   earlier rule loses. Columns are NOT touched (no width / display changes).
   =============================================================== */

/* 1. CARD must NOT scroll — it clips nothing, just stays put. */
#main-content .woocommerce-MyAccount-content {
	overflow-x: clip !important;   /* clip keeps sticky/tooltips working, no scrollbar here */
	overflow-y: visible !important;
}

/* 2. TABLE is the scroll container: it overflows its own box. */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
	display: block !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	width: 100% !important;
	max-width: 100% !important;
	-webkit-overflow-scrolling: touch;
}
/* Keep the real table layout INSIDE the scroll box (head+body share columns). */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > thead,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > tbody {
	display: table !important;
	width: 100% !important;
	table-layout: auto !important;
	min-width: 900px !important;   /* forces overflow on narrow screens */
}
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > thead > tr,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > tbody > tr { display: table-row !important; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > thead > tr > th,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > tbody > tr > td { display: table-cell !important; }

/* 3. Table's own scrollbar skin (WebKit + Firefox). */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table::-webkit-scrollbar { height: 10px; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table::-webkit-scrollbar-track { background: #f4efec; border-radius: 999px; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table::-webkit-scrollbar-thumb { background: #d5cac2; border-radius: 999px; border: 2px solid #f4efec; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table::-webkit-scrollbar-thumb:hover { background: #bfb1a7; }
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { scrollbar-width: thin; scrollbar-color: #d5cac2 #f4efec; }

/* 4. Desktop-wide: no scroll needed — revert to a plain table. */
@media (min-width: 1180px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { display: table !important; overflow: visible !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > thead,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > tbody { min-width: 0 !important; }
}

/* 5. Mobile card mode: never a wide table. */
@media (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { display: block !important; overflow-x: visible !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > thead { display: none !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > tbody { display: block !important; min-width: 0 !important; }
}

/* STEP B FIX — the merger hides the Order/Date columns by setting display:none.
   A blanket "td { display: table-cell }" re-showed them. Re-hide explicitly,
   and keep the table a single table (head+body together). */
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table th.woocommerce-orders-table__header-order-number,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-number,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table th.woocommerce-orders-table__header-order-date,
#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.woocommerce-orders-table__cell-order-date {
	display: none !important;
}

/* Desktop-wide: table fits → no inner scroll, and it must remain ONE table. */
@media (min-width: 1180px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table { display: table !important; overflow: visible !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > thead { display: table-header-group !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > tbody { display: table-row-group !important; }
}

/* ===============================================================
   Expand panel — Row1 title+button | Row2 description | Row3 summary
   Only touches .bfp-exp-* classes. Table/columns are NOT affected.
   =============================================================== */
#main-content .woocommerce-MyAccount-content .bfp-expand-panel {
	display: block !important;
	padding: 16px 20px 18px !important;
	text-align: left !important;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-head {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 16px !important;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-title {
	margin: 0 !important;
	font-size: 14px !important;
	font-weight: 800 !important;
	color: #17130f !important;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-cta-link {
	flex: 0 0 auto !important;
	display: inline-flex !important; align-items: center; justify-content: center;
	padding: 9px 16px !important; border-radius: 10px !important;
	background: linear-gradient(135deg, #ff4b1f, #ff6a35) !important;
	color: #fff !important; font-size: 12.5px !important; font-weight: 700 !important;
	text-decoration: none !important; white-space: nowrap;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, .5);
}
#main-content .woocommerce-MyAccount-content .bfp-exp-cta-link:hover { background: #f0400f !important; }
#main-content .woocommerce-MyAccount-content .bfp-exp-desc {
	margin: 8px 0 12px !important;
	font-size: 13px !important;
	color: #8a807a !important;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#main-content .woocommerce-MyAccount-content .bfp-exp-summary {
	border-top: 1px solid #f0e9e5 !important;
	padding-top: 12px !important;
}

/* AWB row: copy button now comes BEFORE the tracking number. */
#main-content .woocommerce-MyAccount-content .bfp-sum-awb strong { display: inline-flex; align-items: center; gap: 8px; }
#main-content .woocommerce-MyAccount-content .bfp-copy { margin-left: 0 !important; margin-right: 0 !important; }
/* ===============================================================
   MOBILE / TABLET (<=900px) — FINAL card layout (v3, 2026-11-20)
   Layout per client:
     [img]  ORDER ID       #13161 [arrow]
            ORDER DATE     19/11/2026
            ORDER STATUS   [Processing badge]
            ------------------------------
            Product title  (NO "x N")
            description (1 line, ...)
            ------------------------------
            TOTAL                         (label)
            Rs.899.00          [eye][invoice]
   Appended last; laptop/desktop untouched.
   =============================================================== */

/* Mobile-only identity cell is hidden on laptop/desktop. */
#main-content .woocommerce-MyAccount-content td.bfp-mobile-id { display: none !important; }

@media (max-width: 900px) {

	/* --- Card container --- */
	#main-content .woocommerce-MyAccount-content { overflow-x: hidden !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
		display: block !important;
		min-width: 0 !important; width: 100% !important;
		border: 0 !important; background: transparent !important; box-shadow: none !important;
		overflow: visible !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table thead { display: none !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody { display: block !important; min-width: 0 !important; }

	/* Card = 2 columns: image | everything-else. */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row {
		display: grid !important;
		grid-template-columns: 88px minmax(0, 1fr) !important;
		grid-template-areas:
			"img  id"
			"img  status"
			"ttl  ttl"
			"amt  amt"
			"act  act" !important;
		gap: 6px 14px !important;
		align-items: start !important;
		background: #fff !important;
		border: 1px solid #ece6e2 !important;
		border-radius: 16px !important;
		margin: 0 0 14px !important;
		padding: 14px !important;
		box-shadow: 0 8px 22px -16px rgba(28, 22, 18, .3);
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td {
		display: block !important; width: auto !important; min-width: 0 !important;
		text-align: left !important; border: 0 !important; padding: 0 !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td::before { content: none !important; }

	/* Image (spans the two text rows on the left) */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image { grid-area: img !important; width: 88px !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image img,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image .bfp-noimg { width: 76px !important; height: 76px !important; border-radius: 12px !important; }
	#main-content .woocommerce-MyAccount-content .bfp-img-identity { display: none !important; }

	/* Identity cell: Order ID / Date — label left, value right (full width) */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-mobile-id {
		grid-area: id !important;
		display: flex !important; flex-direction: column !important; gap: 6px !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-mid-row {
		display: flex !important; align-items: center !important; justify-content: space-between !important;
		gap: 12px !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-mid-label {
		font-size: 10.5px !important; font-weight: 800 !important; letter-spacing: .5px;
		text-transform: uppercase; color: #9a938e !important; white-space: nowrap;
	}
	#main-content .woocommerce-MyAccount-content .bfp-mid-value {
		font-size: 14px !important; font-weight: 700 !important; color: #17130f !important;
		display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
	}

	/* Status row: label left, badge right (own row under the identity block) */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-status {
		grid-area: status !important;
		display: flex !important; align-items: center !important; justify-content: space-between !important;
		gap: 12px !important;
	}
	#main-content .woocommerce-MyAccount-content tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-status::before {
		content: "Order Status" !important; font-size: 10.5px !important; font-weight: 800 !important;
		letter-spacing: .5px; text-transform: uppercase; color: #9a938e !important;
	}
	#main-content .woocommerce-MyAccount-content tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-status mark.order-status {
		background: #e7f1fd !important; color: #1565c0 !important; font-weight: 800 !important;
		padding: 3px 10px !important; border-radius: 999px !important; font-size: 10px !important;
	}

	/* Product title + description (full width) — hide the "x N" quantity */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-opp-products {
		grid-area: ttl !important; padding-top: 6px !important; border-top: 1px solid #f2ece8 !important; margin-top: 2px;
	}
	#main-content .woocommerce-MyAccount-content .opp-order-preview { display: block !important; }
	#main-content .woocommerce-MyAccount-content .opp-order-preview img { display: none !important; }
	#main-content .woocommerce-MyAccount-content .opp-order-preview strong { font-size: 15px; }
	#main-content .woocommerce-MyAccount-content .opp-order-preview .product-quantity,
	#main-content .woocommerce-MyAccount-content .opp-order-preview strong + span { display: none !important; }
	#main-content .woocommerce-MyAccount-content .opp-order-preview p { max-width: 100% !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

	/* Total: label on its own line, amount below */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-total {
		grid-area: amt !important;
		display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important;
		padding-top: 10px !important; border-top: 1px solid #f2ece8 !important; margin-top: 2px;
	}
	#main-content .woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-total::before {
		content: "Total" !important; font-size: 10.5px !important; font-weight: 800 !important;
		letter-spacing: .5px; text-transform: uppercase; color: #9a938e !important;
	}
	#main-content .woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-total .woocommerce-Price-amount { font-size: 18px; font-weight: 800; }

	/* Actions: right aligned under the amount */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-actions {
		grid-area: act !important; display: flex !important; justify-content: flex-end !important; gap: 10px !important;
		padding-top: 4px !important;
	}

	/* Hide dead cells + desktop meta line */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-number,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-date { display: none !important; }
	#main-content .woocommerce-MyAccount-content .bfp-col-details .bfp-order-meta { display: none !important; }

	/* No pink hover tint in card mode */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row:hover,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row.is-open { background: #fff !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row:hover > td,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row.is-open > td { background: transparent !important; }

	/* Expanded panel: Title -> description -> Summary -> full-width button (mobile) */
	#main-content .woocommerce-MyAccount-content tr.bfp-expand-row > td { display: block !important; padding: 0 !important; border: 0 !important; }
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel {
		background: #fff; border: 1px solid #ece6e2; border-radius: 16px; margin: 0 0 16px; padding: 16px;
	}
	#main-content .woocommerce-MyAccount-content .bfp-exp-head { display: block !important; }
	#main-content .woocommerce-MyAccount-content .bfp-exp-title { white-space: normal; }
	#main-content .woocommerce-MyAccount-content .bfp-exp-cta-link {
		display: flex !important; width: 100% !important; justify-content: center; margin-top: 14px;
	}
	#main-content .woocommerce-MyAccount-content .bfp-exp-desc { white-space: normal; }
}

/* Tablet (641-900px): the CTA sits beside the title (not full width). */
@media (min-width: 641px) and (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content .bfp-exp-head { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; }
	#main-content .woocommerce-MyAccount-content .bfp-exp-cta-link { width: auto !important; margin-top: 0; }
}
/* ===============================================================
   Beat WooCommerce smallscreen.css which forces td::before { content: none }
   Re-assert the mobile field labels with maximum specificity.
   =============================================================== */
@media (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table.shop_table_responsive tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-total::before,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-total::before {
		content: "Total" !important;
		display: block !important;
		font-size: 10.5px !important;
		font-weight: 800 !important;
		letter-spacing: .5px !important;
		text-transform: uppercase !important;
		color: #9a938e !important;
		margin: 0 0 2px !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table.shop_table_responsive tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-status::before,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-status::before {
		content: "Order Status" !important;
		display: inline-block !important;
		font-size: 10.5px !important;
		font-weight: 800 !important;
		letter-spacing: .5px !important;
		text-transform: uppercase !important;
		color: #9a938e !important;
	}
}

/* ===============================================================
   MOBILE tweaks (v4):
   - Label "Total" -> "Total Amount"
   - TOTAL (left) and the two action buttons (right) on ONE row
   - Identity rows: value pinned fully to the right
   =============================================================== */
@media (max-width: 900px) {

	/* 1. Rename the label */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table.shop_table_responsive tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-total::before,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-total::before {
		content: "Total Amount" !important;
	}

	/* 2. Amount + buttons share one row: amount left, actions right.
	     The actions cell is moved up beside the total cell. */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row {
		grid-template-areas:
			"img  id"
			"img  status"
			"ttl  ttl"
			"amt  act" !important;
		grid-template-columns: 88px minmax(0, 1fr) !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-total {
		grid-area: amt !important;
		align-self: end !important;
		border-top: 1px solid #f2ece8 !important;
		margin-top: 6px !important; padding-top: 10px !important;
		display: flex !important; flex-direction: column !important; align-items: flex-start !important; gap: 2px !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-actions {
		grid-area: act !important;
		align-self: end !important;
		border-top: 1px solid #f2ece8 !important;
		margin-top: 6px !important; padding-top: 10px !important;
		display: flex !important; align-items: flex-end !important; justify-content: flex-end !important; gap: 10px !important;
	}

	/* 3. Identity rows: value fully right (label left) */
	#main-content .woocommerce-MyAccount-content .bfp-mid-row { justify-content: space-between !important; }
	#main-content .woocommerce-MyAccount-content .bfp-mid-value { margin-left: auto !important; }
}

/* ===============================================================
   Mobile identity rows: labels flush LEFT, values flush RIGHT
   (the cell had inherited padding, so both sides were inset ~30px)
   =============================================================== */
@media (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-mobile-id {
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-mid-row {
		display: flex !important;
		align-items: baseline !important;
		justify-content: space-between !important;
		gap: 16px !important;
		width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-mid-label {
		flex: 0 0 auto !important;
		margin: 0 !important;
		text-align: left !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-mid-value {
		flex: 0 0 auto !important;
		margin-left: auto !important;   /* push the value to the right edge */
		text-align: right !important;
	}

	/* Same for the status row (label left, badge right) */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-status {
		padding-left: 0 !important;
		padding-right: 0 !important;
		width: 100% !important;
		justify-content: space-between !important;
	}
	#main-content .woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-status mark.order-status { margin-left: auto !important; }
}

/* ===============================================================
   MOBILE (v5):
   - Order Status value shows as a BADGE
   - Only 10px gap between the image and the labels (no extra padding)
   - Arrow sits BEFORE the Order ID value
   =============================================================== */
@media (max-width: 900px) {

	/* 1. Tight gap between image column and text column (10px, nothing else). */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row {
		column-gap: 10px !important;
		grid-template-columns: 76px minmax(0, 1fr) !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image {
		width: 76px !important;
		padding: 0 !important; margin: 0 !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-mobile-id {
		padding: 0 !important; margin: 0 !important;
	}

	/* 2. Arrow before the Order ID value. */
	#main-content .woocommerce-MyAccount-content .bfp-mid-value .bfp-exp-arrow {
		width: 20px !important; height: 20px !important; min-width: 20px !important;
		margin: 0 6px 0 0 !important; padding: 0 !important;
		border: 1px solid #ece6e2 !important; border-radius: 50% !important;
		background: #fff !important; color: #7a716b !important;
		display: inline-flex !important; align-items: center !important; justify-content: center !important;
		vertical-align: middle !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-mid-value .bfp-exp-arrow svg { width: 12px !important; height: 12px !important; display: block; }
	#main-content .woocommerce-MyAccount-content tr.is-open .bfp-mid-value .bfp-exp-arrow { background: #ff4b1f !important; color: #fff !important; border-color: #ff4b1f !important; }

	/* 3. Order Status value as a badge (blue pill), label left. */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-status {
		padding: 0 !important;
		display: flex !important; align-items: center !important; justify-content: space-between !important;
	}
	#main-content .woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-status .order-status,
	#main-content .woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-status mark {
		display: inline-block !important;
		background: #e7f1fd !important; color: #1565c0 !important;
		font-weight: 800 !important; font-size: 10.5px !important;
		padding: 3px 11px !important; border-radius: 999px !important;
		white-space: nowrap !important;
	}
}

/* ===============================================================
   Expanded panel ordering + attach-to-card (mobile/tablet)
   Mobile:  Title -> Description -> Summary -> FULL-WIDTH button
   Tablet:  Title + button (same line) -> Description -> Summary
   The panel visually attaches to the card above it (no gap/overlap).
   =============================================================== */
@media (max-width: 900px) {

	/* Panel sits flush under its card: no top gap, matched corners. */
	#main-content .woocommerce-MyAccount-content tr.bfp-expand-row { display: block !important; }
	#main-content .woocommerce-MyAccount-content tr.bfp-expand-row > td {
		display: block !important;
		padding: 0 !important; border: 0 !important;
		background: #fff !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel {
		display: flex !important;
		flex-direction: column !important;
		gap: 10px !important;
		background: #fff !important;
		border: 1px solid #ece6e2 !important;
		border-top: 0 !important;                 /* attach to the card above */
		border-radius: 0 0 16px 16px !important;  /* round only the bottom */
		margin: -14px 0 14px !important;          /* pull up under the card */
		padding: 16px !important;
		box-shadow: 0 8px 22px -16px rgba(28, 22, 18, .3);
	}
	/* Keep the open card's bottom corners square so they meet the panel. */
	#main-content .woocommerce-MyAccount-content tr.woocommerce-orders-table__row.is-open {
		border-bottom-left-radius: 0 !important;
		border-bottom-right-radius: 0 !important;
		margin-bottom: 0 !important;
		border-bottom-color: #ece6e2 !important;
	}

	/* Order: title, description, summary, then the button last (full width). */
	#main-content .woocommerce-MyAccount-content .bfp-exp-head { display: contents !important; }
	#main-content .woocommerce-MyAccount-content .bfp-exp-title { order: 1 !important; margin: 0 !important; white-space: normal !important; }
	#main-content .woocommerce-MyAccount-content .bfp-exp-desc { order: 2 !important; margin: 0 !important; white-space: normal !important; }
	#main-content .woocommerce-MyAccount-content .bfp-exp-summary { order: 3 !important; border-top: 1px solid #f0e9e5 !important; padding-top: 12px !important; }
	#main-content .woocommerce-MyAccount-content .bfp-exp-cta-link {
		order: 4 !important;
		display: flex !important; width: 100% !important; justify-content: center !important;
		margin: 4px 0 0 !important;
	}
}

/* Tablet: title + button on one line, then description, then summary. */
@media (min-width: 641px) and (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel { display: block !important; }
	#main-content .woocommerce-MyAccount-content .bfp-exp-head {
		display: flex !important; align-items: center !important; justify-content: space-between !important;
		gap: 16px !important; margin-bottom: 10px !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-exp-cta-link { width: auto !important; margin: 0 !important; }
	#main-content .woocommerce-MyAccount-content .bfp-exp-desc { margin: 0 0 12px !important; }
}

/* ===============================================================
   (v6)
   1. Summary rows: label flush LEFT, value flush RIGHT.
   2. Mobile/tablet: the underlying <table> must NOT show behind the cards
      (so each card's width reads correctly).
   =============================================================== */
@media (max-width: 900px) {

	/* 1. Summary label left, value right (full width). */
	#main-content .woocommerce-MyAccount-content .bfp-exp-summary { width: 100% !important; }
	#main-content .woocommerce-MyAccount-content .bfp-sum-row {
		display: flex !important;
		align-items: baseline !important;
		justify-content: space-between !important;
		gap: 16px !important;
		width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-sum-row > span {
		flex: 0 0 auto !important; margin: 0 !important; text-align: left !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-sum-row > strong {
		flex: 0 0 auto !important; margin-left: auto !important; text-align: right !important;
	}

	/* 2. Kill every trace of the underlying table background/borders so the
	      cards look like standalone cards (no table showing behind them). */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > thead,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table > tbody > tr {
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table {
		border-collapse: separate !important;
	}
	/* Cards keep their own white background + border + radius. */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row {
		width: 100% !important;
	}
}

/* ===============================================================
   MOBILE / TABLET (v7)
   - Hide the outer content CARD (the white box around everything);
     only the order CARDS should show, so they can be full width.
   - With the outer card gone, order cards + dropdown cards use the full
     available width (edge to edge inside the grid column).
   =============================================================== */
@media (max-width: 900px) {

	/* 1. The outer content box disappears (no white card, border, shadow). */
	#main-content .woocommerce-MyAccount-content {
		background: transparent !important;
		border: 0 !important;
		box-shadow: none !important;
		border-radius: 0 !important;
		padding: 8px 0 24px !important;
		overflow: visible !important;
	}

	/* 2. Order cards fill the full available width. */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row {
		width: 100% !important;
	}
	/* The grid column already spans the shell width; remove any side padding. */
	#main-content .woocommerce-MyAccount-content .woocommerce-orders-table,
	#main-content .woocommerce-MyAccount-content .woocommerce-orders-table tbody { width: 100% !important; padding: 0 !important; }

	/* 3. The dropdown panel matches the order card width exactly. */
	#main-content .woocommerce-MyAccount-content tr.bfp-expand-row > td { width: 100% !important; }
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel {
		width: 100% !important;
		box-sizing: border-box !important;
	}
}

/* Tablet: ensure the expanded panel lines up with the card width. */
@media (min-width: 641px) and (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content tr.bfp-expand-row { width: 100% !important; }
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel { width: 100% !important; }
}

/* Tablet fix: the expand row's single cell must span the FULL table width. */
@media (min-width: 641px) and (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content tr.bfp-expand-row > td {
		display: table-cell !important;
		width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content tr.bfp-expand-row { width: 100% !important; }
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel { width: 100% !important; box-sizing: border-box !important; }
}

/* Tablet fix v2: the expand row must follow the SAME block layout as the cards
   (forcing table-cell made it collapse to the old column width). */
@media (min-width: 641px) and (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content tr.bfp-expand-row {
		display: block !important;
		width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content tr.bfp-expand-row > td {
		display: block !important;
		width: 100% !important;
		padding: 0 !important;
		border: 0 !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel {
		display: block !important;
		width: 100% !important;
		box-sizing: border-box !important;
		margin: -14px 0 14px !important;
		border: 1px solid #ece6e2 !important;
		border-top: 0 !important;
		border-radius: 0 0 16px 16px !important;
		padding: 16px !important;
	}
	/* Tablet keeps title + button on one line, then description, then summary. */
	#main-content .woocommerce-MyAccount-content .bfp-exp-head {
		display: flex !important; align-items: center !important; justify-content: space-between !important;
		gap: 16px !important; margin-bottom: 10px !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-exp-cta-link { width: auto !important; margin: 0 !important; }
}


/* Status badge colours — MOBILE ONLY (were leaking to desktop). */
@media (max-width: 900px) {
#main-content .woocommerce-MyAccount-content mark.order-status.status-processing { background: #e7f1fd !important; color: #1565c0 !important; }
#main-content .woocommerce-MyAccount-content mark.order-status.status-completed { background: #e8f7ee !important; color: #176b3a !important; }
#main-content .woocommerce-MyAccount-content mark.order-status.status-pending { background: #fff1e6 !important; color: #c1590a !important; }
#main-content .woocommerce-MyAccount-content mark.order-status.status-on-hold { background: #fff8e1 !important; color: #9a7600 !important; }
#main-content .woocommerce-MyAccount-content mark.order-status.status-cancelled,
#main-content .woocommerce-MyAccount-content mark.order-status.status-failed { background: #fdeceb !important; color: #c62828 !important; }
#main-content .woocommerce-MyAccount-content mark.order-status.status-refunded { background: #eeeeee !important; color: #616161 !important; }
#main-content .woocommerce-MyAccount-content mark.order-status.status-shipped { background: #e7f1fd !important; color: #1565c0 !important; }
#main-content .woocommerce-MyAccount-content mark.order-status.status-delivered { background: #e8f7ee !important; color: #176b3a !important; }
}

/* ===============================================================
   DESKTOP-ONLY FIX (final, 2026-11-20)
   The mobile-only identity cell (td.bfp-mobile-id) and the status pill
   were leaking onto laptop/desktop because the scroll fix later set
   "td { display: table-cell !important }". Force them off on desktop.
   MOBILE/TABLET (<=900px) IS NOT TOUCHED — this block is >900px only.
   =============================================================== */
@media (min-width: 901px) {
	/* 1. The mobile identity cell must never appear on desktop. */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table td.bfp-mobile-id,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table.shop_table_responsive td.bfp-mobile-id {
		display: none !important;
	}
	/* 2. The status must read as plain text on desktop (no pill/badge). */
	#main-content .woocommerce-MyAccount-content mark.order-status {
		display: inline !important;
		background: transparent !important;
		color: inherit !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		font-size: inherit !important;
		font-weight: inherit !important;
	}
	/* 3. Product name must stay on ONE line on desktop (was wrapping). */
	#main-content .woocommerce-MyAccount-content .opp-order-preview strong {
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		display: block !important;
	}
	#main-content .woocommerce-MyAccount-content .opp-order-preview > div {
		min-width: 0 !important;
	}
}

/* ===============================================================
   TABLET ONLY (641-900px) — expanded panel must match the card width.
   The expand row must use the SAME block layout as the cards (it was
   still a table-row, so it collapsed to the old column width).
   =============================================================== */
@media (min-width: 641px) and (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.bfp-expand-row {
		display: block !important;
		width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.bfp-expand-row > td {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: 0 !important;
		border: 0 !important;
		box-sizing: border-box !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}
}

/* TABLET: panel must be exactly as wide as the order card (no side inset). */
@media (min-width: 641px) and (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.bfp-expand-row > td {
		padding: 0 !important;
		margin: 0 !important;
		width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-expand-panel {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}

/* ===============================================================
   Inline summary inside the order card (mobile/tablet + desktop)
   Replaces the old separate expand card. Title/description already show
   in the card, so only Summary + the button are added here.
   =============================================================== */
#main-content .woocommerce-MyAccount-content .bfp-inline-summary {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f0e9e5;
}
#main-content .woocommerce-MyAccount-content .bfp-inline-summary .bfp-exp-summary { border: 0 !important; padding: 0 !important; }
#main-content .woocommerce-MyAccount-content .bfp-inline-summary .bfp-exp-cta-link {
	display: flex !important; width: 100% !important; justify-content: center;
	margin: 12px 0 0 !important;
	box-sizing: border-box !important;
}
/* Desktop: button can be inline (auto width) if preferred — keep full width for clarity. */
@media (min-width: 901px) {
	#main-content .woocommerce-MyAccount-content .bfp-inline-summary .bfp-exp-cta-link { width: auto !important; }
}

/* ===============================================================
   BlueDart tracking block — premium card + timeline
   Applies to the My Account "View order" page. Does not change the plugin
   markup; only styles it. (Scans render as a vertical timeline when present.)
   =============================================================== */
.bdwc-tracking-block {
	position: relative;
	margin: 20px 0;
	padding: 18px 20px 16px;
	border: 1px solid #ece6e2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 22px -16px rgba(28, 22, 18, .35);
}
/* Brand strip */
.bdwc-tracking-block::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 4px;
	border-radius: 16px 16px 0 0;
	background: linear-gradient(90deg, #ff4b1f, #ff8a55);
}
.bdwc-tracking-block .bdwc-tracking-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 10px;
	margin: 0 0 12px;
	font-size: 13px;
	color: #17130f;
}
.bdwc-tracking-block .bdwc-tracking-header strong {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 13.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .5px;
}
.bdwc-tracking-block .bdwc-tracking-header strong::before {
	content: "";
	width: 8px; height: 8px; border-radius: 50%;
	background: #ff4b1f;
	box-shadow: 0 0 0 3px rgba(255, 75, 31, .15);
}
.bdwc-tracking-block .bdwc-tracking-header code {
	font-size: 13px;
	font-weight: 700;
	color: #1565c0;
	background: #e7f1fd;
	padding: 3px 10px;
	border-radius: 8px;
	letter-spacing: .4px;
}
.bdwc-tracking-block .bdwc-tracking-service {
	font-size: 11px;
	font-weight: 700;
	color: #8a807a;
	background: #f4efec;
	padding: 3px 9px;
	border-radius: 999px;
}
/* Copy button (added by JS) */
.bdwc-tracking-block .bfp-awb-copy {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; padding: 0;
	border: 1px solid #ffd9c9; border-radius: 8px;
	background: #fff; color: #c23a12; cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.bdwc-tracking-block .bfp-awb-copy:hover { background: #fff4ef; color: #e2340c; }
.bdwc-tracking-block .bfp-awb-copy.is-copied { background: #e8f7ee; color: #176b3a; border-color: #bfe6cd; }
.bdwc-tracking-block .bfp-awb-copy svg { width: 14px; height: 14px; display: block; }

/* "Track on bluedart.com" -> proper button */
.bdwc-tracking-block a[href*="bluedart.com"] {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 9px 16px; border-radius: 10px;
	background: linear-gradient(135deg, #ff4b1f, #ff6a35);
	color: #fff !important; font-size: 12.5px; font-weight: 700;
	text-decoration: none !important; white-space: nowrap;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, .5);
}
.bdwc-tracking-block a[href*="bluedart.com"]:hover { background: #f0400f; }
.bdwc-tracking-block > p:has(a[href*="bluedart.com"]) { margin: 12px 0 0; }

/* Status line */
.bdwc-tracking-block .bdwc-tracking-status {
	margin: 0 0 10px; font-size: 13px; color: #3a342f;
}
.bdwc-tracking-block .bdwc-tracking-status strong { color: #17130f; }
.bdwc-tracking-block .bdwc-tracking-updated { color: #8a807a; font-size: 12px; margin-left: 6px; }

/* ---- Scans timeline (Amazon/Flipkart style) ---- */
.bdwc-tracking-block .bdwc-tracking-timeline {
	list-style: none !important;
	margin: 6px 0 0 !important;
	padding: 0 0 0 22px !important;
	position: relative;
}
.bdwc-tracking-block .bdwc-tracking-timeline::before {
	content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px;
	width: 2px; background: #ece6e2; border-radius: 2px;
}
.bdwc-tracking-block .bdwc-tracking-timeline li {
	position: relative;
	margin: 0 0 14px;
	padding: 0 0 0 4px;
}
.bdwc-tracking-block .bdwc-tracking-timeline li::before {
	content: ""; position: absolute; left: -22px; top: 5px;
	width: 10px; height: 10px; border-radius: 50%;
	background: #fff; border: 2px solid #ff4b1f;
	box-shadow: 0 0 0 3px rgba(255, 75, 31, .12);
}
.bdwc-tracking-block .bdwc-tracking-timeline li:last-child::before { background: #ff4b1f; }
.bdwc-tracking-block .bdwc-scan-status { display: block; font-size: 13px; font-weight: 800; color: #17130f; }
.bdwc-tracking-block .bdwc-scan-meta { display: block; font-size: 12px; color: #8a807a; margin-top: 2px; }

/* Responsive */
@media (max-width: 640px) {
	.bdwc-tracking-block { padding: 16px 15px 14px; border-radius: 14px; }
	.bdwc-tracking-block .bdwc-tracking-header { gap: 6px 8px; }
}

/* ===============================================================
   VIEW ORDER page — premium layout (2026-11-20)
   Styles the standard WooCommerce markup (no template changes).
   Applies only on the view-order endpoint (body.woocommerce-view-order
   is not present, so we scope by .woocommerce-order-details which only
   appears on this page).
   =============================================================== */

/* 1. The "Order #13161 was placed on … is currently Processing." line ->
      a premium order header. */
#main-content .woocommerce-MyAccount-content > p:first-of-type {
	position: relative;
	margin: 0 0 18px !important;
	padding: 16px 18px 16px 52px;
	border: 1px solid #ece6e2;
	border-radius: 16px;
	background: linear-gradient(135deg, #fff9f6, #ffffff);
	box-shadow: 0 6px 20px -14px rgba(28, 22, 18, .35);
	font-size: 13.5px;
	line-height: 1.6;
	color: #3a342f;
}
#main-content .woocommerce-MyAccount-content > p:first-of-type::before {
	content: ""; position: absolute; left: 18px; top: 16px;
	width: 22px; height: 22px; border-radius: 50%;
	background: #ff4b1f;
	box-shadow: 0 0 0 4px rgba(255, 75, 31, .14);
}
#main-content .woocommerce-MyAccount-content > p:first-of-type::after {
	content: "\2713"; position: absolute; left: 18px; top: 16px;
	width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
	color: #fff; font-size: 12px; font-weight: 900;
}
#main-content .woocommerce-MyAccount-content > p:first-of-type mark,
#main-content .woocommerce-MyAccount-content > p:first-of-type strong { color: #17130f; font-weight: 800; }

/* 2. Order details section = premium card. */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details {
	margin: 0 0 20px !important;
	padding: 20px 20px 22px;
	border: 1px solid #ece6e2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 22px -16px rgba(28, 22, 18, .3);
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details__title,
#main-content .woocommerce-MyAccount-content .woocommerce-customer-details .woocommerce-column__title,
#main-content .woocommerce-MyAccount-content h2.woocommerce-order-details__title {
	margin: 0 0 14px !important;
	font-size: 15px !important;
	font-weight: 800 !important;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #17130f;
}

/* 3. Items table — premium (image + name + line price). */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table {
	width: 100% !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table thead th {
	background: #faf7f5 !important;
	color: #8a807a !important;
	font-size: 11px !important; font-weight: 800 !important; text-transform: uppercase; letter-spacing: .6px;
	padding: 11px 14px !important; border-bottom: 1px solid #ece6e2 !important; text-align: left;
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table td {
	padding: 14px !important; border-top: 1px solid #f4efec !important; border-bottom: 0 !important;
	font-size: 13.5px; color: #3a342f; vertical-align: middle;
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody tr:first-child td { border-top: 0 !important; }
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table td.product-name a,
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table .product-name {
	font-weight: 700; color: #17130f; text-decoration: none !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table .product-quantity { color: #8a807a; font-weight: 600; }
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table td.product-total,
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot td,
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot th {
	font-weight: 800; color: #17130f;
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot th {
	background: #faf7f5 !important; text-transform: none; letter-spacing: 0; font-size: 13px !important;
}
/* Bold the grand total row */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr.order-total th,
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr.order-total td {
	background: #fff4ef !important; color: #c23a12 !important; font-size: 15px !important;
}

/* 4. Customer details (billing) = premium card. */
#main-content .woocommerce-MyAccount-content .woocommerce-customer-details {
	margin: 0 0 20px !important;
	padding: 20px;
	border: 1px solid #ece6e2;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 22px -16px rgba(28, 22, 18, .3);
}
#main-content .woocommerce-MyAccount-content .woocommerce-customer-details address {
	font-style: normal; font-size: 13.5px; line-height: 1.75; color: #3a342f;
	border: 0 !important; padding: 0 !important;
}

/* 5. Invoices / PDF buttons -> premium buttons on this page. */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .button,
#main-content .woocommerce-MyAccount-content .woocommerce-customer-details .button,
#main-content .woocommerce-MyAccount-content > p .button {
	display: inline-flex !important; align-items: center; justify-content: center;
	padding: 9px 16px !important; border-radius: 10px !important;
	background: linear-gradient(135deg, #ff4b1f, #ff6a35) !important;
	color: #fff !important; font-size: 12.5px !important; font-weight: 700 !important;
	text-decoration: none !important; border: 0 !important; white-space: nowrap;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, .5);
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .button:hover { background: #f0400f !important; }

/* 6. Responsive */
@media (max-width: 640px) {
	#main-content .woocommerce-MyAccount-content > p:first-of-type { padding: 14px 14px 14px 46px; font-size: 13px; }
	#main-content .woocommerce-MyAccount-content > p:first-of-type::before,
	#main-content .woocommerce-MyAccount-content > p:first-of-type::after { left: 15px; top: 14px; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details,
	#main-content .woocommerce-MyAccount-content .woocommerce-customer-details { padding: 16px 14px; border-radius: 14px; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table thead th,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table td { padding: 10px 10px !important; }
}

/* View order: the tfoot rows had a grey fill on the label column — flatten it. */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot th {
	background: transparent !important;
	border-top: 1px solid #f4efec !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr td {
	border-top: 1px solid #f4efec !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr.order-total th,
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr.order-total td {
	border-top: 0 !important;
}

/* Mobile: the view-order page content must fit the card width (was 710px). */
@media (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details,
	#main-content .woocommerce-MyAccount-content .woocommerce-customer-details,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table {
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
		overflow-x: hidden !important;
	}
	#main-content .woocommerce-MyAccount-content table.shop_table th,
	#main-content .woocommerce-MyAccount-content table.shop_table td {
		word-break: break-word !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table thead th:last-child,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table td:last-child { text-align: right !important; }
	.bdwc-tracking-block { max-width: 100% !important; box-sizing: border-box !important; overflow-x: hidden !important; }
	.bdwc-tracking-block .bdwc-tracking-header { flex-wrap: wrap !important; }
}

/* View order (mobile): WC's smallscreen CSS hid the value cells.
   Restore the two-column rows for the order-details table. */
@media (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot {
		display: block !important; width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tr {
		display: flex !important; flex-wrap: wrap !important; align-items: flex-start !important;
		justify-content: space-between !important; gap: 6px 14px !important; width: 100% !important;
		padding: 10px 0 !important; border-top: 1px solid #f4efec !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table thead { display: none !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tr > th,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tr > td {
		display: block !important; width: auto !important; min-width: 0 !important;
		padding: 0 !important; border: 0 !important; text-align: left !important; background: transparent !important;
	}
	/* product cell full width; its price to the right */
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table td.product-name { flex: 1 1 auto !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table td.product-total { flex: 0 0 auto !important; text-align: right !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot th { flex: 1 1 auto !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot td { flex: 0 0 auto !important; text-align: right !important; }
	/* description ellipsis instead of cut */
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table .product-name p,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table .product-name small {
		margin: 3px 0 0 !important; font-size: 12px !important; color: #8a807a !important;
		white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%;
	}
}

/* ===============================================================
   VIEW ORDER page — final polish
   tfoot rows: label LEFT / value RIGHT (were glued together)
   product cell: name 1 line, description
   +=  ellipsis (not cut), hide the duplicate thumbnail
   =============================================================== */
@media (max-width: 900px) {
	/* tfoot label/value rows: full width, pushed apart */
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr {
		display: flex !important; align-items: baseline !important;
		justify-content: space-between !important; gap: 14px !important; width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr > th {
		flex: 1 1 auto !important; text-align: left !important; font-weight: 700 !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr > td {
		flex: 0 0 auto !important; text-align: right !important; margin-left: auto !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr.order-total > th { color: #c23a12 !important; font-weight: 800 !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr.order-total > td { color: #c23a12 !important; font-weight: 800 !important; }

	/* product row: name row + price row */
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody tr {
		display: flex !important; flex-wrap: wrap !important; width: 100% !important;
		align-items: flex-start !important; justify-content: space-between !important; gap: 6px 14px !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody tr > td.product-name { flex: 1 1 auto !important; min-width: 0 !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody tr > td.product-total { flex: 0 0 auto !important; text-align: right !important; }

	/* Hide the duplicated thumbnail inside the order item */
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .opp-order-preview img { display: none !important; }
	/* Description: one line with an ellipsis */
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .opp-order-preview p {
		margin: 3px 0 0 !important; font-size: 12px !important; color: #8a807a !important;
		white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
		max-width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .opp-order-preview { margin-top: 3px !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .product-quantity { color: #8a807a !important; font-weight: 600 !important; }
}

/* Desktop: keep product image visible but tidy + ellipsis the description too. */
@media (min-width: 901px) {
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .opp-order-preview p {
		white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; max-width: 420px !important;
	}
}

/* FINAL fix: tfoot label must not eat the whole row (it was 602px and pushed
   the value off-screen). Use a real 2-column grid instead of flex. */
@media (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: baseline !important;
		gap: 6px 14px !important;
		width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr > th {
		display: block !important; width: auto !important; min-width: 0 !important;
		text-align: left !important; font-weight: 700 !important; background: transparent !important;
		border: 0 !important; padding: 0 !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot tr > td {
		display: block !important; width: auto !important; min-width: 0 !important;
		text-align: right !important; margin: 0 !important; border: 0 !important; padding: 0 !important;
		justify-self: end !important;
	}

	/* Product row: same 2-column grid (name+desc | price). */
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody tr {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) auto !important;
		align-items: start !important;
		gap: 6px 14px !important;
		width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody tr > td {
		display: block !important; width: auto !important; min-width: 0 !important;
		border: 0 !important; padding: 0 !important;
	}
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody tr > td.product-name { text-align: left !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody tr > td.product-total { text-align: right !important; white-space: nowrap !important; }

	/* Description: one line, ellipsis (was cut). */
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .opp-order-preview p {
		display: block !important;
		white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important;
		max-width: 100% !important;
	}
}

/* CRITICAL: the orders-table min-width:680px was leaking onto the view-order
   page (both use .shop_table). Zero it out on the view-order table. */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table {
	min-width: 0 !important;
	width: 100% !important;
	max-width: 100% !important;
	table-layout: auto !important;
}
@media (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tbody,
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details .shop_table tfoot {
		min-width: 0 !important;
		width: 100% !important;
	}
}

/* ===============================================================
   ORDER TIMELINE (Amazon/Flipkart style) + single-card page
   =============================================================== */

/* ---- Timeline block ---- */
.bfp-timeline {
	margin: 0 0 18px;
	padding: 16px 18px 14px;
	border: 1px solid #ece6e2;
	border-radius: 14px;
	background: #fffbf9;
}
.bfp-tl-head {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px;
	margin: 0 0 14px;
}
.bfp-tl-live {
	width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
	animation: bfp-pulse 1.6s ease-in-out infinite;
}
@keyframes bfp-pulse {
	0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
	50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, .10); }
}
.bfp-tl-title {
	font-size: 13.5px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .5px; color: #17130f;
}
.bfp-tl-awb {
	font-size: 12.5px; font-weight: 700; color: #1565c0;
	background: #e7f1fd; padding: 3px 10px; border-radius: 8px; letter-spacing: .4px;
}
.bfp-tl-copy {
	display: inline-flex; align-items: center; justify-content: center;
	width: 26px; height: 26px; padding: 0; cursor: pointer;
	border: 1px solid #ffd9c9; border-radius: 8px; background: #fff; color: #c23a12;
}
.bfp-tl-copy.is-copied { background: #e8f7ee; color: #176b3a; border-color: #bfe6cd; }
.bfp-tl-copy svg { width: 14px; height: 14px; display: block; }
.bfp-tl-track {
	margin-left: auto;
	display: inline-flex; align-items: center; justify-content: center;
	padding: 8px 14px; border-radius: 9px;
	background: linear-gradient(135deg, #ff4b1f, #ff6a35);
	color: #fff !important; font-size: 12px; font-weight: 700;
	text-decoration: none !important; white-space: nowrap;
	box-shadow: 0 6px 14px -6px rgba(255, 75, 31, .5);
}
.bfp-tl-track:hover { background: #f0400f; }

/* Steps */
.bfp-tl-steps {
	list-style: none !important; margin: 0 !important; padding: 0 0 0 24px !important;
	position: relative;
}
.bfp-tl-steps::before {
	content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px;
	width: 2px; background: linear-gradient(#22c55e, #ece6e2); border-radius: 2px;
}
.bfp-tl-steps li {
	position: relative; margin: 0 0 16px; padding: 0 0 0 4px;
}
.bfp-tl-steps li:last-child { margin-bottom: 0; }
.bfp-tl-dot {
	position: absolute; left: -24px; top: 3px;
	width: 12px; height: 12px; border-radius: 50%;
	background: #fff; border: 2px solid #22c55e;
	box-shadow: 0 0 0 3px rgba(34, 197, 94, .15);
}
.bfp-tl-steps li.is-pending .bfp-tl-dot { border-color: #d5cac2; box-shadow: none; }
.bfp-tl-label { display: block; font-size: 13.5px; font-weight: 800; color: #17130f; }
.bfp-tl-desc { display: block; font-size: 12.5px; color: #8a807a; margin-top: 2px; }
.bfp-tl-time { display: block; font-size: 11.5px; color: #b0492e; font-weight: 700; margin-top: 2px; }
.bfp-tl-steps li.is-pending .bfp-tl-label { color: #a8a19c; font-weight: 700; }

/* ===============================================================
   SINGLE CARD: put the tracking block + customer details INSIDE the
   order-details card so the page is one card (no multiple boxes).
   =============================================================== */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details {
	padding-bottom: 8px;
}
/* The BlueDart plugin block sits after the details card; restyle it to blend in. */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details ~ .bdwc-tracking-block {
	margin: -22px 0 20px !important;
	border-radius: 0 0 16px 16px !important;
	border-top: 0 !important;
	box-shadow: 0 8px 22px -16px rgba(28, 22, 18, .3);
}
/* Billing card: keep as a card but visually part of the same page flow. */
#main-content .woocommerce-MyAccount-content .woocommerce-customer-details { margin-top: 0 !important; }

@media (max-width: 640px) {
	.bfp-timeline { padding: 14px 14px 12px; }
	.bfp-tl-track { margin-left: 0; width: 100%; }
	.bfp-tl-head { gap: 8px; }
}

/* ===============================================================
   VIEW ORDER (v2, 2026-11-21): HORIZONTAL tracking stepper.
   JS adds class `is-horizontal` and appends the panel BELOW the
   order details (items first, tracking after). Additive only.
   =============================================================== */
.bfp-timeline.is-horizontal {
	margin: 6px 0 12px;
	padding: 18px 20px 16px;
	border-radius: 16px;
	background: linear-gradient(180deg, #fffdfb, #fdf6f1);
}
.bfp-timeline.is-horizontal .bfp-tl-head { margin-bottom: 22px; }

/* Stepper rail: steps side by side, connector between dots */
.bfp-timeline.is-horizontal .bfp-tl-steps {
	display: flex !important;
	align-items: flex-start;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
	position: static;
}
.bfp-timeline.is-horizontal .bfp-tl-steps::before { content: none !important; }
.bfp-timeline.is-horizontal .bfp-tl-steps li {
	position: relative;
	flex: 1 1 0 !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 8px 0 0 !important;
	text-align: center;
	list-style: none !important;
	display: block;
}
.bfp-timeline.is-horizontal .bfp-tl-steps li:last-child { padding-right: 0 !important; }

/* Dot on top, centered */
.bfp-timeline.is-horizontal .bfp-tl-dot {
	position: static !important;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center; justify-content: center;
	width: 26px !important; height: 26px !important;
	border-radius: 50%;
	background: #fff;
	border: 2px solid #22c55e;
	box-shadow: 0 0 0 4px rgba(34, 197, 94, .14);
	color: #15803d;
	margin: 0 auto;
}
.bfp-timeline.is-horizontal .bfp-tl-dot svg { width: 12px; height: 12px; display: block; }
.bfp-timeline.is-horizontal .bfp-tl-steps li.is-pending .bfp-tl-dot {
	border-color: #e2d7cf; box-shadow: none; background: #faf5f1; color: #cfc4bc;
}
.bfp-timeline.is-horizontal .bfp-tl-steps li.is-current .bfp-tl-dot {
	animation: bfp-h-pulse 1.8s ease-in-out infinite;
}
@keyframes bfp-h-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, .16); }
	50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, .07); }
}

/* Connector segment between this dot and the next dot */
.bfp-timeline.is-horizontal .bfp-tl-steps li:not(:last-child)::after {
	content: ""; position: absolute;
	top: 13px; left: calc(50% + 22px); width: calc(100% - 44px); height: 2px;
	background: #e8ddd5; border-radius: 2px;
}
.bfp-timeline.is-horizontal .bfp-tl-steps li.is-linked::after {
	background: linear-gradient(90deg, #22c55e, #57d47f);
}

/* Body under the dot */
.bfp-timeline.is-horizontal .bfp-tl-body { display: block; margin-top: 9px; }
.bfp-timeline.is-horizontal .bfp-tl-label { font-size: 12.5px; line-height: 1.35; }
.bfp-timeline.is-horizontal .bfp-tl-desc {
	font-size: 11.5px; line-height: 1.4; margin-top: 3px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bfp-timeline.is-horizontal .bfp-tl-time { margin-top: 3px; font-size: 11px; }
.bfp-timeline.is-horizontal .bfp-tl-steps li.is-pending .bfp-tl-desc { color: #b3aaa3; }

/* Mobile (<=640px): same horizontal rail, swipeable */
@media (max-width: 640px) {
	.bfp-timeline.is-horizontal { padding: 16px 14px 14px; }
	.bfp-timeline.is-horizontal .bfp-tl-steps {
		flex-wrap: nowrap !important;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		scroll-snap-type: x proximity;
		margin: 0 -14px !important;
		padding: 0 14px 4px !important;
	}
	.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar { display: none; }
	.bfp-timeline.is-horizontal .bfp-tl-steps li {
		flex: 0 0 auto !important;
		min-width: 118px !important;
		padding-right: 10px !important;
		scroll-snap-align: start;
	}
	.bfp-timeline.is-horizontal .bfp-tl-desc { display: none; }
	.bfp-timeline.is-horizontal .bfp-tl-label { font-size: 12px; }
}

/* BDWC plugin's own block is redundant next to the LIVE TRACKING panel
   (same AWB, same copy button, same Track link) — hide it on view-order. */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details ~ .bdwc-tracking-block { display: none !important; }

/* ===============================================================
   VIEW ORDER v3 (2026-11-21): ONE premium parent card.
   Header block + borderless tracking section + collapsible full
   history + billing merged into the details card. Additive only.
   =============================================================== */

/* WC's own "ORDER DETAILS" h2 is replaced by the .bfp-voh-head header */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details .woocommerce-order-details__title { display: none !important; }

/* --- Premium header (Order # + status + placed date) --- */
.bfp-voh-head {
	margin: 0 0 18px; padding-bottom: 16px;
	border-bottom: 1px solid #f2ece8;
}
.bfp-voh-label {
	display: block; font-size: 11px; font-weight: 800; letter-spacing: .8px;
	text-transform: uppercase; color: #b0492e; margin-bottom: 8px;
}
.bfp-voh-row1 {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; flex-wrap: wrap;
}
.bfp-voh-order { font-size: 22px; font-weight: 800; color: #17130f; letter-spacing: -.2px; }
.bfp-voh-status {
	background: #e7f1fd; color: #1565c0; font-weight: 800;
	padding: 4px 12px; border-radius: 999px; font-size: 11.5px;
	text-transform: capitalize; display: inline-block;
}
.bfp-voh-placed { display: block; margin-top: 6px; font-size: 13px; color: #8a807a; font-weight: 600; }

/* --- Tracking becomes a borderless section of the one card --- */
.bfp-timeline.is-horizontal.is-plain {
	border: 0; background: transparent; border-radius: 0;
	padding: 18px 0 6px; margin: 4px 0 8px;
	border-top: 1px solid #f2ece8;
}

/* --- Collapsible full tracking history --- */
.bfp-th { margin-top: 14px; padding-top: 14px; border-top: 1px dashed #efe6df; }
.bfp-th-toggle {
	display: flex; align-items: center; gap: 10px; width: 100%;
	background: #fff; border: 1px solid #ece6e2; border-radius: 12px;
	padding: 12px 16px; cursor: pointer; font: inherit; text-align: left;
	transition: background .15s ease, border-color .15s ease;
}
.bfp-th-toggle:hover { background: #fffbf9; border-color: #e0d5cc; }
.bfp-th-title { font-size: 13px; font-weight: 800; color: #17130f; }
.bfp-th-count {
	font-size: 11px; font-weight: 700; color: #b0492e;
	background: #fff3ee; border-radius: 999px; padding: 2px 9px; white-space: nowrap;
}
.bfp-th-chev { margin-left: auto; color: #8a807a; display: inline-flex; transition: transform .2s ease; }
.bfp-th-chev svg { width: 16px; height: 16px; }
.bfp-th.is-open .bfp-th-chev { transform: rotate(180deg); }
.bfp-th-list { display: none; margin-top: 12px; padding: 0 4px 0 6px; }
.bfp-th.is-open .bfp-th-list { display: block; }

.bfp-th-row {
	position: relative; display: block;
	padding: 10px 0 10px 20px;
	border-bottom: 1px dashed #f2ece8;
}
.bfp-th-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.bfp-th-row::before {
	content: ""; position: absolute; left: 1px; top: 15px;
	width: 8px; height: 8px; border-radius: 50%;
	background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .14);
}
.bfp-th-row.is-latest::before { background: #f0400f; box-shadow: 0 0 0 3px rgba(240, 64, 15, .15); }
.bfp-th-when { display: block; font-size: 11px; font-weight: 800; color: #b0492e; letter-spacing: .3px; margin-bottom: 2px; }
.bfp-th-what {
	display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
	font-size: 13.5px; font-weight: 800; color: #17130f;
}
.bfp-th-chip {
	font-size: 10px; font-weight: 800; color: #fff;
	background: linear-gradient(135deg, #ff4b1f, #ff6a35);
	padding: 2px 8px; border-radius: 999px; letter-spacing: .4px;
}
.bfp-th-where { display: block; font-size: 12.5px; color: #8a807a; margin-top: 2px; }
.bfp-th-row.is-pendingd { opacity: .55; }

/* --- Billing address merges into the one card --- */
#main-content .woocommerce-MyAccount-content .woocommerce-customer-details {
	border: 0 !important; box-shadow: none !important; background: transparent !important;
	margin: 0 !important; padding: 18px 0 4px !important;
	border-top: 1px solid #f2ece8 !important; border-radius: 0 !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-customer-details h2 {
	font-size: 13px; letter-spacing: .8px; text-transform: uppercase;
	font-weight: 800; color: #17130f; margin: 0 0 10px; padding: 0;
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details { padding-bottom: 16px !important; }

/* --- Mobile (<=640px) --- */
@media (max-width: 640px) {
	.bfp-voh-order { font-size: 19px; }
	.bfp-voh-head { margin-bottom: 14px; padding-bottom: 13px; }
	.bfp-timeline.is-horizontal.is-plain .bfp-tl-steps { margin: 0 !important; padding: 0 0 4px !important; }
	.bfp-th-toggle { padding: 11px 12px; }
	.bfp-th-list { padding: 0 2px 0 4px; }
	.bfp-th-what { font-size: 13px; }
}

/* BDWC block renders INSIDE .woocommerce-order-details (not a sibling) —
   hide it wherever it sits; the LIVE TRACKING panel covers everything. */
#main-content .woocommerce-MyAccount-content .bdwc-tracking-block { display: none !important; }

/* View-order: ONLY the Order Details card should show — strip the outer
   parent card look of .woocommerce-MyAccount-content (scoped to the
   woocommerce-view-order body class; orders-list page is untouched). */
body.woocommerce-view-order #main-content .woocommerce-MyAccount-content {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
}

/* Billing address now sits ABOVE the items table (right after the header):
   header loses its own border-bottom so there is no double divider, and the
   billing section gets top + bottom dividers. */
.bfp-voh-head { border-bottom: 0 !important; padding-bottom: 0 !important; margin-bottom: 14px !important; }
#main-content .woocommerce-MyAccount-content .woocommerce-customer-details {
	padding: 16px 0 16px !important;
	border-top: 1px solid #f2ece8 !important;
	border-bottom: 1px solid #f2ece8 !important;
}

/* Full Tracking History: rows connected by a vertical timeline rail; the
   current (latest) row's dot keeps blinking. */
.bfp-th-list { position: relative; }
.bfp-th-list::before {
	content: ""; position: absolute;
	left: 10px; top: 20px; bottom: 24px;
	width: 2px; border-radius: 2px;
	background: #e8ddd5;
}
.bfp-th-row { border-bottom: 0 !important; padding-top: 11px !important; padding-bottom: 11px !important; }
.bfp-th-row:last-child { padding-bottom: 4px !important; }
.bfp-th-row.is-latest::before {
	animation: bfp-th-blink 1.4s ease-in-out infinite;
}
@keyframes bfp-th-blink {
	0%, 100% { box-shadow: 0 0 0 3px rgba(240, 64, 15, .20); opacity: 1; }
	50% { box-shadow: 0 0 0 8px rgba(240, 64, 15, .06); opacity: .72; }
}

/* Header status = real badge. The theme rule
   `.woocommerce-account .woocommerce-MyAccount-content mark` (transparent bg)
   has higher specificity, so re-assert with the same prefix + !important. */
.woocommerce-account .woocommerce-MyAccount-content mark.bfp-voh-status {
	display: inline-block !important;
	background: #e7f1fd !important;
	color: #1565c0 !important;
	font-weight: 800 !important;
	padding: 4px 12px !important;
	border-radius: 999px !important;
	font-size: 11.5px !important;
	letter-spacing: .3px;
	text-transform: capitalize !important;
	white-space: nowrap;
	line-height: 1.4;
}
/* per-status colours */
.woocommerce-account .woocommerce-MyAccount-content mark.bfp-voh-status.bfp-st-completed { background: #e8f7ee !important; color: #176b3a !important; }
.woocommerce-account .woocommerce-MyAccount-content mark.bfp-voh-status.bfp-st-cancelled { background: #fdeaea !important; color: #c0392b !important; }
.woocommerce-account .woocommerce-MyAccount-content mark.bfp-voh-status.bfp-st-on-hold { background: #fff4dd !important; color: #a06a00 !important; }
.woocommerce-account .woocommerce-MyAccount-content mark.bfp-voh-status.bfp-st-refunded { background: #f3e8fd !important; color: #7b2d9e !important; }
.woocommerce-account .woocommerce-MyAccount-content mark.bfp-voh-status.bfp-st-pending,
.woocommerce-account .woocommerce-MyAccount-content mark.bfp-voh-status.bfp-st-failed { background: #f1ece8 !important; color: #8a807a !important; }

/* Details table: product left, money right. The last column (TOTAL header,
   amount cells, tfoot values, Actions button) aligns to the right edge. */
body.woocommerce-view-order .woocommerce-order-details table.shop_table thead th:last-child,
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td:last-child {
	text-align: right !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr th:not(.order-actions--heading) { text-align: left !important; }
body.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr td { text-align: right !important; }
body.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot td .bfp-invoice-pdf,
body.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot td a.woocommerce-button.button {
	display: inline-flex;
}

/* Track on BlueDart + Refresh buttons: equal height, icon on the left of the
   text, and "Refresh" casing (only first letter capital). The Refresh button
   belongs to bfp-order-details.css — these are safe additive overrides. */
.bfp-tl-head .bfp-tl-track,
.bfp-tl-head .bfp-tl-refresh {
	height: 34px;
	padding: 0 14px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 7px;
	line-height: 1 !important;
	box-sizing: border-box;
}
.bfp-tl-head .bfp-tl-refresh { text-transform: none !important; }
/* external-link icon on the LEFT of "Track on BlueDart" */
.bfp-tl-head .bfp-tl-track::before {
	content: "";
	flex: 0 0 auto;
	width: 12px; height: 12px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Auto-centred current step on mobile: animate the programmatic scroll */
.bfp-timeline.is-horizontal.is-plain .bfp-tl-steps { scroll-behavior: smooth; }

/* scroll-snap fights the auto-centring — disable it on the plain stepper */
.bfp-timeline.is-horizontal.is-plain .bfp-tl-steps { scroll-snap-type: none !important; }
.bfp-timeline.is-horizontal.is-plain .bfp-tl-steps li { scroll-snap-align: none !important; }

/* Refresh button: keep the text WHITE in every state (a theme rule was
   turning it black), Track button too for consistency. */
.bfp-tl-head .bfp-tl-refresh,
.bfp-tl-head .bfp-tl-refresh:hover:not(:disabled),
.bfp-tl-head .bfp-tl-refresh:active:not(:disabled),
.bfp-tl-head .bfp-tl-refresh:disabled,
.bfp-tl-head .bfp-tl-track,
.bfp-tl-head .bfp-tl-track:hover { color: #fff !important; }

/* Mobile/tablet: Track + Refresh sit SIDE BY SIDE (not stacked full-width).
   The old <=640px rule made .bfp-tl-track width:100% — neutralize it here. */
@media (max-width: 640px) {
	.bfp-tl-head { row-gap: 10px; }
	.bfp-tl-head .bfp-tl-track,
	.bfp-tl-head .bfp-tl-refresh {
		width: auto !important;
		margin-left: 0 !important;
		flex: 0 0 auto !important;
	}
	.bfp-tl-head .bfp-tl-track { margin-left: auto !important; }
}

/* .bfp-btn-row wraps Track + Refresh. Desktop/tablet: display:contents keeps
   the head layout exactly as before. Mobile: the row is full width and the
   two buttons share it 50/50. */
.bfp-btn-row { display: contents; }
@media (max-width: 640px) {
	.bfp-btn-row {
		display: flex;
		width: 100%;
		gap: 10px;
		margin-top: 2px;
	}
	.bfp-btn-row .bfp-tl-track,
	.bfp-btn-row .bfp-tl-refresh {
		flex: 1 1 0 !important;
		width: auto !important;
		margin: 0 !important;
		height: 34px;
	}
}

/* tfoot rows (Subtotal / Total / Payment method / Actions): labels get the
   same 14px left inset as the product column so everything sits on ONE
   straight line, and top/bottom padding is tightened (rows were ~50-65px). */
body.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr th {
	padding: 8px 0 8px 14px !important;
	text-align: left !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr td {
	padding: 8px 14px !important;
}

/* re-assert at ID specificity — the (1,3,1) `#main-content … .shop_table td`
   rule (padding:14px !important) was beating the body-prefixed version */
#main-content .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table tfoot tr td {
	padding: 8px 14px !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table tfoot tr th {
	padding: 8px 0 8px 14px !important;
	text-align: left !important;
}

/* Mobile: the tbody cells have ZERO horizontal padding, so the tfoot rows
   must too — otherwise labels/values sit 14px inboard of the product row. */
@media (max-width: 640px) {
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table tfoot tr th { padding: 8px 0 !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table tfoot tr td { padding: 8px 0 !important; }
}

/* ===============================================================
   CUSTOMER CANCEL REQUEST UI (2026-11-21)
   Zone sits between the order table and the LIVE TRACKING section.
   =============================================================== */
.bfp-cancel-zone { margin: 14px 0 4px; }
.bfp-cancel-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 18px; border-radius: 10px; cursor: pointer;
	background: #fff; border: 1.5px solid #f3b9a6; color: #c23a12;
	font-size: 13px; font-weight: 800; font-family: inherit;
	transition: background .15s ease;
}
.bfp-cancel-btn:hover { background: #fff4ef; }
.bfp-cancel-btn svg { width: 15px; height: 15px; }

.bfp-cancel-banner {
	display: flex; gap: 10px; align-items: flex-start;
	border-radius: 12px; padding: 12px 14px; font-size: 13px;
	border: 1px solid;
}
.bfp-cancel-banner svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.bfp-cancel-banner strong { display: block; font-size: 13px; }
.bfp-cancel-banner span { display: block; color: #6f6660; font-size: 12.5px; margin-top: 2px; }
.bfp-cancel-banner.is-pending { background: #fff7e6; border-color: #f2ddad; color: #8a6d1a; }
.bfp-cancel-banner.is-declined { background: #fdeaea; border-color: #f2c1c1; color: #a33a2e; }
.bfp-cancel-banner.is-declined span { color: #a33a2e; }
.bfp-cancel-banner.is-cancelled { background: #e8f7ee; border-color: #bfe6cd; color: #176b3a; }
.bfp-cancel-banner.is-cancelled span { color: #3f7a52; }

/* --- Modal --- */
.bfp-cancel-modal { position: fixed; inset: 0; z-index: 999999; display: none; }
.bfp-cancel-modal.is-open { display: block; }
.bfp-cancel-modal__backdrop { position: absolute; inset: 0; background: rgba(23, 19, 15, .55); }
.bfp-cancel-modal__card {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: min(92vw, 430px); max-height: 86vh; overflow: auto;
	background: #fff; border-radius: 16px; padding: 20px;
	box-shadow: 0 20px 60px -20px rgba(28, 22, 18, .45);
}
.bfp-cancel-modal__close {
	position: absolute; top: 12px; right: 12px;
	border: 0; background: #f6f1ec; border-radius: 8px; width: 30px; height: 30px;
	display: inline-flex; align-items: center; justify-content: center;
	cursor: pointer; color: #6f6660; padding: 0;
}
.bfp-cancel-modal__close svg { width: 14px; height: 14px; }
.bfp-cancel-modal__title { margin: 0 0 6px; font-size: 17px; font-weight: 800; color: #17130f; }
.bfp-cancel-modal__sub { margin: 0 0 14px; font-size: 12.5px; color: #8a807a; line-height: 1.5; }
.bfp-cancel-modal__reasons { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bfp-reason {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; border: 1.5px solid #ece6e2; border-radius: 10px;
	cursor: pointer; font-size: 13px; font-weight: 600; color: #17130f;
	transition: border-color .12s ease, background .12s ease;
}
.bfp-reason:hover { border-color: #f3b9a6; background: #fffaf7; }
.bfp-reason input { accent-color: #f0400f; width: 15px; height: 15px; margin: 0; flex: 0 0 auto; }
.bfp-reason:has(input:checked) { border-color: #f0400f; background: #fff4ef; }
.bfp-cancel-modal__comment {
	width: 100%; box-sizing: border-box;
	border: 1.5px solid #ece6e2; border-radius: 10px;
	padding: 10px 12px; font-family: inherit; font-size: 13px;
	resize: vertical; color: #17130f; background: #fff;
}
.bfp-cancel-modal__comment:focus { outline: none; border-color: #f0400f; }
.bfp-cancel-modal__error { color: #c0392b; font-size: 12.5px; font-weight: 700; margin: 8px 0 0; }
.bfp-cancel-modal__foot { display: flex; gap: 10px; margin-top: 14px; }
.bfp-cancel-modal__foot button {
	flex: 1; height: 40px; border-radius: 10px;
	font-family: inherit; font-size: 13px; font-weight: 800;
	cursor: pointer; border: 0;
}
.bfp-cancel-modal__keep { background: #f6f1ec; color: #17130f; }
.bfp-cancel-modal__send { background: linear-gradient(135deg, #ff4b1f, #ff6a35); color: #fff; }
.bfp-cancel-modal__send:disabled { opacity: .6; cursor: wait; }

/* ===============================================================
   CANCEL SECTION v2 (2026-11-21): proper section head (divider +
   dot + uppercase title, like the LIVE TRACKING head) + modal
   button/responsive fixes. Overrides the v1 cancel styles.
   =============================================================== */
.bfp-cancel-zone { margin: 4px 0 10px; padding: 16px 0 6px; border-top: 1px solid #f2ece8; }
.bfp-cancel-head { display: flex; align-items: center; gap: 10px; }
.bfp-cancel-head .bfp-cancel-btn { margin-left: auto; }
.bfp-cancel-live {
	width: 8px; height: 8px; border-radius: 50%; background: #f0400f;
	box-shadow: 0 0 0 3px rgba(240, 64, 15, .15);
	flex: 0 0 auto;
}
.bfp-cancel-title {
	font-size: 13.5px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .5px; color: #17130f;
}
.bfp-cancel-head + .bfp-cancel-banner { margin-top: 12px; }
.bfp-cancel-zone .bfp-cancel-btn { padding: 8px 16px; height: 36px; font-size: 12.5px; }

/* --- Modal buttons: no wrapping, proper size --- */
.bfp-cancel-modal__foot { display: flex; gap: 10px; margin-top: 16px; }
.bfp-cancel-modal__foot button {
	flex: 1 1 0; min-width: 0; height: 44px; padding: 0 10px;
	border-radius: 10px; font-family: inherit; font-size: 12.5px;
	font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
	cursor: pointer; border: 0; white-space: nowrap;
	display: inline-flex; align-items: center; justify-content: center;
}
.bfp-cancel-modal__keep { background: #f6f1ec; color: #17130f; }
.bfp-cancel-modal__keep:hover { background: #efe7e0; }
.bfp-cancel-modal__send { background: linear-gradient(135deg, #ff4b1f, #ff6a35); color: #fff; }
.bfp-cancel-modal__send:hover { background: #f0400f; }
.bfp-cancel-modal__send:disabled { opacity: .6; cursor: wait; }

/* --- Modal responsive polish --- */
.bfp-cancel-modal__card { width: min(94vw, 440px); max-height: 88vh; }
@media (max-width: 380px) {
	.bfp-cancel-modal__card { padding: 16px; }
	.bfp-cancel-modal__title { font-size: 16px; }
	.bfp-cancel-modal__foot button { font-size: 11.5px; height: 42px; }
}
@media (min-width: 641px) {
	.bfp-cancel-modal__card { padding: 24px; }
	.bfp-cancel-modal__title { font-size: 18px; }
}

/* ===============================================================
   CANCEL v3 (2026-11-21): simple one-line text ending with a
   Cancel Order hyperlink; modal scrollbar hidden (still scrolls).
   =============================================================== */
.bfp-cancel-line {
	margin: 0; padding: 0;
	font-size: 13px; line-height: 1.55; color: #6f6660;
}
.bfp-cancel-line .bfp-cancel-link {
	color: #c23a12; font-weight: 800;
	text-decoration: underline; text-underline-offset: 2px;
	cursor: pointer;
}
.bfp-cancel-line .bfp-cancel-link:hover { color: #f0400f; }
.bfp-cancel-head, .bfp-cancel-btn { display: none !important; }

/* modal: hide the scrollbar, keep scrolling working */
.bfp-cancel-modal__card {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.bfp-cancel-modal__card::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* ===============================================================
   RETURN / REPLACE UI (2026-11-21) — reuses .bfp-cancel-modal styles
   (same class names) + adds item rows and type pills.
   =============================================================== */
.bfp-return-zone { margin: 4px 0 10px; padding: 0; border-top: 0; }
.bfp-return-line {
	margin: 0; padding: 0;
	font-size: 13px; line-height: 1.55; color: #6f6660;
}
.bfp-return-line .bfp-return-link {
	color: #1565c0; font-weight: 800;
	text-decoration: underline; text-underline-offset: 2px;
	cursor: pointer;
}
.bfp-return-line .bfp-return-link:hover { color: #0d47a1; }
.bfp-return-zone + .bfp-cancel-zone { margin-top: 10px; }
.bfp-cancel-zone + .bfp-return-zone { margin-top: 10px; }

/* item rows inside the return modal */
.bfp-return-modal__items { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.bfp-ritem {
	display: flex; align-items: center; gap: 10px;
	padding: 10px 12px; border: 1.5px solid #ece6e2; border-radius: 10px;
	cursor: pointer;
}
.bfp-ritem:hover { border-color: #9ec4f7; background: #f6faff; }
.bfp-ritem input { accent-color: #1565c0; width: 15px; height: 15px; margin: 0; flex: 0 0 auto; }
.bfp-ritem span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bfp-ritem strong { font-size: 13px; font-weight: 700; color: #17130f; }
.bfp-ritem em { font-size: 11.5px; font-style: normal; color: #8a807a; }
.bfp-ritem:has(input:checked) { border-color: #1565c0; background: #f6faff; }

/* return vs replace pills */
.bfp-return-modal__types { display: flex; gap: 10px; margin-bottom: 12px; }
.bfp-rtype {
	flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
	padding: 10px 12px; border: 1.5px solid #ece6e2; border-radius: 10px;
	cursor: pointer; font-size: 12.5px; font-weight: 800; color: #17130f;
	transition: border-color .12s ease, background .12s ease;
}
.bfp-rtype input { accent-color: #f0400f; width: 14px; height: 14px; margin: 0; }
.bfp-rtype:has(input:checked) { border-color: #f0400f; background: #fff4ef; }

/* QA fix (2026-11-21): the theme/WC drops the details-table tbody horizontal
   padding at ≤900px (not just ≤640px) — tfoot must match across that whole
   range or the Subtotal/Total/Payment/Actions rows sit 14px off. */
@media (max-width: 900px) {
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table tfoot tr th { padding: 8px 0 !important; }
	#main-content .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table tfoot tr td { padding: 8px 0 !important; }
}

/* Belt & suspenders: never show the "Order again" button on My Account pages. */
#main-content .woocommerce-MyAccount-content .order-again { display: none !important; }

/* ===============================================================
   (2026-11-21) Keep the ORIGINAL orders-table design unchanged.
   Two small additions only:
   1. a 2+ product order gets breathing room between previews;
   2. the order-workflow "Cancel order / Request return" shortcut
      renders EXACTLY like the Invoice outline button.
   =============================================================== */

/* 1. stacked product previews: same design, just separated */
#main-content .woocommerce-MyAccount-content .opp-order-preview + .opp-order-preview {
	margin-top: 10px !important;
}

/* 2. the extra action keeps the invoice-button outline look */
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-opp-cancel,
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-opp-return {
	background: #fff !important;
	color: #c23a12 !important;
	border-color: #ffd9c9 !important;
	box-shadow: none !important;
}
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-opp-cancel:hover,
#main-content .woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions .button.bfp-opp-return:hover {
	background: #fff4ef !important;
	color: #e2340c !important;
}

/* ===============================================================
   Multi-item order (2026-11-21): each product gets its OWN row —
   photo + title + description — inside the same order, keeps the
   existing table design, only View + Invoice buttons remain.
   =============================================================== */

/* Image column with 2+ products: images align with their product lines. */
#main-content .woocommerce-MyAccount-content td.bfp-col-image.bfp-img-stack {
	vertical-align: top !important;
	padding-top: 14px !important;
}
#main-content .woocommerce-MyAccount-content td.bfp-col-image.bfp-img-stack img {
	margin-bottom: 10px !important;
}

/* Product details cell: one block per product, separated by a hairline. */
#main-content .woocommerce-MyAccount-content td.bfp-multi-products {
	vertical-align: top !important;
}
#main-content .woocommerce-MyAccount-content td.bfp-multi-products .bfp-product-line {
	display: block !important;
	padding: 0 0 12px !important;
	margin: 0 0 12px !important;
	border-bottom: 1px dashed #f0e9e4 !important;
}
#main-content .woocommerce-MyAccount-content td.bfp-multi-products .bfp-product-line:last-child {
	border-bottom: 0 !important;
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}
#main-content .woocommerce-MyAccount-content td.bfp-multi-products .bfp-product-line img {
	display: none !important; /* the image column shows the photo */
}

/* ===============================================================
   VIEW-ORDER product table — premium multi-item layout (2026-11-22)
   Amazon/Flipkart-inspired. Scoped to the order-details table ONLY,
   so a single-product order keeps its exact current rendering.
   =============================================================== */

/* Row rhythm: every item gets its own clean line with a light divider. */
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr td {
	vertical-align: top !important;
	padding: 16px 14px !important;
	border-top: 1px solid #f2ece8 !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr:first-child td {
	border-top: 0 !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td.woocommerce-table__product-name {
	line-height: 1.5 !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td.woocommerce-table__product-name a {
	font-size: 14.5px !important;
	font-weight: 700 !important;
	color: #17130f !important;
	text-decoration: none !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td.woocommerce-table__product-name a:hover {
	color: #e2340c !important;
}
/* Product thumbnail inside the name cell. */
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td img {
	width: 64px !important;
	height: 64px !important;
	object-fit: cover !important;
	border-radius: 12px !important;
	border: 1px solid #f0e9e4 !important;
	margin: 0 12px 0 0 !important;
	float: left !important;
}
/* Quantity / item meta: quieter than the name. */
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td .product-quantity {
	font-weight: 700 !important;
	color: #6f6660 !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td small,
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td .wc-item-meta {
	display: block !important;
	color: #8a807a !important;
	font-size: 12px !important;
	margin-top: 3px !important;
}
/* Item amount column: prime alignment, tabular figures. */
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td.woocommerce-table__product-total {
	white-space: nowrap !important;
	font-variant-numeric: tabular-nums;
	font-weight: 700 !important;
}

/* Return/replace or any extra anchor inside the details card must not create
   a second invoice button (see fixInvoiceActions in bfp-myaccount.js). */
body.woocommerce-view-order .woocommerce-order-details > a.woocommerce-button.button {
	display: none !important;
}

/* ---- Mobile / tablet: stack the name above the amount, no overflow ---- */
@media (max-width: 640px) {
	body.woocommerce-view-order .woocommerce-order-details table.shop_table thead {
		display: none !important;
	}
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr {
		display: block !important;
		padding: 14px 0 !important;
		border-top: 1px solid #f2ece8 !important;
	}
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr:first-child {
		border-top: 0 !important;
	}
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td,
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td:last-child {
		display: block !important;
		width: auto !important;
		text-align: left !important;
		padding: 0 !important;
		border: 0 !important;
	}
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td.woocommerce-table__product-total {
		text-align: right !important;
		margin-top: 8px !important;
		font-size: 15px !important;
	}
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody td img {
		width: 56px !important;
		height: 56px !important;
		border-radius: 10px !important;
		margin-right: 10px !important;
	}
}

/* ===============================================================
   PREMIUM ORDER ITEMS (2026-11-22) — Amazon/Flipkart-inspired cards
   Built by enhanceOrderItems(). Values come straight from WooCommerce.
   =============================================================== */
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item {
	border-bottom: 1px solid #f2ece8 !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item:last-child {
	border-bottom: 0 !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item td {
	padding: 18px 14px !important;
	vertical-align: top !important;
	border: 0 !important;
}

/* ---- item block: thumb | main ---- */
.bfp-order-item {
	display: grid;
	grid-template-columns: 84px minmax(0, 1fr);
	column-gap: 16px;
	align-items: start;
}
.bfp-item-thumb {
	width: 84px;
	height: 84px;
	border-radius: 14px;
	overflow: hidden;
	background: #faf8f7;
	border: 1px solid #f0e9e4;
	display: flex;
	align-items: center;
	justify-content: center;
}
.bfp-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bfp-item-noimg { width: 26px; height: 26px; border-radius: 7px; background: #ece6e2; display: block; }

.bfp-item-main { min-width: 0; }
.bfp-item-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.bfp-item-title a { color: #17130f !important; text-decoration: none !important; }
.bfp-item-title a:hover { color: #e2340c !important; }
.bfp-item-desc {
	margin: 4px 0 0 !important;
	color: #8a807a !important;
	font-size: 12.5px !important;
	line-height: 1.5 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.bfp-item-metas { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.bfp-item-meta {
	display: inline-block;
	font-size: 11.5px;
	color: #6f6660;
	background: #f7f3f1;
	border: 1px solid #f0e9e4;
	border-radius: 999px;
	padding: 2px 9px;
}
.bfp-item-qtyline { margin-top: 8px; display: flex; align-items: center; gap: 7px; }
.bfp-item-qtylabel {
	font-size: 10.5px; font-weight: 800; letter-spacing: .5px;
	text-transform: uppercase; color: #9a938e;
}
.bfp-item-qty { font-size: 13.5px; font-weight: 800; color: #17130f; }
.bfp-item-unit { font-size: 11.5px; color: #9a938e; }
.bfp-item-unitsep { margin-right: 5px; }

/* ---- amount column ---- */
body.woocommerce-view-order .woocommerce-order-details table.shop_table td.bfp-item-total {
	text-align: right !important;
	vertical-align: top !important;
	white-space: nowrap !important;
}
body.woocommerce-view-order .woocommerce-order-details table.shop_table td.bfp-item-total .woocommerce-Price-amount {
	font-size: 16px !important;
	font-weight: 800 !important;
	color: #17130f !important;
}

/* Keep the summary block distinct from the item cards. */
body.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr th,
body.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot tr td {
	padding: 14px !important;
}

/* ---- mobile: thumb + text stay in two columns, qty below ---- */
@media (max-width: 640px) {
	.bfp-order-item { grid-template-columns: 68px minmax(0, 1fr); column-gap: 12px; }
	.bfp-item-thumb { width: 68px; height: 68px; border-radius: 12px; }
	.bfp-item-title { font-size: 14px; }
	.bfp-item-desc { -webkit-line-clamp: 3; font-size: 12px !important; }
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item td { padding: 14px 10px !important; }
}

/* ---- MOBILE FIX (2026-11-22): at ≤640px the two-column table squeezed the
   title and the amount overlapped it. Stack the row: product card first,
   amount below it, right-aligned — no more overlap. ---- */
@media (max-width: 640px) {
	body.woocommerce-view-order .woocommerce-order-details table.shop_table thead { display: none !important; }
	body.woocommerce-view-order .woocommerce-order-details table.shop_table,
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody,
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tfoot { display: block !important; width: 100% !important; }

	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item {
		display: block !important;
		padding: 16px 0 !important;
		border-bottom: 1px solid #f2ece8 !important;
	}
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item td {
		display: block !important;
		width: auto !important;
		max-width: none !important;
		padding: 0 !important;
		border: 0 !important;
		text-align: left !important;
	}
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item td.bfp-item-total {
		text-align: right !important;
		margin-top: 10px !important;
		padding-top: 9px !important;
		border-top: 1px dashed #f2ece8 !important;
	}
	.bfp-order-item { grid-template-columns: 64px minmax(0, 1fr) !important; column-gap: 12px !important; }
	.bfp-item-thumb { width: 64px !important; height: 64px !important; }
	.bfp-item-title { font-size: 13.5px !important; line-height: 1.4 !important; word-break: break-word; }
	.bfp-order-item { min-width: 0 !important; }
	.bfp-item-main { min-width: 0 !important; }
}

/* ---- MOBILE definitive override (2026-11-22): a higher-specificity rule
   elsewhere was keeping `tr.order_item` as a grid, so the amount sat beside
   the title instead of below it. These selectors outrank it. ---- */
@media (max-width: 640px) {
	#main-content .woocommerce-MyAccount-content body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item,
	body.woocommerce-view-order #main-content .woocommerce-MyAccount-content .woocommerce-order-details table.shop_table tbody tr.order_item,
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item,
	body.woocommerce-view-order table.shop_table tbody tr.order_item {
		display: block !important;
		grid-template-columns: none !important;
	}
	body.woocommerce-view-order .woocommerce-order-details table.shop_table tbody tr.order_item > td,
	body.woocommerce-view-order table.shop_table tbody tr.order_item > td {
		display: block !important;
		float: none !important;
		width: 100% !important;
		max-width: 100% !important;
	}
}

/* ===============================================================
   MOBILE ORDERS LIST — v6 FINAL (2026-11-22)
   Layout: images on their OWN full-width row (horizontal swipe when a
   order has several products, scrollbar hidden) → identity rows
   (label left / value right) → products → total + actions.
   Fixes: the multi-image column used to squeeze the text beside it.
   =============================================================== */
@media (max-width: 900px) {

	/* Card = single column; every section gets a full-width row. */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row {
		display: grid !important;
		grid-template-columns: minmax(0, 1fr) !important;
		grid-template-areas:
			"img"
			"id"
			"status"
			"ttl"
			"amt"
			"act" !important;
		row-gap: 10px !important;
		column-gap: 0 !important;
		align-items: start !important;
	}

	/* ---- 1. IMAGE ROW: all product photos, horizontally swipeable ---- */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image {
		grid-area: img !important;
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		display: flex !important;
		flex-direction: row !important;
		flex-wrap: nowrap !important;
		gap: 10px !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		-webkit-overflow-scrolling: touch !important;
		scrollbar-width: none !important;      /* Firefox */
		-ms-overflow-style: none !important;   /* old Edge */
		padding: 0 !important;
		margin: 0 !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image::-webkit-scrollbar {
		display: none !important;              /* Chrome/Safari */
		width: 0 !important;
		height: 0 !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image img,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image .bfp-noimg {
		flex: 0 0 auto !important;
		width: 76px !important;
		height: 76px !important;
		border-radius: 12px !important;
		object-fit: cover !important;
		margin: 0 !important;
	}
	/* A single product keeps the same tidy size (no stretch). */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image:not(.bfp-img-stack) {
		overflow: visible !important;
	}

	/* ---- 2. Identity + status: label left, value right (full width) ---- */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-mobile-id {
		grid-area: id !important;
		width: 100% !important; padding: 0 !important; margin: 0 !important;
		display: flex !important; flex-direction: column !important; gap: 7px !important;
		border-top: 1px solid #f2ece8 !important;
		padding-top: 11px !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-mid-row {
		display: flex !important; align-items: baseline !important;
		justify-content: space-between !important; gap: 14px !important; width: 100% !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-mid-value { margin-left: auto !important; text-align: right !important; }
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-status {
		grid-area: status !important;
		width: 100% !important; padding: 0 !important;
		display: flex !important; align-items: center !important;
		justify-content: space-between !important; gap: 14px !important;
	}
	#main-content .woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-status mark.order-status { margin-left: auto !important; }

	/* ---- 3. Products: full width, own lines ---- */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-opp-products {
		grid-area: ttl !important;
		width: 100% !important;
		border-top: 1px solid #f2ece8 !important;
		padding-top: 11px !important; margin: 0 !important;
	}
	#main-content .woocommerce-MyAccount-content .bfp-col-details .bfp-order-meta { display: none !important; }
	#main-content .woocommerce-MyAccount-content .opp-order-preview + .opp-order-preview {
		margin-top: 10px !important;
		padding-top: 10px !important;
		border-top: 1px dashed #f2ece8 !important;
	}

	/* ---- 4. Total (label left, amount right) + actions on one row ---- */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-total {
		grid-area: amt !important;
		width: 100% !important;
		border-top: 1px solid #f2ece8 !important;
		margin: 0 !important; padding: 11px 0 0 !important;
		display: flex !important; align-items: center !important;
		justify-content: space-between !important; gap: 14px !important;
	}
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-actions {
		grid-area: act !important;
		width: 100% !important;
		margin: 0 !important; padding: 0 !important;
		display: flex !important; align-items: center !important;
		justify-content: flex-end !important; gap: 10px !important;
	}

	/* ---- 5. Hide the dead desktop cells ---- */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-number,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-date { display: none !important; }
}

/* ===============================================================
   MOBILE — TOTAL + ACTIONS on ONE row (v7 fix, 2026-11-22)
   v6 pushed them onto separate rows; the client's earlier-approved
   design keeps "TOTAL AMOUNT  ₹3,896  [👁][🧾]" on a single line.
   =============================================================== */
@media (max-width: 900px) {

	/* Put the two cells back on one grid row: amt | act */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row {
		grid-template-columns: minmax(0, 1fr) auto !important;
		grid-template-areas:
			"img    img"
			"id     id"
			"status status"
			"ttl    ttl"
			"amt    act" !important;
		row-gap: 10px !important;
		column-gap: 12px !important;
	}
	/* Image + text sections span the full width. */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-col-image,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.bfp-mobile-id,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-status,
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-opp-products {
		grid-column: 1 / -1 !important;
	}

	/* Total cell: label + amount, aligned to the row bottom (left side). */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-total {
		grid-area: amt !important;
		width: auto !important;
		border-top: 1px solid #f2ece8 !important;
		margin: 0 !important; padding: 10px 0 0 !important;
		display: flex !important; flex-direction: column !important;
		align-items: flex-start !important; gap: 2px !important;
		align-self: end !important;
	}
	#main-content .woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-total::before {
		content: "Total Amount" !important;
		font-size: 10.5px !important; font-weight: 800 !important;
		letter-spacing: .5px; text-transform: uppercase; color: #9a938e !important;
	}
	#main-content .woocommerce-MyAccount-content td.woocommerce-orders-table__cell-order-total .woocommerce-Price-amount {
		font-size: 18px !important; font-weight: 800 !important;
	}

	/* Actions cell: right side of the SAME row, vertically aligned. */
	#main-content .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr.woocommerce-orders-table__row > td.woocommerce-orders-table__cell-order-actions {
		grid-area: act !important;
		width: auto !important;
		border-top: 1px solid #f2ece8 !important;
		margin: 0 !important; padding: 10px 0 0 !important;
		display: flex !important; align-items: center !important;
		justify-content: flex-end !important; gap: 10px !important;
		align-self: end !important;
	}
}


/* =========================================================
   Live-tracking stepper: keep each step a readable width and
   allow horizontal scrolling, instead of squeezing every step
   into a narrow column (which forced text onto many lines).
   ========================================================= */
.bfp-timeline.is-horizontal {
	overflow-x: auto !important;
	overflow-y: hidden !important;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.bfp-timeline.is-horizontal .bfp-tl-steps {
	flex-wrap: nowrap !important;
	min-width: max-content !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps li {
	flex: 0 0 150px !important;      /* fixed readable width per step */
	width: 150px !important;
	min-width: 150px !important;
	padding: 0 10px 0 0 !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps li:last-child { padding-right: 0 !important; }
.bfp-timeline.is-horizontal .bfp-tl-label { font-size: 12.5px; line-height: 1.3; }
.bfp-timeline.is-horizontal .bfp-tl-desc { -webkit-line-clamp: 3; }
/* Slightly thinner scrollbar on webkit browsers */
.bfp-timeline.is-horizontal::-webkit-scrollbar { height: 6px; }
.bfp-timeline.is-horizontal::-webkit-scrollbar-thumb { background: #e0d4ca; border-radius: 6px; }
.bfp-timeline.is-horizontal::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 640px) {
	.bfp-timeline.is-horizontal .bfp-tl-steps li {
		flex-basis: 132px !important;
		width: 132px !important;
		min-width: 132px !important;
	}
}
* =========================================================
   Stepper v2: wider steps so Title + Description + Time each
   fit on ONE line; horizontal scrollbar; and auto-centre the
   CURRENT step on load (user can still scroll freely).
   ========================================================= */
.bfp-timeline.is-horizontal .bfp-tl-steps li {
	flex: 0 0 210px !important;
	width: 210px !important;
	min-width: 210px !important;
	padding: 0 14px 0 0 !important;
}
.bfp-timeline.is-horizontal .bfp-tl-label {
	font-size: 13px !important;
	line-height: 1.3 !important;
	white-space: normal !important;
}
.bfp-timeline.is-horizontal .bfp-tl-desc {
	font-size: 12px !important;
	line-height: 1.35 !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	display: block !important;
	-webkit-line-clamp: unset !important;
}
.bfp-timeline.is-horizontal .bfp-tl-time {
	font-size: 11.5px !important;
	white-space: nowrap !important;
}
@media (max-width: 640px) {
	.bfp-timeline.is-horizontal .bfp-tl-steps li {
		flex-basis: 180px !important;
		width: 180px !important;
		min-width: 180px !important;
	}
}


/* =========================================================
   Stepper v3: the STEPS LIST is the scroll container (header
   stays fixed). Wide steps → 1-line title/desc/time + scrollbar.
   ========================================================= */
.bfp-timeline.is-horizontal {
	overflow: visible !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	padding-bottom: 10px !important;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	scroll-behavior: smooth;
}
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar { height: 7px; }
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar-thumb { background: #e0d4ca; border-radius: 7px; }
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar-track { background: #f6efe9; border-radius: 7px; }


/* =========================================================
   Stepper v4 (clean, final)
   - steps list: padding-top 15px
   - step width 200px so title/desc/time never cut
   - horizontal scroll; current step centred by default
   ========================================================= */
.bfp-timeline.is-horizontal {
	overflow: visible !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps {
	display: flex !important;
	flex-wrap: nowrap !important;
	overflow-x: auto !important;
	overflow-y: hidden !important;
	width: 100% !important;
	min-width: 0 !important;
	max-width: 100% !important;
	padding: 15px 0 10px 0 !important;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar { height: 7px; }
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar-thumb { background: #e0d4ca; border-radius: 7px; }
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar-track { background: #f6efe9; border-radius: 7px; }
.bfp-timeline.is-horizontal .bfp-tl-steps li {
	flex: 0 0 200px !important;
	width: 200px !important;
	min-width: 200px !important;
	max-width: 200px !important;
	padding: 0 14px 0 0 !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps li:last-child { padding-right: 0 !important; }
.bfp-timeline.is-horizontal .bfp-tl-label {
	font-size: 13px !important;
	line-height: 1.3 !important;
	white-space: normal !important;
	word-break: break-word !important;
}
.bfp-timeline.is-horizontal .bfp-tl-desc {
	font-size: 12px !important;
	line-height: 1.35 !important;
	white-space: normal !important;
	overflow: visible !important;
	text-overflow: clip !important;
	display: block !important;
	-webkit-line-clamp: unset !important;
	color: #8a817b !important;
}
.bfp-timeline.is-horizontal .bfp-tl-time {
	font-size: 11.5px !important;
	white-space: nowrap !important;
}
@media (max-width: 640px) {
	.bfp-timeline.is-horizontal .bfp-tl-steps li {
		flex-basis: 180px !important;
		width: 180px !important;
		min-width: 180px !important;
		max-width: 180px !important;
	}
}
   Stepper v5: hide the horizontal scrollbar entirely, but keep
   the steps horizontally scrollable (drag / trackpad / wheel).
   ========================================================= */
.bfp-timeline.is-horizontal .bfp-tl-steps {
	scrollbar-width: none !important;          /* Firefox */
	-ms-overflow-style: none !important;       /* old Edge/IE */
	padding-bottom: 4px !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar {
	display: none !important;                  /* Chrome/Safari/Edge */
	width: 0 !important;
	height: 0 !important;
}
   Stepper v6 (final): scrollbar hidden by default so the row
   looks clean, but the list stays swipeable/scrollable and the
   scrollbar softly appears on hover — a hint that there is more.
   ========================================================= */
.bfp-timeline.is-horizontal .bfp-tl-steps {
	scrollbar-width: thin !important;              /* Firefox: thin, subtle */
	scrollbar-color: transparent transparent !important;
	scroll-behavior: smooth;
}
.bfp-timeline.is-horizontal .bfp-tl-steps:hover {
	scrollbar-color: #e0d4ca #f6efe9 !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar {
	height: 7px !important;
	background: transparent !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar-track {
	background: transparent !important;
	border-radius: 7px !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps::-webkit-scrollbar-thumb {
	background: transparent !important;
	border-radius: 7px !important;
	transition: background .2s ease !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps:hover::-webkit-scrollbar-thumb {
	background: #e0d4ca !important;
}
.bfp-timeline.is-horizontal .bfp-tl-steps:active::-webkit-scrollbar-thumb {
	background: #d3c3b6 !important;
}
