/* WooCommerce / cart / checkout — Cafe Bloom */

.woocommerce-notices-wrapper,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
	margin: 12px 16px;
	border-radius: 12px;
	padding: 12px 14px;
	list-style: none;
}

.woocommerce-message {
	background: var(--cb-highlight);
	color: var(--cb-primary);
	border: 1px solid color-mix(in srgb, var(--cb-primary) 25%, white);
}

.woocommerce-error {
	background: #fff1f1;
	color: var(--cb-danger);
	border: 1px solid #f0c4c4;
}

/* Cart */
.woocommerce-cart .cb-woo-page {
	max-width: 720px;
	margin: 0 auto;
	padding: 8px 0 28px;
	width: 100%;
}

.woocommerce-checkout .cb-woo-page,
.cb-checkout-flow .cb-woo-page,
body.woocommerce-checkout .cb-page {
	max-width: 100%;
	margin: 0 auto;
	padding: 8px 16px calc(28px + var(--cb-safe-bottom));
	width: 100%;
	box-sizing: border-box;
}

body.woocommerce-checkout:not(.woocommerce-order-received) .cb-page {
	max-width: 100%;
	width: 100%;
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce {
	max-width: 100%;
	margin: 0;
	float: none !important;
	width: 100% !important;
}

.cb-cart-app {
	width: 100%;
	max-width: 720px;
	margin: 0 auto;
	padding: 8px 16px calc(28px + var(--cb-safe-bottom));
	box-sizing: border-box;
}

.cb-cart-app__head {
	padding: 8px 0 12px;
}

.cb-cart-app__head h1 {
	margin: 0 0 8px;
	font-family: var(--cb-font-display);
	font-size: 1.75rem;
	font-weight: 700;
}

.cb-cart-items {
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.cb-cart-card {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr) auto;
	gap: 12px;
	padding: 12px;
	border-radius: var(--cb-radius);
	border: 1px solid var(--cb-border);
	background: var(--cb-surface);
	box-shadow: var(--cb-shadow-sm);
	width: 100%;
	box-sizing: border-box;
}

.cb-cart-card__img {
	border-radius: 12px;
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--cb-bg);
}

.cb-cart-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cb-cart-card__info {
	min-width: 0;
}

.cb-cart-card__info strong,
.cb-cart-card__info strong a {
	display: block;
	margin-bottom: 4px;
	color: var(--cb-text);
	font-weight: 700;
}

.cb-cart-card__price {
	font-weight: 700;
	margin: 6px 0;
	color: var(--cb-primary);
}

.cb-cart-card__actions {
	display: flex;
	gap: 12px;
	font-size: 13px;
}

.cb-cart-card__actions a,
.cb-cart-card__actions button {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--cb-muted);
	font: inherit;
}

.cb-cart-card__actions svg {
	width: 14px;
	height: 14px;
}

.cb-link-danger {
	color: var(--cb-danger) !important;
}

.cb-qty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	background: var(--cb-action);
	color: #fff;
	border-radius: 999px;
	padding: 8px 6px;
	min-width: 40px;
	align-self: center;
	box-shadow: 0 6px 16px rgba(var(--cb-action-rgb), 0.28);
}

.cb-qty button {
	width: 28px;
	height: 28px;
	border: 0;
	background: transparent;
	color: #fff;
	display: grid;
	place-items: center;
	cursor: pointer;
	padding: 0;
}

.cb-qty svg {
	width: 14px;
	height: 14px;
}

.cb-qty span {
	font-weight: 700;
	font-size: 15px;
}

.cb-promo-box {
	margin: 18px 0;
	padding: 14px;
	border: 1px dashed var(--cb-border);
	border-radius: var(--cb-radius);
	background: var(--cb-surface);
}

.cb-promo-box h3 {
	margin: 0 0 10px;
	font-size: 1rem;
}

.cb-coupon-form {
	display: flex;
	gap: 8px;
}

.cb-coupon-form .cb-btn--ghost,
.cb-promo-box .cb-btn--ghost {
	background: var(--cb-action);
	border-color: var(--cb-action);
	color: #fff;
}

.cb-coupon-form .cb-btn--ghost:hover,
.cb-promo-box .cb-btn--ghost:hover {
	filter: brightness(1.05);
}

.cb-coupon-form input,
.cb-promo-box > input {
	flex: 1;
	min-height: 44px;
	border: 1px solid var(--cb-border);
	border-radius: 10px;
	padding: 0 12px;
	width: 100%;
	background: var(--cb-bg);
}

/* Checkout coupon — collapsed text, expands to field */
.woocommerce-checkout .woocommerce-form-coupon-toggle {
	display: none !important;
}

.cb-checkout-coupon {
	width: 100%;
	max-width: none;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	box-sizing: border-box;
}

.cb-checkout-coupon__toggle {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	font: inherit;
	text-align: left;
	color: var(--cb-primary);
	font-weight: 700;
	font-size: 0.98rem;
}

.cb-checkout-coupon__toggle span {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--cb-muted);
}

.cb-checkout-coupon__toggle:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.cb-checkout-coupon.is-open .cb-checkout-coupon__toggle span {
	display: none;
}

.cb-checkout-coupon__panel {
	margin-top: 12px;
	padding: 14px 16px;
	border: 1px solid var(--cb-border);
	border-radius: 16px;
	background: var(--cb-surface, #fff);
	box-shadow: var(--cb-shadow-sm);
}

.cb-checkout-coupon__panel[hidden] {
	display: none !important;
}

.cb-checkout-coupon__hint {
	margin: 0 0 10px;
	font-size: 0.85rem;
	color: var(--cb-muted);
}

.cb-checkout-coupon__form,
.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 10px;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.cb-checkout-coupon__form .form-row,
.woocommerce-checkout form.checkout_coupon .form-row {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 0 !important;
}

.cb-checkout-coupon__form input.input-text,
.woocommerce-checkout form.checkout_coupon input.input-text {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	min-height: 48px;
	margin: 0 !important;
	border: 1px solid var(--cb-border) !important;
	border-radius: 12px !important;
	padding: 0 14px !important;
	background: var(--cb-bg) !important;
	color: var(--cb-text);
	font: inherit;
	box-shadow: none !important;
}

.cb-checkout-coupon__form .cb-btn,
.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"] {
	flex: 0 0 auto;
	min-height: 48px;
	min-width: 96px;
	padding: 0 18px !important;
	border: 0 !important;
	border-radius: 12px !important;
	background: var(--cb-action) !important;
	color: #fff !important;
	font-weight: 700 !important;
	cursor: pointer;
	white-space: nowrap;
}

