/* ==========================================================================
   Partner screens: cart, checkout, order confirmation, My account.
   WooCommerce's own layout stylesheet is not loaded; everything is styled here.
   ========================================================================== */

.woocommerce-cart .page-wrap,
.woocommerce-checkout .page-wrap,
.woocommerce-account .page-wrap { max-width: 1180px; }

/* ---------- Notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 16px; padding: 14px 18px; background: #fff; color: var(--text);
	border: 1px solid var(--line); border-left: 4px solid #0a0a0a; border-radius: 6px; font-size: 14px;
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
}
.woocommerce-info { justify-content: flex-start; }
.woocommerce-error { display: block; border-left-color: #a42d1c; background: #fdf3f1; }
.woocommerce-error li { margin: 2px 0; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; margin-left: auto; min-height: 38px; padding: 8px 18px; }
.woocommerce-info a:not(.button), .woocommerce-message a:not(.button) { font-weight: 700; text-decoration: underline; color: var(--text); }
.woocommerce-store-notice { display: none; }

/* ---------- Forms ---------- */
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row label { display: block; margin: 0 0 5px; font-weight: 600; font-size: 13px; line-height: 1.3; }
.woocommerce form .form-row .required { color: #a42d1c; text-decoration: none; border: 0; }
.woocommerce form .form-row .optional { font-weight: 400; color: var(--muted); }
.woocommerce form .form-row.woocommerce-invalid input.input-text, .woocommerce form .form-row.woocommerce-invalid .select2-selection { border-color: #a42d1c; }
.woocommerce form .form-row .woocommerce-input-wrapper { display: block; }
.woocommerce form .form-row .description, .woocommerce form em { font-size: 12px; color: var(--muted); font-style: normal; }
.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper,
.woocommerce-address-fields__field-wrapper, .woocommerce-additional-fields__field-wrapper,
.woocommerce-EditAccountForm { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.woocommerce-billing-fields__field-wrapper .form-row, .woocommerce-shipping-fields__field-wrapper .form-row,
.woocommerce-address-fields__field-wrapper .form-row, .woocommerce-additional-fields__field-wrapper .form-row,
.woocommerce-EditAccountForm > .form-row, .woocommerce-EditAccountForm > fieldset, .woocommerce-EditAccountForm > p:not(.form-row) { grid-column: 1 / -1; }
.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last,
.woocommerce-shipping-fields__field-wrapper .form-row-first, .woocommerce-shipping-fields__field-wrapper .form-row-last,
.woocommerce-address-fields__field-wrapper .form-row-first, .woocommerce-address-fields__field-wrapper .form-row-last,
.woocommerce-EditAccountForm > .form-row-first, .woocommerce-EditAccountForm > .form-row-last { grid-column: auto; }
.woocommerce form .password-input { position: relative; display: block; }
.woocommerce form .password-input input { padding-right: 48px; }
.woocommerce form .show-password-input { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; cursor: pointer; opacity: .6; }
.woocommerce form .show-password-input::after { content: "◉"; font-size: 16px; }
.woocommerce form .show-password-input.display-password { opacity: 1; }
.woocommerce fieldset { margin: 0 0 18px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce fieldset legend { padding: 0 8px; font-weight: 700; font-size: 14px; }

/* Country / state dropdowns (selectWoo) */
.select2-container .select2-selection--single { height: 44px; border: 1px solid #b4b4b4; border-radius: 6px; display: flex; align-items: center; background: #fff; }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding: 0 36px 0 12px; line-height: 42px; color: var(--text); font: 400 14px var(--font); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.select2-container--default.select2-container--focus .select2-selection--single, .select2-container--open .select2-selection--single { border-color: #000; outline: 2px solid rgba(0, 0, 0, .28); }
.select2-dropdown { border: 1px solid #b4b4b4; border-radius: 6px; font-family: var(--font); overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted[data-selected] { background: #0a0a0a; color: #fff; }
.select2-search--dropdown .select2-search__field { border: 1px solid #b4b4b4; border-radius: 4px; min-height: 38px; }

/* ---------- Tables ---------- */
.woocommerce table.shop_table { width: 100%; margin: 0 0 20px; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.woocommerce table.shop_table th { padding: 12px 14px; text-align: left; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #fafafa; }
.woocommerce table.shop_table td { padding: 14px; text-align: left; vertical-align: middle; border-top: 1px solid var(--line); }
.woocommerce table.shop_table tr:first-child td { border-top: 0; }
.woocommerce table.shop_table thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
/* Row headers (order numbers) read as normal cells, not column headings. */
.woocommerce table.shop_table tbody th { padding: 14px; background: #fff; border-top: 1px solid var(--line); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; color: var(--text); }
.woocommerce table.shop_table tfoot th, .woocommerce table.shop_table tfoot td { background: #fff; font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--text); border-top: 1px solid var(--line); }
.woocommerce table.shop_table .order-total th, .woocommerce table.shop_table .order-total td { font-size: 17px; font-weight: 800; }
.woocommerce table.shop_table .amount { font-weight: 700; }
.woocommerce a.remove { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--muted); border: 1px solid var(--line); text-decoration: none; }
.woocommerce a.remove:hover { background: #0a0a0a; border-color: #0a0a0a; color: #fff; }

/* ---------- Cart ---------- */
.woocommerce-cart .woocommerce:has(.cart-collaterals) { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 0 24px; align-items: start; }
.woocommerce-cart .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-cart .woocommerce-cart-form { grid-column: 1; min-width: 0; }
.woocommerce-cart .cart-collaterals { grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 14px; }
.woocommerce-cart table.cart td.product-thumbnail { width: 92px; }
.woocommerce-cart table.cart td.product-thumbnail img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #f3f3f3; }
.woocommerce-cart table.cart td.product-name a { color: var(--text); font-weight: 600; }
.woocommerce-cart table.cart td.product-name a:hover { text-decoration: underline; }
.woocommerce-cart table.cart td.product-remove { width: 48px; padding-right: 0; }
.woocommerce .quantity input.qty { width: 84px; min-height: 42px; padding: 6px 8px; text-align: center; font-weight: 700; border-radius: 6px; }
.woocommerce-cart table.cart td.actions { background: #fafafa; }
.woocommerce-cart table.cart td.actions .coupon { display: inline-flex; gap: 8px; float: none; }
.woocommerce-cart table.cart td.actions .coupon input.input-text { width: 180px; min-height: 42px; }
.woocommerce-cart table.cart td.actions > .button[name="update_cart"] { float: right; }
.woocommerce .button:disabled, .woocommerce .button[disabled] { opacity: .45; cursor: not-allowed; background: #0a0a0a; }
.woocommerce .cart_totals { width: 100%; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce .cart_totals h2 { margin: 0 0 12px; font-size: 18px; }
.woocommerce .cart_totals table.shop_table { border: 0; margin: 0 0 16px; }
.woocommerce .cart_totals table.shop_table th, .woocommerce .cart_totals table.shop_table td { padding: 12px 0; background: none; }
.woocommerce .wc-proceed-to-checkout { padding: 0; }
.woocommerce .wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; min-height: 52px; font-size: 15px; }
.woocommerce .cart-empty { padding: 36px 20px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 16px; }
.woocommerce .return-to-shop { text-align: center; }

/* ---------- Checkout ---------- */
.woocommerce form.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .9fr); gap: 0 24px; align-items: start; }
.woocommerce form.checkout #customer_details { grid-column: 1; grid-row: 1 / span 3; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce form.checkout #customer_details .col-1, .woocommerce form.checkout #customer_details .col-2 { float: none; width: 100%; }
.woocommerce form.checkout #customer_details .col-2 { margin-top: 8px; }
.woocommerce form.checkout h3 { margin: 0 0 16px; font-size: 18px; }
.woocommerce form.checkout #order_review_heading { grid-column: 2; margin: 0; padding: 20px 20px 0; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: 8px 8px 0 0; }
.woocommerce form.checkout #order_review { grid-column: 2; padding: 16px 20px 20px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; position: sticky; top: 14px; }
.woocommerce form.checkout #order_review table.shop_table { border: 0; border-radius: 0; margin-bottom: 14px; }
.woocommerce form.checkout #order_review table.shop_table th, .woocommerce form.checkout #order_review table.shop_table td { padding: 11px 0; background: none; }
.woocommerce #payment { background: none; border: 0; }
.woocommerce #payment ul.payment_methods { list-style: none; margin: 0 0 14px; padding: 0; }
.woocommerce #payment ul.payment_methods li { margin: 0 0 8px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; }
.woocommerce #payment ul.payment_methods li label { display: inline; font-weight: 700; }
.woocommerce #payment div.payment_box { margin: 10px 0 0; padding: 12px 14px; background: #f3f3f3; border-radius: 4px; font-size: 13px; color: var(--muted); }
.woocommerce #payment div.payment_box::before { display: none; }
.woocommerce #payment .place-order { padding: 0; }
.woocommerce #payment #place_order { display: flex; width: 100%; min-height: 54px; font-size: 15px; margin-top: 10px; }
.woocommerce-privacy-policy-text { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.woocommerce-checkout .woocommerce-form-coupon-toggle { grid-column: 1 / -1; }
.woocommerce form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: 0 0 18px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce form.checkout_coupon p { margin: 0; }
.woocommerce form.checkout_coupon .form-row-first { flex: 1 1 220px; }

/* ---------- Order confirmation ---------- */
.woocommerce-order .woocommerce-thankyou-order-received { margin: 0 0 18px; padding: 16px 20px; font-size: 18px; font-weight: 700; background: #0a0a0a; color: #fff; border-radius: 8px; }
.woocommerce-order ul.order_details { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; }
.woocommerce-order ul.order_details li { padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); overflow-wrap: anywhere; }
.woocommerce-order ul.order_details li strong { display: block; margin-top: 4px; font-size: 15px; text-transform: none; letter-spacing: 0; color: var(--text); }
.woocommerce-order h2, .woocommerce-order-details__title, .woocommerce-column__title { margin: 22px 0 12px; font-size: 19px; }
.woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.woocommerce-columns--addresses .woocommerce-column { float: none; width: auto; }
.woocommerce address { margin: 0; padding: 16px 18px; font-style: normal; line-height: 1.7; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce-order .wc-bacs-bank-details-heading { font-size: 19px; }
.woocommerce ul.wc-bacs-bank-details { list-style: none; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

/* ---------- My account ---------- */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 0 24px; align-items: start; }
.woocommerce-account .woocommerce:not(:has(.woocommerce-MyAccount-navigation)) { display: block; }
.woocommerce-account .woocommerce > .woocommerce-notices-wrapper { grid-column: 1 / -1; }
.woocommerce-MyAccount-navigation { position: sticky; top: 14px; float: none; width: auto; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce-MyAccount-navigation li + li { margin-top: 2px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 5px; color: var(--text); font-weight: 500; }
.woocommerce-MyAccount-navigation a:hover { background: #f3f3f3; text-decoration: none; }
.woocommerce-MyAccount-navigation li.is-active a { background: #0a0a0a; color: #fff; font-weight: 700; }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout a { color: #a42d1c; }
.woocommerce-MyAccount-navigation .woocommerce-MyAccount-navigation-link--customer-logout.is-active a { color: #fff; }
.woocommerce-MyAccount-content { float: none; width: auto; min-width: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce-MyAccount-content > h2, .woocommerce-MyAccount-content > h3, .woocommerce-MyAccount-content legend { margin-top: 0; }
.woocommerce-MyAccount-content table.shop_table { margin-bottom: 0; }
.woocommerce-MyAccount-content mark { padding: 1px 8px; background: #f0f0f0; color: var(--text); border-radius: 3px; font-weight: 700; }
.woocommerce-MyAccount-content .woocommerce-info { margin-top: 0; }
.woocommerce-MyAccount-content > .woocommerce-message--info { align-items: flex-start; }
.woocommerce-orders-table .woocommerce-button, .woocommerce-orders-table .button { min-height: 34px; padding: 6px 16px; font-size: 12.5px; margin: 0 4px 4px 0; }
.woocommerce-Addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.woocommerce-Addresses .u-column1, .woocommerce-Addresses .u-column2 { float: none; width: auto; }
.woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.woocommerce-Address-title h2, .woocommerce-Address-title h3 { margin: 0; font-size: 17px; }
.woocommerce-Address-title a.edit { padding: 6px 14px; border: 1px solid #0a0a0a; border-radius: 3px; color: #0a0a0a; font-size: 12.5px; font-weight: 700; }
.woocommerce-Address-title a.edit:hover { background: #0a0a0a; color: #fff; text-decoration: none; }
.woocommerce-EditAccountForm .woocommerce-Button, .woocommerce-address-fields .button, .woocommerce-ResetPassword .button { margin-top: 6px; }
.woocommerce form.lost_reset_password, .woocommerce form.woocommerce-ResetPassword { max-width: 480px; margin: 0 auto; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.woocommerce form.lost_reset_password .form-row-first, .woocommerce form.lost_reset_password .form-row-last { width: 100%; float: none; }

/* Dashboard tiles (templates/woocommerce/myaccount/dashboard.php) */
.acct-hello { margin: 0 0 4px; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.acct-sub { margin: 0 0 22px; color: var(--muted); }
.acct-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.acct-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; color: var(--text); border: 1px solid var(--line); border-radius: 8px; transition: border-color .15s, box-shadow .15s; }
.acct-tile:hover { border-color: #0a0a0a; box-shadow: 0 2px 12px rgba(0, 0, 0, .1); text-decoration: none; color: var(--text); }
.acct-tile .icon { width: 28px; height: 28px; margin-bottom: 8px; }
.acct-tile strong { font-size: 15px; }
.acct-tile span { font-size: 13px; color: var(--muted); }

/* ---------- Phones and tablets ---------- */
@media (max-width: 900px) {
	.woocommerce-cart .woocommerce:has(.cart-collaterals) { display: block; }
	.woocommerce-cart .cart-collaterals { position: static; }
	.woocommerce form.checkout { display: block; }
	.woocommerce form.checkout #customer_details { padding: 18px; margin-bottom: 18px; }
	.woocommerce form.checkout #order_review_heading { display: block; }
	.woocommerce form.checkout #order_review { position: static; }
	.woocommerce-billing-fields__field-wrapper, .woocommerce-shipping-fields__field-wrapper,
	.woocommerce-address-fields__field-wrapper, .woocommerce-EditAccountForm { grid-template-columns: 1fr; }
	.woocommerce-billing-fields__field-wrapper .form-row-first, .woocommerce-billing-fields__field-wrapper .form-row-last,
	.woocommerce-address-fields__field-wrapper .form-row-first, .woocommerce-address-fields__field-wrapper .form-row-last,
	.woocommerce-EditAccountForm > .form-row-first, .woocommerce-EditAccountForm > .form-row-last { grid-column: 1 / -1; }
	.woocommerce-columns--addresses, .woocommerce-Addresses { grid-template-columns: 1fr; }

	/* Account menu becomes a swipeable tab strip. */
	.woocommerce-account .woocommerce { display: block; }
	.woocommerce-MyAccount-navigation { position: static; margin-bottom: 14px; }
	.woocommerce-MyAccount-navigation ul { display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
	.woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
	.woocommerce-MyAccount-navigation li { flex: none; margin: 0; }
	.woocommerce-MyAccount-navigation li + li { margin: 0; }
	.woocommerce-MyAccount-navigation a { padding: 9px 16px; white-space: nowrap; }
	.woocommerce-MyAccount-content { padding: 18px 16px; }

	/* Tables turn into stacked cards. */
	.woocommerce table.shop_table_responsive { border: 0; background: none; border-radius: 0; overflow: visible; }
	.woocommerce table.shop_table_responsive thead { display: none; }
	.woocommerce table.shop_table_responsive tbody, .woocommerce table.shop_table_responsive tr { display: block; }
	.woocommerce table.shop_table_responsive tr { margin-bottom: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
	.woocommerce table.shop_table_responsive td { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; text-align: right; border-top: 1px solid var(--line); }
	.woocommerce table.shop_table_responsive td:first-child { border-top: 0; }
	.woocommerce table.shop_table_responsive tbody th { display: block; padding: 11px 14px; background: #fafafa; border-top: 0; }
	.woocommerce table.shop_table_responsive td::before { content: attr(data-title); font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); text-align: left; }
	.woocommerce table.shop_table_responsive td.product-thumbnail::before, .woocommerce table.shop_table_responsive td.product-remove::before, .woocommerce table.shop_table_responsive td.actions::before { display: none; }

	/* Cart line item: photo on the left, details on the right. */
	.woocommerce-cart table.cart tr.cart_item { position: relative; display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 0 14px; padding: 14px 14px 6px; }
	.woocommerce-cart table.cart tr.cart_item td { padding: 6px 0; border: 0; text-align: right; }
	.woocommerce-cart table.cart tr.cart_item td.product-thumbnail { grid-column: 1; grid-row: 1 / span 4; display: block; align-self: start; width: auto; padding: 0; }
	.woocommerce-cart table.cart tr.cart_item td.product-thumbnail img { width: 76px; height: 76px; }
	.woocommerce-cart table.cart tr.cart_item td.product-name { grid-column: 2; display: block; padding-right: 34px; text-align: left; }
	.woocommerce-cart table.cart tr.cart_item td.product-name::before { display: none; }
	.woocommerce-cart table.cart tr.cart_item td.product-price, .woocommerce-cart table.cart tr.cart_item td.product-quantity, .woocommerce-cart table.cart tr.cart_item td.product-subtotal { grid-column: 2; }
	.woocommerce-cart table.cart tr.cart_item td.product-remove { position: absolute; top: 12px; right: 12px; display: block; width: auto; padding: 0; }
	.woocommerce-cart table.cart tr.cart_item td.product-subtotal { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; font-weight: 800; }
	.woocommerce-cart table.cart tr:not(.cart_item) { padding: 0; }
	.woocommerce-cart table.cart td.actions { display: block; padding: 14px; text-align: left; background: #fff; }
	.woocommerce-cart table.cart td.actions .coupon { display: flex; width: 100%; margin-bottom: 10px; }
	.woocommerce-cart table.cart td.actions .coupon input.input-text { flex: 1; width: auto; min-width: 0; }
	.woocommerce-cart table.cart td.actions > .button[name="update_cart"] { float: none; display: flex; width: 100%; }

	/* Each row's label comes from the cell itself (data-title), so the header cell is hidden. */
	.woocommerce .cart_totals table.shop_table_responsive th { display: none; }
	.woocommerce .cart_totals table.shop_table_responsive tr { border: 0; margin: 0; border-radius: 0; }
	.woocommerce .cart_totals table.shop_table_responsive tr + tr td { border-top: 1px solid var(--line); }
	.woocommerce .cart_totals table.shop_table_responsive .order-total td { font-size: 17px; font-weight: 800; }
	.woocommerce .cart_totals table.shop_table_responsive td { padding: 10px 0; }
	.woocommerce-checkout-review-order-table.shop_table_responsive tr { border: 0; margin: 0; background: none; }
	.woocommerce-order-details table.shop_table { display: block; overflow-x: auto; }

	.acct-tiles { grid-template-columns: 1fr 1fr; }
	.acct-tile { padding: 14px; }
	.woocommerce-order ul.order_details { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.acct-tiles { grid-template-columns: 1fr; }
	.woocommerce .quantity input.qty { width: 100px; }
	.woocommerce-order .woocommerce-thankyou-order-received { font-size: 16px; }
}
