/* My account: dashboard, orders, addresses, account details, login/register, view order.
   WooCommerce's legacy stylesheets are not loaded here; presentation only (markup and logic are WooCommerce's). */

.bb-page--woo {
	padding-block: clamp(28px, 4vw, 64px);
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper:empty {
	display: none;
}

/* ---------- Layout: menu | content ---------- */
.woocommerce-account .woocommerce {
	display: block;
}

@media (min-width: 900px) {
	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) {
		display: grid;
		grid-template-columns: 260px minmax(0, 1fr);
		gap: 0 32px;
		align-items: start;
	}

	.woocommerce-account .woocommerce:has(.woocommerce-MyAccount-navigation) > .woocommerce-notices-wrapper {
		grid-column: 1 / -1;
	}
}

.woocommerce-account .woocommerce-notices-wrapper {
	margin-bottom: 20px;
}

/* ---------- Menu ---------- */
.woocommerce-MyAccount-navigation ul {
	background: #fff;
	border-top: 3px solid var(--bb-orange);
}

.woocommerce-MyAccount-navigation li + li {
	border-top: 1px solid #eee;
}

.woocommerce-MyAccount-navigation a {
	display: block;
	padding: 15px 20px;
	border-left: 4px solid transparent;
	font-family: var(--bb-font-head);
	font-size: 19px;
	font-weight: 600;
	transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.woocommerce-MyAccount-navigation a:hover {
	background: #fafafa;
	color: var(--bb-orange);
}

.woocommerce-MyAccount-navigation .is-active a {
	border-left-color: var(--bb-orange);
	background: #fff6f3;
	color: var(--bb-orange);
}

/* Log out: same look as the other items, set apart by a heavier divider above it. */
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout {
	border-top: 2px solid #eee;
}

@media (max-width: 899px) {
	.woocommerce-MyAccount-navigation {
		margin-bottom: 20px;
	}

	/* A scrolling row of pills instead of a tall list */
	.woocommerce-MyAccount-navigation ul {
		display: flex;
		gap: 8px;
		overflow-x: auto;
		padding: 0 0 4px;
		background: none;
		border-top: 0;
		scrollbar-width: none;
	}

	.woocommerce-MyAccount-navigation li + li {
		border-top: 0;
	}

	.woocommerce-MyAccount-navigation li {
		flex: none;
	}

	.woocommerce-MyAccount-navigation a {
		padding: 10px 18px;
		border: 1px solid #d8d8d8;
		border-radius: 999px;
		background: #fff;
		font-size: 17px;
		white-space: nowrap;
	}

	.woocommerce-MyAccount-navigation .is-active a {
		border-color: var(--bb-orange);
		background: var(--bb-orange);
		color: #fff;
	}
}

/* ---------- Content card ---------- */
.woocommerce-MyAccount-content {
	min-width: 0;
	padding: clamp(20px, 3vw, 34px);
	background: #fff;
	border-top: 3px solid var(--bb-orange);
}

.woocommerce-MyAccount-content > p:first-child {
	margin-top: 0;
}

.woocommerce-MyAccount-content p {
	margin-block: 0 14px;
	line-height: 1.6;
}

.woocommerce-MyAccount-content a:not(.button):not(.woocommerce-button) {
	color: var(--bb-orange);
	text-decoration: underline;
}

.woocommerce-MyAccount-content h2,
.woocommerce-MyAccount-content h3,
.woocommerce-column__title {
	margin-bottom: 16px;
	font-size: 28px;
}

/* ---------- Buttons ---------- */
.woocommerce-account .button,
.woocommerce-account button.button,
.woocommerce-account .woocommerce-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0 26px;
	border: 0;
	background: var(--bb-orange);
	color: #fff !important;
	font-family: var(--bb-font-head);
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none !important;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s;
}

.woocommerce-account .button:hover,
.woocommerce-account .woocommerce-button:hover {
	background: var(--bb-orange-dark);
}

/* ---------- Orders table ---------- */
.woocommerce-orders-table,
.woocommerce-table--order-details {
	width: 100%;
	border-collapse: collapse;
}

.woocommerce-orders-table thead th {
	padding: 0 14px 12px;
	border-bottom: 2px solid #eee;
	color: #888;
	font-family: var(--bb-font-head);
	font-size: 14px;
	letter-spacing: 0.05em;
	text-align: left;
	text-transform: uppercase;
}