.cb-checkout-coupon__form .cb-btn:hover,
.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"]:hover {
	filter: brightness(1.05);
}

.woocommerce-checkout form.checkout_coupon .clear {
	display: none;
}

@media (max-width: 480px) {
	.cb-checkout-coupon__form,
	.woocommerce-checkout form.checkout_coupon.woocommerce-form-coupon {
		flex-direction: column;
	}

	.cb-checkout-coupon__form .cb-btn,
	.woocommerce-checkout form.checkout_coupon button[name="apply_coupon"] {
		width: 100%;
	}
}

.cb-totals {
	margin: 8px 0 0;
	padding: 4px 0 0;
	border-top: 1px solid var(--cb-border);
}

.cb-totals__row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid var(--cb-border);
	color: var(--cb-muted);
	font-size: 14px;
}

.cb-totals__row--total {
	color: var(--cb-text);
	font-weight: 700;
	font-size: 1.05rem;
	border-bottom: 0;
}

.cb-bottom-cta {
	position: fixed;
	left: 50%;
	transform: translateX(-50%);
	bottom: calc(12px + var(--cb-safe-bottom));
	z-index: 40;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	background: var(--cb-action);
	color: #fff !important;
	padding: 16px 18px;
	border-radius: var(--cb-radius);
	font-weight: 700;
	margin: 0;
	box-shadow: 0 12px 30px rgba(var(--cb-action-rgb), 0.35);
	width: min(448px, calc(100% - 32px));
	box-sizing: border-box;
}

/* Checkout */
.cb-checkout-app {
	padding: 8px 0 24px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.cb-checkout-top {
	margin-bottom: 4px;
}

.cb-checkout-app .cb-from-branch {
	padding: 0 0 8px;
}

.cb-checkout-grid {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cb-checkout-grid__main {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
}

.cb-checkout-grid__aside {
	min-width: 0;
}

.cb-checkout-grid__main > #cb-toggle-details {
	margin: 0;
}

.cb-pay-methods {
	padding: 8px 0 8px;
}

.cb-pay-methods h2 {
	margin: 0 0 12px;
	font-size: 1.25rem;
}

.cb-pay-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.cb-pay-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 100px;
	border: 1.5px solid var(--cb-border);
	border-radius: var(--cb-radius);
	background: var(--cb-surface);
	cursor: pointer;
	font-weight: 700;
	color: var(--cb-muted);
	box-shadow: var(--cb-shadow-sm);
}

.cb-pay-option svg {
	width: 28px;
	height: 28px;
}

.cb-pay-option.is-active {
	background: var(--cb-primary);
	border-color: var(--cb-primary);
	color: #fff;
}

.cb-bill {
	margin: 8px 0 24px;
	padding: 20px 18px 22px;
	width: 100%;
	max-width: none;
	background: #fff;
	border: 1px solid var(--cb-border);
	border-radius: 20px;
	box-shadow: var(--cb-shadow-sm);
	box-sizing: border-box;
}

.cb-bill > h2 {
	margin: 0 0 16px;
	font-family: var(--cb-font-display);
	font-size: 1.35rem;
	color: var(--cb-primary);
}

.cb-bill-table,
.cb-bill .shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
	margin: 0 0 16px;
}

.cb-bill-table thead th {
	padding: 0 0 10px;
	border-bottom: 1px solid var(--cb-border);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cb-muted);
	background: transparent;
}

.cb-bill-table thead th.product-name,
.cb-bill-table tbody td.product-name {
	text-align: left !important;
	width: auto;
}

.cb-bill-table thead th.product-total,
.cb-bill-table tbody td.product-total {
	text-align: right !important;
	white-space: nowrap;
	width: 1%;
	vertical-align: middle;
	font-weight: 700;
	color: var(--cb-primary);
	padding-left: 12px;
}

.cb-bill-table tbody td {
	padding: 14px 0;
	border-bottom: 1px solid var(--cb-border);
	vertical-align: middle;
	background: transparent;
}

.cb-bill-table tbody tr:last-child td {
	border-bottom: 0;
}

.cb-bill-line {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
}

.cb-bill-line__media {
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--cb-bg);
}

.cb-bill-line__media img,
.cb-bill-thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cb-bill-line__meta {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cb-bill-line__name {
	font-weight: 700;
	color: var(--cb-text);
	line-height: 1.25;
	font-size: 0.98rem;
}

.cb-bill-line__qty {
	font-size: 0.85rem;
	color: var(--cb-muted);
	font-weight: 500;
}

.cb-bill-table tfoot th,
.cb-bill-table tfoot td {
	padding: 10px 0;
	border-top: 0;
	border-bottom: 0;
	font-weight: 500;
	background: transparent;
}

.cb-bill-table tfoot th {
	text-align: left !important;
	color: var(--cb-muted);
	font-weight: 500;
}

.cb-bill-table tfoot td {
	text-align: right !important;
	color: var(--cb-text);
	font-weight: 600;
	white-space: nowrap;
}

.cb-bill-table tfoot tr:first-child th,
.cb-bill-table tfoot tr:first-child td {
	padding-top: 14px;
	border-top: 1px solid var(--cb-border);
}

.cb-bill-table tfoot tr.cb-bill-reward td {
	padding-top: 0 !important;
	border-top: 0 !important;
}

.cb-bill-table tfoot tr.cart-subtotal th,
.cb-bill-table tfoot tr.cart-subtotal td {
	padding-top: 14px;
	border-top: 1px solid var(--cb-border);
}

.cb-bill-table tfoot .order-total th,
.cb-bill-table tfoot .order-total td {
	padding-top: 14px;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--cb-text);
	border-top: 1px dashed var(--cb-border);
}

.cb-bill-table tfoot .order-total td {
	color: var(--cb-primary);
	font-size: 1.2rem;
}

.cb-bill-reward td {
	padding: 0 0 12px !important;
	border: 0 !important;
}

.cb-bill-reward__box {
	padding: 12px 14px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--cb-primary) 10%, #fff);
	border: 1px solid color-mix(in srgb, var(--cb-primary) 28%, transparent);
	color: var(--cb-primary);
	font-size: 13px;
	line-height: 1.4;
}

.cb-bill-table tfoot .cart-discount th,
.cb-bill-table tfoot .cart-discount td {
	color: var(--cb-primary);
	font-weight: 700;
}

.cb-bill #payment,
.cb-payment {
	background: transparent;
	border: 0;
	padding: 0;
	border-radius: 0;
}

