/* ==========================================================================
   POISE MARKETING — block layer
   WooCommerce block cart / checkout / my-account, plus classic shortcode
   tables. Only relevant once the catalogue opens, but styled now so the
   storefront never falls back to unstyled defaults.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Shared WooCommerce page furniture
   -------------------------------------------------------------------------- */

body.poise .woocommerce {
	color: var(--poise-text);
}

body.poise .woocommerce h2,
body.poise .woocommerce h3 {
	color: var(--poise-ink);
}

.poise-wc-head {
	margin-bottom: 44px;
}

.poise-wc-head h1 {
	font-size: clamp(2rem, 3.6vw, 3rem);
}

.poise-wc-head p {
	margin-top: 14px;
	max-width: 62ch;
	color: var(--poise-muted);
	font-size: 1.02rem;
}

/* --------------------------------------------------------------------------
   2. Cart and checkout blocks
   -------------------------------------------------------------------------- */

body.poise .wp-block-woocommerce-cart,
body.poise .wp-block-woocommerce-checkout {
	color: var(--poise-text);
}

body.poise .wc-block-components-title,
body.poise .wc-block-components-panel__button,
body.poise .wc-block-checkout__sidebar .wc-block-components-title {
	font-family: var(--poise-font-sans);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--poise-ink);
}

body.poise .wc-block-cart-items__header th,
body.poise .wc-block-components-totals-item__label,
body.poise .wc-block-components-order-summary-item__description {
	color: var(--poise-muted);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

body.poise .wc-block-cart-item__product .wc-block-components-product-name,
body.poise .wc-block-components-order-summary-item__description .wc-block-components-product-name {
	color: var(--poise-ink);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

body.poise .wc-block-cart-item__image img,
body.poise .wc-block-components-order-summary-item__image img {
	border-radius: var(--poise-radius);
}

body.poise .wc-block-components-button,
body.poise .wc-block-components-button:not(.is-link) {
	border-radius: var(--poise-radius);
	font-family: var(--poise-font-sans);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

body.poise .wc-block-components-button:not(.is-link):not(.wc-block-components-express-payment__event-buttons button) {
	background: var(--poise-ink);
	color: #fff;
}

body.poise .wc-block-components-button:not(.is-link):hover {
	background: var(--poise-pink);
	color: #fff;
}

body.poise .wc-block-cart__submit-button,
body.poise .wc-block-components-checkout-place-order-button {
	background: var(--poise-pink) !important;
	color: #fff !important;
}

body.poise .wc-block-cart__submit-button:hover,
body.poise .wc-block-components-checkout-place-order-button:hover {
	background: var(--poise-pink-deep) !important;
}

body.poise .wc-block-components-sidebar-layout .wc-block-components-sidebar,
body.poise .wc-block-checkout__sidebar {
	background: var(--poise-mist);
	border-radius: var(--poise-radius-lg);
	padding: 30px 28px;
}

body.poise .wc-block-components-totals-item__value,
body.poise .wc-block-components-product-price {
	color: var(--poise-ink);
	font-weight: 700;
}

body.poise .wc-block-components-totals-footer-item .wc-block-components-totals-item__value {
	color: var(--poise-pink-deep);
	font-size: 1.2rem;
}

body.poise .wc-block-components-text-input input,
body.poise .wc-block-components-textarea,
body.poise .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.poise .wc-block-components-select select {
	border: 1px solid var(--poise-line-light);
	border-radius: var(--poise-radius);
	background: var(--poise-paper);
	font-family: var(--poise-font-sans);
}

body.poise .wc-block-components-text-input input:focus,
body.poise .wc-block-components-textarea:focus,
body.poise .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus {
	border-color: var(--poise-pink);
	box-shadow: 0 0 0 3px rgba(230, 57, 124, 0.14);
	outline: none;
}

body.poise .wc-block-components-radio-control__option-checked .wc-block-components-radio-control__input,
body.poise .wc-block-components-checkbox__input:checked {
	background-color: var(--poise-pink);
	border-color: var(--poise-pink);
}

body.poise .wc-block-components-express-payment {
	margin-bottom: 28px;
}

body.poise .wc-block-components-notice-banner {
	border-radius: var(--poise-radius);
	border-top: 3px solid var(--poise-pink);
	background: var(--poise-paper);
	color: var(--poise-ink);
}

body.poise .wc-block-components-notice-banner.is-success {
	border-top-color: #1c7a4f;
}

body.poise .wc-block-components-notice-banner.is-error {
	border-top-color: var(--poise-pink-deep);
}

/* --------------------------------------------------------------------------
   3. Classic shortcode cart / checkout tables
   -------------------------------------------------------------------------- */

body.poise .woocommerce-cart-form__contents,
body.poise .woocommerce-checkout-review-order-table,
body.poise .shop_table {
	width: 100%;
	border: 0;
	border-collapse: collapse;
}

body.poise .shop_table thead th {
	padding: 14px 12px;
	border-bottom: 1px solid var(--poise-line-light);
	text-align: left;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--poise-muted);
}

body.poise .shop_table tbody td {
	padding: 20px 12px;
	border-bottom: 1px solid var(--poise-line-light);
	vertical-align: middle;
	color: var(--poise-ink);
}

body.poise .shop_table .product-thumbnail img {
	width: 84px;
	border-radius: var(--poise-radius);
}

body.poise .shop_table .product-name a {
	font-weight: 700;
	color: var(--poise-ink);
}

body.poise .shop_table .product-name a:hover {
	color: var(--poise-pink);
}

body.poise .actions .coupon {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

body.poise .cart_totals,
body.poise .woocommerce-checkout-review-order,
body.poise #order_review {
	padding: 32px 30px;
	background: var(--poise-mist);
	border-radius: var(--poise-radius-lg);
}

body.poise .cart_totals h2,
body.poise #order_review_heading {
	margin-bottom: 20px;
	font-size: 1.25rem;
}

body.poise .cart-collaterals .cart_totals {
	width: 100%;
	float: none;
}

body.poise .checkout_coupon,
body.poise form.checkout_coupon {
	border: 1px solid var(--poise-line-light);
	border-radius: var(--poise-radius);
	padding: 24px;
}

body.poise .woocommerce-checkout .col2-set {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 34px;
	width: 100%;
	float: none;
}

body.poise .woocommerce-checkout .col2-set .col-1,
body.poise .woocommerce-checkout .col2-set .col-2 {
	width: 100%;
	float: none;
}

body.poise #customer_details {
	margin-bottom: 40px;
}