.woocommerce-orders-table td,
.woocommerce-orders-table tbody th {
	padding: 16px 14px;
	border-bottom: 1px solid #eee;
	text-align: left;
	vertical-align: middle;
}

.woocommerce-orders-table__cell-order-number a {
	font-family: var(--bb-font-head);
	font-size: 19px;
	font-weight: 700;
}

.woocommerce-orders-table__cell-order-total {
	font-family: var(--bb-font-head);
	font-size: 18px;
}

/* Status as a coloured tag (the row carries the status class) */
.woocommerce-orders-table__cell-order-status {
	font-family: var(--bb-font-head);
	font-size: 16px;
}

.woocommerce-orders-table__cell-order-status::before {
	content: "";
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 8px;
	border-radius: 50%;
	background: #e0a100;
}

.woocommerce-orders-table__row--status-completed .woocommerce-orders-table__cell-order-status::before {
	background: #1a9c2f;
}

.woocommerce-orders-table__row--status-cancelled .woocommerce-orders-table__cell-order-status::before,
.woocommerce-orders-table__row--status-failed .woocommerce-orders-table__cell-order-status::before,
.woocommerce-orders-table__row--status-refunded .woocommerce-orders-table__cell-order-status::before {
	background: #d62020;
}

.woocommerce-orders-table .woocommerce-button.view {
	min-height: 38px;
	padding: 0 18px;
	font-size: 16px;
}

.woocommerce-pagination {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin-top: 22px;
}

.woocommerce-info.woocommerce-message {
	margin-top: 0;
}

/* Phones: each order is a card */
@media (max-width: 720px) {
	.woocommerce-orders-table thead {
		display: none;
	}

	.woocommerce-orders-table,
	.woocommerce-orders-table tbody {
		display: block;
	}

	.woocommerce-orders-table tr {
		display: grid;
		gap: 4px;
		margin-bottom: 14px;
		padding: 14px 16px;
		border: 1px solid #e6e6e6;
	}

	.woocommerce-orders-table td,
	.woocommerce-orders-table tbody th {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		padding: 4px 0;
		border: 0;
	}

	.woocommerce-orders-table td::after {
		content: none;
	}

	.woocommerce-orders-table td[data-title]::before {
		content: attr(data-title);
		color: #888;
		font-size: 14px;
	}

	.woocommerce-orders-table__cell-order-status::before {
		display: none;
	}
}