.cb-bill .wc_payment_methods {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cb-bill .wc_payment_method {
	margin: 0;
	padding: 14px;
	border: 1px solid var(--cb-border);
	border-radius: 14px;
	background: var(--cb-bg);
}

.cb-bill .wc_payment_method > label {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	color: var(--cb-text);
	cursor: pointer;
}

.cb-bill .wc_payment_method .payment_box {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--cb-border);
	color: var(--cb-muted);
	font-size: 0.9rem;
	line-height: 1.45;
}

.cb-bill .wc_payment_method .payment_box::before {
	display: none;
}

.cb-bill .place-order {
	margin-top: 4px;
}

.cb-bill .woocommerce-terms-and-conditions-wrapper {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--cb-bg);
	border: 1px solid var(--cb-border);
}

.cb-bill .woocommerce-privacy-policy-text,
.cb-bill .woocommerce-terms-and-conditions-checkbox-text {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.5;
	color: var(--cb-muted);
}

.cb-bill .woocommerce-privacy-policy-text p {
	margin: 0;
}

.cb-bill .woocommerce-privacy-policy-text a,
.cb-bill .woocommerce-terms-and-conditions-checkbox-text a {
	color: var(--cb-primary);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.cb-bill #place_order,
.woocommerce #payment #place_order {
	width: 100%;
	min-height: 54px;
	margin: 0;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--cb-action) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(var(--cb-action-rgb), 0.28);
}

.cb-bill #place_order:hover {
	filter: brightness(1.05);
}

@media (min-width: 900px) {
	.cb-bill {
		max-width: none;
		width: 100%;
		margin-left: 0;
		margin-right: 0;
		padding: 24px;
	}
}

/* Hide default Woo bits that clash with app chrome */
.woocommerce-cart .wc-proceed-to-checkout,
.cart-collaterals .cart_totals > h2,
.woocommerce-cart-form__contents thead {
	display: none;
}

/* ==========================================================================
   Single product
   ========================================================================== */

.single-product .cb-main,
.single-product .cb-woo-page {
	padding: 12px 16px 28px;
	max-width: 1100px;
	margin: 0 auto;
	width: 100%;
}

.cb-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 4px 0 14px;
	color: var(--cb-muted);
	font-weight: 600;
	font-size: 14px;
}

.cb-back-link svg {
	width: 18px;
	height: 18px;
}

.cb-single-product,
.single-product div.product.cb-single-product,
.single-product div.product {
	float: none !important;
	width: 100% !important;
	max-width: 100%;
	margin: 0;
	padding: 0;
	position: relative;
}

.cb-single-product__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 18px;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius-lg);
	padding: 14px;
	box-shadow: var(--cb-shadow-sm);
}

/* Kill WooCommerce default float gallery layout */
.single-product div.product div.images,
.single-product div.product .woocommerce-product-gallery,
.cb-single-product__media,
.cb-single-product__media .woocommerce-product-gallery {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
}

.single-product div.product div.summary,
.cb-single-product__summary {
	float: none !important;
	width: 100% !important;
	max-width: 100% !important;
	margin: 0 !important;
	padding: 4px 2px 8px;
}

.cb-single-product__media {
	position: relative;
	border-radius: var(--cb-radius);
	overflow: hidden;
	background: var(--cb-bg);
	aspect-ratio: 1;
}

.cb-single-product__media .woocommerce-product-gallery {
	height: 100%;
}

.cb-single-product__media .woocommerce-product-gallery__wrapper,
.cb-single-product__media .woocommerce-product-gallery__image,
.cb-single-product__media .wp-post-image {
	height: 100%;
}

.cb-single-product__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: var(--cb-radius);
}

.cb-single-product__media .woocommerce-product-gallery__trigger,
.single-product .woocommerce-product-gallery__trigger {
	display: none !important;
}

.cb-single-product__summary .product_title {
	margin: 0 0 8px;
	font-family: var(--cb-font-display);
	font-size: 1.75rem;
	line-height: 1.15;
	font-weight: 700;
	color: var(--cb-text);
}

.cb-single-product__summary .price {
	display: block;
	margin: 0 0 12px;
	color: var(--cb-primary) !important;
	font-size: 1.45rem;
	font-weight: 700;
}

.cb-single-product__summary .price del {
	opacity: 0.55;
	font-size: 0.9em;
	margin-inline-end: 8px;
}

.cb-product-excerpt,
.cb-single-product__summary .woocommerce-product-details__short-description {
	color: var(--cb-muted);
	font-size: 14px;
	line-height: 1.55;
	margin-bottom: 16px;
}

.cb-product-excerpt p,
.cb-single-product__summary .woocommerce-product-details__short-description p {
	margin: 0;
}

.cb-single-product__summary form.cart {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 12px;
	margin: 0;
	max-width: 420px;
}

.cb-single-product__summary .quantity {
	float: none !important;
	margin: 0 !important;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 0;
	flex: 0 0 auto;
	width: auto;
	min-width: 124px;
	max-width: none;
	background: var(--cb-bg);
	border: 1px solid var(--cb-border);
	border-radius: 14px;
	padding: 4px;
	overflow: hidden;
}

.cb-single-product__summary .quantity::before {
	content: none;
}

.cb-single-product__summary .cb-product-qty__btn {
	flex: 0 0 40px;
	width: 40px;
	height: 42px;
	border: 0;
	background: transparent;
	color: var(--cb-action);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	border-radius: 10px;
}

.cb-single-product__summary .cb-product-qty__btn:hover {
	background: color-mix(in srgb, var(--cb-action) 12%, #fff);
}

.cb-single-product__summary .cb-product-qty__btn:active {
	transform: scale(0.96);
}

.cb-single-product__summary .qty {
	width: 40px !important;
	min-width: 36px;
	min-height: 42px;
	border: 0 !important;
	background: transparent !important;
	text-align: center;
	font-weight: 700;
	font-size: 16px;
	color: var(--cb-text);
	box-shadow: none !important;
	padding: 0 !important;
	-moz-appearance: textfield;
	appearance: textfield;
}

.cb-single-product__summary .qty::-webkit-outer-spin-button,
.cb-single-product__summary .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.cb-single-product__summary .single_add_to_cart_button,
.single-product .single_add_to_cart_button {
	flex: 1 1 auto;
	width: auto;
	min-width: 0;
	min-height: 52px;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--cb-action) !important;
	color: #fff !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	padding: 14px 18px !important;
	cursor: pointer;
	float: none !important;
	white-space: nowrap;
	box-shadow: 0 8px 20px rgba(var(--cb-action-rgb), 0.28);
}