body.poise .woocommerce-checkout h3 {
	margin-bottom: 18px;
	font-size: 1.15rem;
}

body.poise .woocommerce-checkout .form-row {
	margin-bottom: 16px;
	padding: 0;
}

body.poise .woocommerce-checkout label {
	display: block;
	margin-bottom: 7px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--poise-muted);
}

body.poise #payment {
	background: transparent;
	border-radius: 0;
}

body.poise #payment ul.payment_methods {
	padding: 0 0 22px;
	border-bottom: 1px solid var(--poise-line-light);
	list-style: none;
}

body.poise #payment ul.payment_methods li {
	margin-bottom: 12px;
}

body.poise #payment div.form-row.place-order {
	padding: 24px 0 0;
}

body.poise #payment #place_order {
	width: 100%;
	padding: 18px 30px;
	border: 0;
	border-radius: var(--poise-radius);
	background: var(--poise-pink);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

body.poise #payment #place_order:hover {
	background: var(--poise-pink-deep);
}

/* --------------------------------------------------------------------------
   4. My account
   -------------------------------------------------------------------------- */

body.poise .woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 48px;
	align-items: start;
}

body.poise .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--poise-line-light);
	border-radius: var(--poise-radius-lg);
	overflow: hidden;
}

body.poise .woocommerce-MyAccount-navigation li {
	margin: 0;
	border: 0;
	border-bottom: 1px solid var(--poise-line-light);
}

body.poise .woocommerce-MyAccount-navigation li:last-child {
	border-bottom: 0;
}

body.poise .woocommerce-MyAccount-navigation a {
	display: block;
	padding: 15px 22px;
	color: var(--poise-ink);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	transition: background-color 0.22s var(--poise-ease), color 0.22s var(--poise-ease);
}

body.poise .woocommerce-MyAccount-navigation a:hover {
	background: var(--poise-mist);
	color: var(--poise-pink);
}

body.poise .woocommerce-MyAccount-navigation .is-active a {
	background: var(--poise-ink);
	color: #fff;
}

body.poise .woocommerce-MyAccount-content {
	color: var(--poise-text);
}

body.poise .woocommerce-MyAccount-content a {
	color: var(--poise-pink-deep);
}

body.poise .woocommerce-Address {
	margin-bottom: 26px;
	padding: 26px 28px;
	background: var(--poise-mist);
	border-radius: var(--poise-radius-lg);
}

body.poise .woocommerce-Address address {
	font-style: normal;
	color: var(--poise-muted);
}

body.poise form.woocommerce-ResetPassword,
body.poise form.woocommerce-form-login,
body.poise form.woocommerce-form-register {
	max-width: 460px;
	padding: 36px 34px;
	border: 1px solid var(--poise-line-light);
	border-radius: var(--poise-radius-lg);
}

body.poise .woocommerce-form-login__rememberme {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 0.88rem;
}

body.poise .woocommerce-LostPassword {
	margin-top: 12px;
	font-size: 0.88rem;
}

body.poise .woocommerce-MyAccount-orders .woocommerce-Button {
	padding: 10px 18px;
	border-radius: var(--poise-radius);
	background: var(--poise-ink);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

@media (max-width: 900px) {
	body.poise .woocommerce-account .woocommerce {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	body.poise .woocommerce-checkout .col2-set {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 680px) {
	body.poise .cart_totals,
	body.poise .woocommerce-checkout-review-order,
	body.poise #order_review {
		padding: 24px 20px;
	}

	body.poise .shop_table thead {
		display: none;
	}

	body.poise .shop_table tbody td {
		display: block;
		width: 100%;
		border-bottom: 0;
		padding: 6px 0;
	}

	body.poise .shop_table tbody tr {
		display: block;
		padding: 18px 0;
		border-bottom: 1px solid var(--poise-line-light);
	}
}