/* ---------- Addresses: two cards ---------- */
.woocommerce-Addresses {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.woocommerce-Addresses .col-1,
.woocommerce-Addresses .col-2,
.u-columns .u-column1,
.u-columns .u-column2 {
	float: none;
	width: auto;
}

.woocommerce-Address {
	padding: 22px 24px;
	border: 1px solid #e6e6e6;
	background: #fafafa;
}

.woocommerce-Address-title {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 14px;
}

.woocommerce-Address-title h2,
.woocommerce-Address-title h3 {
	margin: 0;
	font-size: 24px;
}

.woocommerce-Address address {
	font-style: normal;
	line-height: 1.7;
}

/* ---------- Forms (account details, addresses, login, register, lost password) ---------- */
.woocommerce-account form .form-row,
.woocommerce-account .woocommerce-form-row {
	margin: 0 0 18px;
}

.woocommerce-account form .form-row-first,
.woocommerce-account form .form-row-last {
	float: left;
	width: calc(50% - 8px);
}

.woocommerce-account form .form-row-first {
	margin-right: 16px;
}

.woocommerce-account form .form-row-wide,
.woocommerce-account form .clear {
	clear: both;
}

.woocommerce-account form::after {
	content: "";
	display: table;
	clear: both;
}

@media (max-width: 560px) {
	.woocommerce-account form .form-row-first,
	.woocommerce-account form .form-row-last {
		float: none;
		width: 100%;
		margin-right: 0;
	}
}

.woocommerce-account form label {
	display: block;
	margin-bottom: 7px;
	font-family: var(--bb-font-head);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.2;
}

.woocommerce-account abbr.required,
.woocommerce-account .required {
	color: var(--bb-sale);
	text-decoration: none;
}

.woocommerce-account input.input-text,
.woocommerce-account input.woocommerce-Input,
.woocommerce-account textarea,
.woocommerce-account select {
	display: block;
	width: 100%;
	height: 52px;
	padding: 0 14px;
	border: 1px solid #cfcfcf;
	border-radius: 0;
	background: #fff;
	color: var(--bb-text);
	font-family: var(--bb-font-body);
	font-size: 16px;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.woocommerce-account input.input-text:focus,
.woocommerce-account input.woocommerce-Input:focus,
.woocommerce-account select:focus,
.woocommerce-account textarea:focus {
	border-color: var(--bb-orange);
	box-shadow: 0 0 0 3px rgba(243, 58, 10, 0.15);
	outline: none;
}

.woocommerce-account .woocommerce-input-wrapper {
	display: block;
}

.woocommerce-account form em,
.woocommerce-account form .description,
.woocommerce-account form span em {
	display: block;
	margin-top: 6px;
	color: #777;
	font-size: 14px;
	font-style: normal;
}

.woocommerce-account fieldset {
	margin: 24px 0 8px;
	padding: 0;
	border: 0;
}

.woocommerce-account fieldset legend {
	width: 100%;
	margin-bottom: 18px;
	padding: 18px 0 10px;
	border-bottom: 1px solid #eee;
	font-family: var(--bb-font-head);
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
}

.woocommerce-account .password-input {
	position: relative;
	display: block;
}

.woocommerce-account .password-input input {
	padding-right: 52px;
}

.woocommerce-account .show-password-input {
	position: absolute;
	top: 0;
	right: 0;
	width: 52px;
	height: 52px;
	border: 0;
	background: none;
	cursor: pointer;
}

.woocommerce-account input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	accent-color: var(--bb-orange);
	vertical-align: middle;
}

.woocommerce-form__label-for-checkbox {
	display: inline-flex !important;
	align-items: center;
	font-family: var(--bb-font-body) !important;
	font-size: 15px !important;
	font-weight: 400 !important;
}

/* Country / state dropdowns */
.woocommerce-account .select2-container .select2-selection--single {
	display: flex;
	align-items: center;
	height: 52px;
	border: 1px solid #cfcfcf;
	border-radius: 0;
	background: #fff;
}

.woocommerce-account .select2-container .select2-selection__rendered {
	padding: 0 14px;
	color: var(--bb-text);
	font-size: 16px;
	line-height: 50px;
}

.woocommerce-account .select2-container .select2-selection__arrow {
	top: 0;
	right: 8px;
	height: 50px;
}

/* ---------- Login / register (logged out) ---------- */
#customer_login {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	max-width: 960px;
	margin-inline: auto;
}

#customer_login:not(:has(.u-column2)) {
	max-width: 480px;
}

#customer_login > div {
	padding: clamp(22px, 3vw, 34px);
	background: #fff;
	border-top: 3px solid var(--bb-orange);
}

#customer_login h2 {
	margin-bottom: 20px;
	font-size: 30px;
}

.woocommerce-form-login,
.woocommerce-form-register,
.woocommerce-ResetPassword {
	margin: 0;
	padding: 0;
	border: 0;
}

.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
	width: 100%;
	min-height: 54px;
	margin-top: 6px;
}

.woocommerce-LostPassword {
	margin: 14px 0 0;
	text-align: center;
}

.woocommerce-LostPassword a {
	color: var(--bb-orange);
	text-decoration: underline;
}

.woocommerce-ResetPassword,
.woocommerce-account .woocommerce > form.lost_reset_password {
	max-width: 520px;
	margin-inline: auto;
	padding: 30px;
	background: #fff;
	border-top: 3px solid var(--bb-orange);
}

/* ---------- Order details (view order) ---------- */
.woocommerce-order-details,
.woocommerce-customer-details {
	margin-top: 24px;
}

mark.order-number,
mark.order-date,
mark.order-status {
	background: none;
	color: var(--bb-orange);
	font-weight: 700;
}

table.woocommerce-table--order-details th,
table.woocommerce-table--order-details td {
	padding: 12px 0;
	border-bottom: 1px solid #eee;
	text-align: left;
}

table.woocommerce-table--order-details td:last-child,
table.woocommerce-table--order-details th:last-child {
	text-align: right;
}

.woocommerce-customer-details address {
	padding: 18px 20px;
	border: 1px solid #e6e6e6;
	background: #fafafa;
	font-style: normal;
	line-height: 1.7;
}