.cb-single-product__summary .single_add_to_cart_button:hover {
	filter: brightness(1.05);
}

/* Related products */
.single-product .related.products,
.single-product .upsells.products,
.single-product .woocommerce-tabs {
	display: none !important;
}

.cb-related {
	clear: both;
	display: block;
	width: 100%;
	max-width: 1100px;
	margin: 24px auto 8px;
	padding: 0 0 12px;
}

.cb-related__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
	padding: 0 2px;
}

.cb-related__head h2 {
	margin: 0;
	font-family: var(--cb-font-display);
	font-size: 1.25rem;
	font-weight: 700;
}

.cb-related__nav {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

.cb-related__nav[hidden] {
	display: none !important;
}

.cb-related__btn {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	border: 1px solid var(--cb-border);
	background: var(--cb-surface, #fff);
	color: var(--cb-text);
	display: grid;
	place-items: center;
	cursor: pointer;
	transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.cb-related__btn svg {
	width: 16px;
	height: 16px;
}

.cb-related__btn--next svg {
	transform: scaleX(-1);
}

.cb-related__btn:hover:not(:disabled) {
	border-color: color-mix(in srgb, var(--cb-primary) 40%, var(--cb-border));
	color: var(--cb-primary);
}

.cb-related__btn:active:not(:disabled) {
	transform: scale(0.96);
}

.cb-related__btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.cb-related__viewport {
	overflow: hidden;
	margin: 0 -2px;
	padding: 0 2px;
}

.cb-related__slider {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x;
	padding: 2px 0 4px;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cb-related__slider::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.cb-related__card {
	flex: 0 0 min(72vw, 210px);
	scroll-snap-align: start;
	background: var(--cb-surface);
	border: 1px solid var(--cb-border);
	border-radius: var(--cb-radius);
	padding: 10px;
	box-shadow: var(--cb-shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.cb-related__media {
	display: block;
	border-radius: var(--cb-radius-sm);
	overflow: hidden;
	aspect-ratio: 1;
	background: var(--cb-bg);
}

.cb-related__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cb-related__title {
	font-weight: 700;
	font-size: 14px;
	color: var(--cb-text);
	line-height: 1.25;
}

.cb-related__price {
	color: var(--cb-primary);
	font-weight: 700;
	font-size: 14px;
}

.cb-related__add {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 40px;
	border: 0;
	border-radius: 11px;
	background: var(--cb-action);
	color: #fff;
	font-weight: 700;
	font-size: 13px;
	cursor: pointer;
}

.cb-related__add svg {
	width: 16px;
	height: 16px;
}

.cb-checkout-fields {
	padding: 0;
}

.cb-checkout-fields .form-row {
	margin-bottom: 12px;
}

.cb-checkout-fields input:not([type="checkbox"]):not([type="radio"]),
.cb-checkout-fields select,
.cb-checkout-fields textarea {
	width: 100%;
	min-height: 44px;
	border: 1px solid var(--cb-border);
	border-radius: 10px;
	padding: 8px 12px;
	background: var(--cb-surface);
}

/* Create account checkbox — compact inline row */
.cb-checkout-fields .woocommerce-account-fields {
	margin: 4px 0 16px;
}

.cb-checkout-fields .woocommerce-account-fields .create-account.form-row {
	margin: 0 0 10px;
	padding: 12px 14px;
	background: var(--cb-bg, #f7f8f7);
	border: 1px solid var(--cb-border);
	border-radius: 12px;
}

.cb-checkout-fields .woocommerce-account-fields .woocommerce-form__label-for-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: var(--cb-text);
	line-height: 1.3;
}

.cb-checkout-fields .woocommerce-account-fields .woocommerce-form__label-for-checkbox span {
	flex: 1 1 auto;
}

.cb-checkout-fields .woocommerce-account-fields input.input-checkbox,
.cb-checkout-fields .woocommerce-account-fields input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 20px !important;
	min-width: 20px;
	max-width: 20px;
	height: 20px !important;
	min-height: 20px !important;
	margin: 0;
	padding: 0 !important;
	border: 1.5px solid var(--cb-border);
	border-radius: 6px;
	background: var(--cb-surface, #fff);
	flex: 0 0 20px;
	display: inline-grid;
	place-content: center;
	cursor: pointer;
	box-shadow: none;
	vertical-align: middle;
}

.cb-checkout-fields .woocommerce-account-fields input.input-checkbox::before,
.cb-checkout-fields .woocommerce-account-fields input[type="checkbox"]::before {
	content: "";
	width: 10px;
	height: 10px;
	transform: scale(0);
	transition: transform 0.12s ease;
	border-radius: 2px;
	background: var(--cb-action, #1d6152);
	box-shadow: inset 1em 1em var(--cb-action, #1d6152);
}

.cb-checkout-fields .woocommerce-account-fields input.input-checkbox:checked,
.cb-checkout-fields .woocommerce-account-fields input[type="checkbox"]:checked {
	border-color: var(--cb-action, #1d6152);
	background: color-mix(in srgb, var(--cb-action, #1d6152) 12%, #fff);
}

.cb-checkout-fields .woocommerce-account-fields input.input-checkbox:checked::before,
.cb-checkout-fields .woocommerce-account-fields input[type="checkbox"]:checked::before {
	transform: scale(1);
}

/* Password field + eye toggle (create account on checkout) */
.cb-checkout-fields .password-input,
.woocommerce-checkout .password-input {
	position: relative;
	display: block;
	width: 100%;
}

.cb-checkout-fields .password-input input.input-text,
.cb-checkout-fields .password-input input[type="password"],
.cb-checkout-fields .password-input input[type="text"],
.woocommerce-checkout .password-input input.input-text,
.woocommerce-checkout .password-input input[type="password"],
.woocommerce-checkout .password-input input[type="text"] {
	width: 100%;
	padding-inline-end: 46px !important;
}

.cb-checkout-fields .password-input input::-ms-reveal,
.woocommerce-checkout .password-input input::-ms-reveal {
	display: none;
}

.cb-checkout-fields .show-password-input,
.woocommerce-checkout .show-password-input {
	position: absolute !important;
	inset-inline-end: 8px;
	/* Center on the 44px input itself (strength meter may sit under the wrapper). */
	top: 22px;
	transform: translateY(-50%);
	z-index: 2;
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 8px;
	background: transparent !important;
	box-shadow: none !important;
	color: var(--cb-muted);
	cursor: pointer;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	line-height: 0;
	font-size: 0;
	text-indent: 0;
}

.cb-checkout-fields .show-password-input:hover,
.woocommerce-checkout .show-password-input:hover {
	background: color-mix(in srgb, var(--cb-action, #1d6152) 8%, #fff) !important;
	color: var(--cb-action, #1d6152);
}

.cb-checkout-fields .show-password-input::before,
.woocommerce-checkout .show-password-input::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	/* eye-off (password hidden) */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B756F' stroke-width='1.6' stroke-linecap='round' d='M3.2 3.2l13.6 13.6'/%3E%3Cpath stroke='%236B756F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M8.4 8.5a2.2 2.2 0 003.1 3.1M4.7 5.9C3.5 6.8 2.5 8 1.8 9.4c.3.5.7 1.1 1.1 1.5 2.8 3.3 7.5 4.3 11.2 2.4'/%3E%3Cpath stroke='%236B756F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M9.2 5.2c.3 0 .5-.1.8-.1 3.3 0 6.2 1.8 7.9 4.5-.3.5-.7 1-1.1 1.5-.5.6-1.1 1.1-1.7 1.5'/%3E%3C/svg%3E");
}

.cb-checkout-fields .show-password-input.display-password::before,
.woocommerce-checkout .show-password-input.display-password::before {
	/* eye (password visible) */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%231D6152' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.8 10S4.5 5.5 10 5.5 18.2 10 18.2 10 15.5 14.5 10 14.5 1.8 10 1.8 10z'/%3E%3Ccircle cx='10' cy='10' r='2.4' stroke='%231D6152' stroke-width='1.6'/%3E%3C/svg%3E");
}

.cb-checkout-fields .woocommerce-password-strength,
.woocommerce-checkout .woocommerce-password-strength {
	margin-top: 8px;
	font-size: 12px;
	font-weight: 600;
}

.cb-checkout-fields .woocommerce-password-hint,
.woocommerce-checkout .woocommerce-password-hint {
	margin-top: 4px;
	font-size: 12px;
	color: var(--cb-muted);
}

/* Toast — top alert bar */
.cb-toast-host {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 100090;
	display: flex;
	justify-content: center;
	pointer-events: none;
	padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 0;
}

body.admin-bar .cb-toast-host {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .cb-toast-host {
		top: 46px;
	}
}

.cb-toast {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	width: min(520px, 100%);
	padding: 12px 14px 14px;
	border-radius: 12px;
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0.01em;
	color: #fff;
	opacity: 0;
	transform: translateY(-110%);
	pointer-events: auto;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
	transition: opacity 0.12s ease, transform 0.14s cubic-bezier(0.22, 1, 0.36, 1);
}

.cb-toast.is-show {
	opacity: 1;
	transform: translateY(0);
}

.cb-toast.is-hide {
	opacity: 0;
	transform: translateY(-110%);
}

.cb-toast--success {
	background: linear-gradient(135deg, #16794a 0%, #1f9a5c 100%);
}

.cb-toast--error {
	background: linear-gradient(135deg, #b42318 0%, #d92d20 100%);
}

.cb-toast--info {
	background: linear-gradient(135deg, #1f2937 0%, #334155 100%);
}

.cb-toast__icon {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 28px;
	height: 28px;
	color: #fff;
}

.cb-toast__svg {
	width: 24px;
	height: 24px;
	display: block;
}

.cb-toast__msg {
	flex: 1 1 auto;
	min-width: 0;
	padding-right: 4px;
}

.cb-toast__close {
	flex: 0 0 auto;
	appearance: none;
	border: 0;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
	width: 28px;
	height: 28px;
	border-radius: 8px;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	padding: 0;
	transition: background 0.15s ease;
}

.cb-toast__close:hover,
.cb-toast__close:focus-visible {
	background: rgba(255, 255, 255, 0.26);
	outline: none;
}

.cb-toast__progress {
	position: absolute;
	left: 0;
	bottom: 0;
	height: 3px;
	width: 100%;
	background: rgba(255, 255, 255, 0.35);
	transform-origin: left center;
	transform: scaleX(1);
}

.cb-toast.is-show .cb-toast__progress {
	animation: cb-toast-progress 2.2s linear forwards;
}

@keyframes cb-toast-progress {
	from {
		transform: scaleX(1);
	}
	to {
		transform: scaleX(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.cb-toast,
	.cb-toast.is-show,
	.cb-toast.is-hide {
		transition: none;
	}

	.cb-toast.is-show .cb-toast__progress {
		animation: none;
	}
}

/* Thank you / order received */
.woocommerce-order-received .cb-page,
.woocommerce-order-received .cb-woo-page,
.woocommerce-checkout.woocommerce-order-received .cb-entry {
	max-width: 100%;
}

.cb-thankyou {
	width: 100%;
	max-width: 520px;
	margin: 0 auto;
	padding: 12px 16px 40px;
	box-sizing: border-box;
}

.cb-thankyou__hero {
	text-align: center;
	padding: 20px 8px 8px;
}

.cb-thankyou__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 16px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background: color-mix(in srgb, var(--cb-primary) 14%, #fff);
	color: var(--cb-primary);
	box-shadow: 0 10px 28px rgba(var(--cb-primary-rgb), 0.18);
	animation: cb-thanks-pop 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cb-thankyou__icon svg {
	width: 34px;
	height: 34px;
}

.cb-thankyou__icon--fail {
	background: #fde8e8;
	color: var(--cb-danger, #c0392b);
	font-size: 2rem;
	font-weight: 800;
	box-shadow: none;
}

@keyframes cb-thanks-pop {
	from {
		opacity: 0;
		transform: scale(0.7);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.cb-thankyou__eyebrow {
	margin: 0 0 6px;
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--cb-primary);
}

.cb-thankyou h1 {
	margin: 0 0 8px;
	font-family: var(--cb-font-display);
	font-size: 2rem;
	line-height: 1.15;
	color: var(--cb-text);
}

.cb-thankyou__lead {
	margin: 0 auto 18px;
	max-width: 32ch;
	color: var(--cb-muted);
	font-size: 0.98rem;
	line-height: 1.45;
}

.cb-thankyou__order-no {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 12px 22px;
	border-radius: 16px;
	background: var(--cb-bg);
	border: 1px solid var(--cb-border);
	margin-bottom: 18px;
}

.cb-thankyou__order-no span {
	font-size: 0.78rem;
	color: var(--cb-muted);
	font-weight: 500;
}

.cb-thankyou__order-no strong {
	font-size: 1.45rem;
	color: var(--cb-primary);
	letter-spacing: 0.02em;
}

.cb-thankyou__card {
	background: var(--cb-surface, #fff);
	border: 1px solid var(--cb-border);
	border-radius: 18px;
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: var(--cb-shadow-sm);
}

.cb-thankyou__card--fail {
	text-align: center;
	padding: 28px 18px;
}

.cb-thankyou__card h2 {
	margin: 0 0 12px;
	font-family: var(--cb-font-display);
	font-size: 1.15rem;
	color: var(--cb-text);
}

.cb-thankyou__meta {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.cb-thankyou__meta li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--cb-border);
	font-size: 0.95rem;
}

.cb-thankyou__meta li:last-child {
	border-bottom: 0;
	padding-bottom: 2px;
}

.cb-thankyou__meta span {
	color: var(--cb-muted);
}

.cb-thankyou__meta strong {
	text-align: right;
	color: var(--cb-text);
	font-weight: 600;
}

.cb-thankyou__total {
	color: var(--cb-primary) !important;
	font-size: 1.05rem;
}

.cb-thankyou__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.cb-thankyou__item {
	display: grid;
	grid-template-columns: 52px 1fr auto;
	gap: 12px;
	align-items: center;
}

.cb-thankyou__item-media {
	width: 52px;
	height: 52px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--cb-bg);
}

.cb-thankyou__item-media img,
.cb-thankyou__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.cb-thankyou__thumb-fallback {
	display: block;
	width: 100%;
	height: 100%;
	background: color-mix(in srgb, var(--cb-primary) 10%, #fff);
}

.cb-thankyou__item-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.cb-thankyou__item-info strong {
	font-size: 0.95rem;
	color: var(--cb-text);
	line-height: 1.25;
}

.cb-thankyou__item-info span {
	font-size: 0.85rem;
	color: var(--cb-muted);
}

.cb-thankyou__item-price {
	font-weight: 700;
	color: var(--cb-primary);
	font-size: 0.92rem;
	white-space: nowrap;
}

.cb-thankyou__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 8px;
	padding-bottom: 8px;
}

.cb-thankyou__hooks .woocommerce-order-details,
.cb-thankyou__hooks .woocommerce-customer-details,
.cb-thankyou .woocommerce-notice,
.cb-thankyou .woocommerce-order-overview,
.cb-thankyou .woocommerce-thankyou-order-received,
.woocommerce-order-received .woocommerce-bacs-bank-details,
.cb-thankyou__hooks .woocommerce-table--order-details {
	display: none !important;
}

@media (min-width: 900px) {
	.cb-thankyou {
		padding-top: 28px;
		padding-bottom: 56px;
	}

	.cb-thankyou h1 {
		font-size: 2.35rem;
	}
}

/* ==========================================================================
   My Account — profile-style shell
   ========================================================================== */

body.woocommerce-account .cb-page,
body.woocommerce-account .cb-woo-page {
	max-width: 980px;
	margin: 0 auto;
	padding: 12px 16px 40px;
}

.cb-account {
	width: 100%;
}

.cb-account__hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 18px;
	padding: 8px 0 20px;
}

.cb-account__avatar-wrap {
	flex: 0 0 auto;
}

.cb-account__avatar {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	object-fit: cover;
	display: block;
	background: var(--cb-bg);
	border: 3px solid color-mix(in srgb, var(--cb-primary) 20%, #fff);
	box-shadow: var(--cb-shadow-sm);
}

.cb-account__identity {
	flex: 1 1 160px;
	min-width: 0;
}

.cb-account__eyebrow {
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--cb-muted);
}

.cb-account__identity h1 {
	margin: 0 0 4px;
	font-family: var(--cb-font-display);
	font-size: 1.7rem;
	line-height: 1.15;
	color: var(--cb-text);
}

.cb-account__identity .cb-muted {
	margin: 0;
	word-break: break-word;
}

.cb-account__stats {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	width: 100%;
}

.cb-account__stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border-radius: 16px;
	background: var(--cb-surface, #fff);
	border: 1px solid var(--cb-border);
	box-shadow: var(--cb-shadow-sm);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.cb-account__stat:hover {
	border-color: color-mix(in srgb, var(--cb-primary) 35%, var(--cb-border));
	transform: translateY(-1px);
	color: inherit;
}

.cb-account__stat-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--cb-muted);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.cb-account__stat-value {
	font-family: var(--cb-font-display);
	font-size: 1.55rem;
	color: var(--cb-primary);
	line-height: 1.1;
}

.cb-account__layout {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.cb-account__nav {
	background: var(--cb-surface, #fff);
	border: 1px solid var(--cb-border);
	border-radius: 18px;
	box-shadow: var(--cb-shadow-sm);
	padding: 10px;
	overflow: hidden;
}

.cb-account__nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: row;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.cb-account__nav ul::-webkit-scrollbar {
	display: none;
}

.cb-account__nav li {
	margin: 0;
	flex: 0 0 auto;
}

.cb-account__nav a {
	display: block;
	padding: 10px 14px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 13.5px;
	color: var(--cb-muted);
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease;
}

.cb-account__nav a:hover {
	color: var(--cb-text);
	background: var(--cb-bg);
}

.cb-account__nav .is-active a,
.cb-account__nav a[aria-current="page"] {
	color: #fff;
	background: var(--cb-primary);
}

.cb-account.is-loading .cb-account__content {
	opacity: 0.45;
	pointer-events: none;
}

.cb-account__content {
	background: var(--cb-surface, #fff);
	border: 1px solid var(--cb-border);
	border-radius: 18px;
	box-shadow: var(--cb-shadow-sm);
	padding: 20px 18px 24px;
	min-width: 0;
	transition: opacity 0.18s ease;
}

.cb-account__content > h2,
.cb-account__content .woocommerce-Address-title h3,
.cb-account__content .woocommerce-order-details__title {
	margin: 0 0 14px;
	font-family: var(--cb-font-display);
	font-size: 1.35rem;
}

.cb-account-dashboard__intro h2 {
	margin: 0 0 8px;
	font-family: var(--cb-font-display);
	font-size: 1.35rem;
}

.cb-account-dashboard__intro p {
	margin: 0 0 8px;
	line-height: 1.55;
}

.cb-account-dashboard__intro .cb-muted {
	margin-bottom: 0;
}

.cb-account-dashboard__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin-top: 16px;
}

.cb-account-dashboard__tile {
	display: grid;
	grid-template-columns: 44px 1fr;
	grid-template-rows: auto auto;
	column-gap: 12px;
	row-gap: 2px;
	align-items: center;
	padding: 16px;
	border-radius: 16px;
	background: var(--cb-bg);
	border: 1px solid var(--cb-border);
	color: inherit;
	text-decoration: none;
	transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.cb-account-dashboard__tile:hover {
	border-color: color-mix(in srgb, var(--cb-primary) 35%, var(--cb-border));
	transform: translateY(-1px);
	box-shadow: var(--cb-shadow-sm);
	color: inherit;
}

.cb-account-dashboard__tile-icon {
	grid-row: 1 / span 2;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--cb-primary) 12%, #fff);
	color: var(--cb-primary);
}

.cb-account-dashboard__tile-icon svg {
	width: 20px;
	height: 20px;
}

.cb-account-dashboard__tile strong {
	font-size: 15px;
	color: var(--cb-text);
}

.cb-account-dashboard__tile span:last-child {
	font-size: 13px;
	color: var(--cb-muted);
}

/* Forms, tables, addresses inside account content */
.cb-account__content .woocommerce-form-row,
.cb-account__content .form-row {
	margin: 0 0 14px;
}

.cb-account__content label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cb-text);
}

.cb-account__content input.input-text,
.cb-account__content textarea,
.cb-account__content select,
.cb-account__content .woocommerce-Input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--cb-border);
	border-radius: 12px;
	background: var(--cb-bg);
	box-sizing: border-box;
}

.cb-account__content input.input-text:focus,
.cb-account__content textarea:focus,
.cb-account__content select:focus {
	outline: none;
	border-color: var(--cb-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-primary) 18%, transparent);
}

.cb-account__content .button,
.cb-account__content button.button,
.woocommerce-account .woocommerce-Button,
.woocommerce-account .woocommerce-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--cb-primary);
	color: #fff !important;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(var(--cb-primary-rgb), 0.22);
}

.cb-account__content .button:hover,
.cb-account__content button.button:hover,
.woocommerce-account .woocommerce-Button:hover {
	filter: brightness(1.05);
	color: #fff !important;
}

.cb-account__content table.shop_table {
	width: 100%;
	border-collapse: collapse;
	border: 0;
}

.cb-account__content table.shop_table th,
.cb-account__content table.shop_table td {
	padding: 12px 8px;
	border: 0;
	border-bottom: 1px solid var(--cb-border);
	text-align: left;
	font-size: 14px;
}

.cb-account__content table.shop_table thead th {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--cb-muted);
}

.cb-account__content .woocommerce-Address,
.cb-account__content .u-columns .woocommerce-Address {
	padding: 16px;
	border: 1px solid var(--cb-border);
	border-radius: 16px;
	background: var(--cb-bg);
	margin-bottom: 12px;
}

.cb-account__content .woocommerce-Addresses {
	display: grid;
	gap: 12px;
}

.woocommerce-account .col2-set,
.woocommerce-account .u-columns {
	display: grid;
	gap: 16px;
}

.woocommerce-account .col2-set .col-1,
.woocommerce-account .col2-set .col-2,
.woocommerce-account .u-column1,
.woocommerce-account .u-column2 {
	width: 100%;
	float: none;
}

/* Login / register — auth-style card (matches modal) */
.woocommerce-account:not(.logged-in) .cb-page,
.woocommerce-account:not(.logged-in) .cb-woo-page,
.woocommerce-lost-password .cb-page,
.woocommerce-lost-password .cb-woo-page {
	max-width: 520px;
	margin: 0 auto;
	padding: 24px 16px 48px;
}

.cb-woo-auth {
	width: 100%;
}

.cb-woo-auth__card {
	padding: 28px 22px 24px;
	border: 1px solid var(--cb-border);
	border-radius: 22px;
	background: var(--cb-surface, #fff);
	box-shadow: var(--cb-shadow);
}

.cb-woo-auth__brand {
	text-align: center;
	margin: 0 0 20px;
}

.cb-woo-auth__brand .cb-brand-logo,
.cb-woo-auth__logo {
	margin: 0 auto 10px;
}

.cb-woo-auth__brand .cb-brand-logo img {
	height: var(--cb-logo-h, 44px);
	width: var(--cb-logo-width, auto);
	max-width: var(--cb-logo-mw, 190px);
	max-height: var(--cb-logo-h, 44px);
}

.cb-woo-auth__brand .cb-brand__name {
	display: block;
	font-family: var(--cb-font-display);
	font-size: 1.85rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--cb-text);
	margin-bottom: 8px;
}

.cb-woo-auth__brand p {
	margin: 0;
	color: var(--cb-muted);
	font-size: 14px;
	line-height: 1.45;
}

/* Radio-based tabs — work without JS */
.cb-woo-auth__radio {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 0;
	height: 0;
}

.cb-woo-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	padding: 4px;
	background: var(--cb-bg);
	border-radius: 14px;
	margin-bottom: 20px;
}

.cb-woo-auth__tab {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	border-radius: 12px;
	font-weight: 700;
	font-size: 14px;
	color: var(--cb-muted);
	cursor: pointer;
	user-select: none;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

#cb-woo-auth-login:checked ~ .cb-woo-auth__tabs label[for="cb-woo-auth-login"],
#cb-woo-auth-register:checked ~ .cb-woo-auth__tabs label[for="cb-woo-auth-register"] {
	background: var(--cb-surface);
	color: var(--cb-primary);
	box-shadow: var(--cb-shadow-sm);
}

.cb-woo-auth__panel--login,
.cb-woo-auth__panel--register {
	display: none;
}

/* Registration disabled — only login panel exists */
.cb-woo-auth:not(:has(.cb-woo-auth__radio)) .cb-woo-auth__panel--login {
	display: block;
}

#cb-woo-auth-login:checked ~ .cb-woo-auth__panel--login {
	display: block;
}

#cb-woo-auth-register:checked ~ .cb-woo-auth__panel--register {
	display: block;
}

.cb-woo-auth__form .cb-field,
.cb-woo-auth__form .woocommerce-form-row {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 8px;
	margin: 0 0 14px;
	float: none;
	width: 100%;
}

.cb-woo-auth__form .cb-field label,
.cb-woo-auth__form .woocommerce-form-row label {
	float: none;
	width: auto;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--cb-text);
}

.cb-woo-auth__form .cb-field .required,
.cb-woo-auth__form .woocommerce-form-row .required {
	color: var(--cb-danger, #c44b4b);
}

.cb-woo-auth__form .cb-field em {
	font-style: normal;
	color: var(--cb-muted);
	font-weight: 500;
}

.cb-woo-auth__form input.input-text,
.cb-woo-auth__form .woocommerce-Input {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	min-height: 48px;
	padding: 0 14px;
	border: 1px solid var(--cb-border);
	border-radius: 12px;
	background: var(--cb-bg);
	box-sizing: border-box;
}

.cb-woo-auth__form .password-input {
	display: flex;
	align-items: center;
	width: 100%;
	position: relative;
}

.cb-woo-auth__form .password-input input.input-text {
	padding-inline-end: 44px;
}

.cb-woo-auth__form .show-password-input {
	position: absolute;
	inset-inline-end: 8px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	cursor: pointer;
	color: var(--cb-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0;
	line-height: 0;
	padding: 0;
}

.cb-woo-auth__form .show-password-input::before {
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236B756F' stroke-width='1.6' stroke-linecap='round' d='M3.2 3.2l13.6 13.6'/%3E%3Cpath stroke='%236B756F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M8.4 8.5a2.2 2.2 0 003.1 3.1M4.7 5.9C3.5 6.8 2.5 8 1.8 9.4c.3.5.7 1.1 1.1 1.5 2.8 3.3 7.5 4.3 11.2 2.4'/%3E%3Cpath stroke='%236B756F' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M9.2 5.2c.3 0 .5-.1.8-.1 3.3 0 6.2 1.8 7.9 4.5-.3.5-.7 1-1.1 1.5-.5.6-1.1 1.1-1.7 1.5'/%3E%3C/svg%3E");
}

.cb-woo-auth__form .show-password-input.display-password::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%231D6152' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1.8 10S4.5 5.5 10 5.5 18.2 10 18.2 10 15.5 14.5 10 14.5 1.8 10 1.8 10z'/%3E%3Ccircle cx='10' cy='10' r='2.4' stroke='%231D6152' stroke-width='1.6'/%3E%3C/svg%3E");
}

.cb-woo-auth__form input.input-text:focus,
.cb-woo-auth__form .woocommerce-Input:focus {
	outline: none;
	border-color: var(--cb-primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--cb-primary) 18%, transparent);
	background: #fff;
}

.cb-woo-auth__form .cb-check,
.cb-woo-auth__form .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	font-size: 13px;
	color: var(--cb-muted);
	font-weight: 500;
}

.cb-woo-auth__form .cb-btn,
.cb-woo-auth__form button.button,
.cb-woo-auth__form .woocommerce-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 50px;
	margin: 0;
	padding: 14px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--cb-primary) !important;
	color: #fff !important;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	box-shadow: 0 12px 28px rgba(var(--cb-primary-rgb), 0.28);
}

.cb-woo-auth__form .cb-btn:hover,
.cb-woo-auth__form button.button:hover {
	filter: brightness(1.05);
	color: #fff !important;
}

.cb-woo-auth__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid var(--cb-border);
}

.cb-woo-auth__lost {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	color: var(--cb-muted);
	background: var(--cb-bg);
	border: 1px solid var(--cb-border);
	text-decoration: none;
	transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.cb-woo-auth__lost:hover {
	color: var(--cb-primary);
	border-color: color-mix(in srgb, var(--cb-primary) 35%, var(--cb-border));
	background: color-mix(in srgb, var(--cb-primary) 8%, #fff);
}

.cb-woo-auth__switch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 4px;
	border: 0;
	background: transparent;
	color: var(--cb-primary);
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
	text-align: center;
	text-decoration: none;
}

.cb-woo-auth__switch:hover {
	text-decoration: underline;
}

.cb-woo-auth__hint {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--cb-muted);
	text-align: center;
}

.cb-woo-auth__privacy,
.cb-woo-auth__form .woocommerce-privacy-policy-text {
	margin: 0 0 16px;
	padding: 12px 14px;
	border-radius: 12px;
	background: var(--cb-bg);
	border: 1px solid var(--cb-border);
}

.cb-woo-auth__privacy p,
.cb-woo-auth__form .woocommerce-privacy-policy-text p {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.55;
	color: var(--cb-muted);
	text-align: left;
}

.cb-woo-auth__privacy a,
.cb-woo-auth__form .woocommerce-privacy-policy-text a {
	color: var(--cb-primary);
	font-weight: 600;
}

/* Hide old dual-column login chrome if ever leftover */
.woocommerce-account:not(.logged-in) .u-columns.col2-set,
.woocommerce-account:not(.logged-in) #customer_login.u-columns {
	display: block;
}

.woocommerce-account:not(.logged-in) .woocommerce-form-login:not(.cb-woo-auth__form),
.woocommerce-account:not(.logged-in) .woocommerce-form-register:not(.cb-woo-auth__form) {
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
}

@media (min-width: 900px) {
	.woocommerce-account:not(.logged-in) .cb-page,
	.woocommerce-account:not(.logged-in) .cb-woo-page,
	.woocommerce-lost-password .cb-page,
	.woocommerce-lost-password .cb-woo-page {
		max-width: 480px;
		padding: 40px 24px 72px;
	}

	.cb-woo-auth__card {
		padding: 36px 36px 30px;
	}
}

/* Login / register on account page — legacy selectors kept light */

@media (min-width: 900px) {
	body.woocommerce-account .cb-page,
	body.woocommerce-account .cb-woo-page {
		max-width: 1100px;
		padding: 24px 40px 56px;
	}

	.cb-account__hero {
		display: grid;
		grid-template-columns: auto 1fr auto;
		align-items: center;
		gap: 20px 24px;
		padding: 8px 0 28px;
	}

	.cb-account__avatar {
		width: 96px;
		height: 96px;
	}

	.cb-account__identity h1 {
		font-size: 2rem;
	}

	.cb-account__stats {
		width: auto;
		min-width: 260px;
	}

	.cb-account__layout {
		display: grid;
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 24px;
		align-items: start;
	}

	.cb-account__nav {
		position: sticky;
		top: calc(var(--cb-sticky-header-top, 0px) + var(--cb-desktop-header-h, 76px) + 12px);
		padding: 12px;
	}

	.cb-account__nav ul {
		flex-direction: column;
		overflow: visible;
	}

	.cb-account__nav a {
		border-radius: 12px;
		padding: 12px 14px;
		white-space: normal;
	}

	.cb-account__content {
		padding: 28px;
	}

	.cb-account-dashboard__grid {
		grid-template-columns: 1fr 1fr;
		gap: 14px;
	}

	.cb-account__content .woocommerce-Addresses,
	.woocommerce-account .col2-set,
	.woocommerce-account .u-columns {
		grid-template-columns: 1fr 1fr;
	}
}

