/* WooCommerce's own markup in the Front Porch look (#479): notices, woocommerce_form_field() rows, buttons, tables, the
   payment box, the login and coupon forms, blockUI overlays, the password meter and screen-reader text. Loaded on the
   checkout and its endpoints and on My Account (inc/pages/woocommerce.php), never elsewhere. Selectors are
   WooCommerce's class names at one class of specificity, so a page module's rules (".co …", ".ma …") always win.
   Tokens only (tokens.css). */

:root {
	--wc-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

/* ---------- helpers WooCommerce prints ---------- */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.screen-reader-text:focus { position: static !important; width: auto; height: auto; clip: auto; clip-path: none; white-space: normal; }
.clear { display: none; }
.nobr { white-space: nowrap; } /* table headings (the downloads table's) */

/* ---------- notices ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-error, .woocommerce-message, .woocommerce-info {
	list-style: none; margin: 0 0 16px; padding: 12px 16px 12px 46px; position: relative;
	border: 1px solid var(--line); border-left: 4px solid var(--roof); border-radius: 0 6px 6px 0;
	background: var(--mist); color: var(--ink); font-size: .95rem; line-height: 1.45; overflow-wrap: anywhere;
}
.woocommerce-error::before, .woocommerce-message::before, .woocommerce-info::before {
	content: "i"; position: absolute; left: 14px; top: 12px; width: 20px; height: 20px; border-radius: 50%;
	display: grid; place-items: center; font: 700 .78rem/1 var(--sans); color: var(--white); background: var(--roof);
}
.woocommerce-error { border-color: var(--brick); background: var(--brick-t); color: var(--brick); font-weight: 600; }
.woocommerce-error::before { content: "!"; background: var(--brick); }
.woocommerce-message { border-color: var(--garden-line); border-left-color: var(--garden); background: var(--garden-t); color: var(--garden); font-weight: 600; }
.woocommerce-message::before { content: "\2713"; background: var(--garden); }
.woocommerce-error li + li { margin-top: 4px; }
.woocommerce-error a, .woocommerce-message a, .woocommerce-info a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-info a { color: var(--roof); }
.woocommerce-error:focus, .woocommerce-message:focus, .woocommerce-info:focus { outline: 3px solid var(--focus); outline-offset: 2px; }
.woocommerce-NoticeGroup { scroll-margin-top: calc(var(--hdr-h) + 16px); }
.woocommerce-NoticeGroup .woocommerce-error { margin-bottom: 18px; }
/* a notice's own button ("View cart", "Browse products") sits at the end of the line */
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { float: right; margin: -4px 0 0 12px; min-height: 36px; padding: 0 12px; font-size: .88rem; }

/* ---------- form rows: woocommerce_form_field() and WooCommerce's own forms ---------- */
.form-row { margin: 0 0 16px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.form-row > label, .woocommerce-form-row > label { font-weight: 600; font-size: .92rem; color: var(--navy); line-height: 1.3; }
.form-row .required { color: var(--brick); text-decoration: none; border: 0; font-weight: 700; }
.form-row .optional { color: var(--muted); font-weight: 400; font-size: .86rem; }
.form-row .description { display: block; font-size: .86rem; color: var(--muted); margin-top: 4px; }
.woocommerce-input-wrapper { display: block; min-width: 0; position: relative; }
.input-text, .form-row select, .form-row textarea, .woocommerce-form-row select {
	width: 100%; min-width: 0; height: 48px; padding: 0 12px; border: 1.5px solid var(--field); border-radius: 4px;
	background-color: var(--white); color: var(--ink); font-size: 1rem; line-height: 1.3;
}
.form-row textarea, textarea.input-text { height: auto; min-height: 104px; padding: 10px 12px; line-height: 1.45; resize: vertical; }
.input-text::placeholder, .form-row textarea::placeholder { color: var(--muted); opacity: 1; }
.input-text:focus, .form-row select:focus, .form-row textarea:focus { border-color: var(--roof); box-shadow: 0 0 0 3px rgba(62, 123, 224, .22); outline: 0; }
.input-text:focus-visible, .form-row select:focus-visible, .form-row textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.input-text[readonly], .input-text:disabled, .form-row select:disabled { background-color: var(--mist); color: var(--muted); }
/* native selects with the theme's chevron (masked, so it takes a token colour) */
.woocommerce-input-wrapper > select { -webkit-appearance: none; appearance: none; padding-right: 40px; }
.woocommerce-input-wrapper:has(> select)::after {
	content: ""; position: absolute; right: 12px; top: 15px; width: 18px; height: 18px; pointer-events: none;
	background: var(--roof); -webkit-mask: var(--wc-chev) center / contain no-repeat; mask: var(--wc-chev) center / contain no-repeat;
}
/* a single allowed country prints as text plus a hidden input */
.woocommerce-input-wrapper > strong { display: flex; align-items: center; min-height: 48px; font-weight: 600; color: var(--ink); }
/* invalid and validated fields; WooCommerce's checkout script adds the classes and the inline message */
.woocommerce-invalid .input-text, .woocommerce-invalid select, .woocommerce-invalid textarea,
.input-text[aria-invalid="true"], .form-row select[aria-invalid="true"] { border-color: var(--brick); background-color: var(--brick-t); }
.woocommerce-invalid > label { color: var(--brick); }
.checkout-inline-error-message, .form-row .woocommerce-error-message {
	display: flex; gap: 7px; align-items: flex-start; margin: 2px 0 0; color: var(--brick); font-size: .88rem; font-weight: 600; line-height: 1.35;
}
.checkout-inline-error-message::before, .form-row .woocommerce-error-message::before {
	content: "!"; flex: none; width: 18px; height: 18px; border-radius: 50%; margin-top: 1px;
	display: grid; place-items: center; background: var(--brick); color: var(--white); font-size: .74rem; font-weight: 700;
}
/* checkboxes and radios */
.form-row input[type="checkbox"], .form-row input[type="radio"], .woocommerce-form__input-checkbox, .input-radio, .input-checkbox {
	width: 20px; height: 20px; margin: 0; accent-color: var(--roof); flex: none;
}
.woocommerce-form__label-for-checkbox, .form-row label.checkbox {
	display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-weight: 600; color: var(--navy);
}
.woocommerce-form__label-for-checkbox span { font-weight: 400; color: var(--ink); }
.form-row label.checkbox .required, .woocommerce-form__label-for-checkbox .required { margin-left: -4px; }
fieldset { min-width: 0; }

/* show/hide password (WooCommerce's script adds the button) and the strength meter */
.password-input { position: relative; display: block; }
.password-input .input-text { padding-right: 72px; }
.show-password-input {
	position: absolute; right: 4px; top: 4px; height: 40px; min-width: 58px; padding: 0 10px; border: 0; border-radius: 4px;
	background: none; color: var(--roof); font-weight: 700; font-size: .86rem; cursor: pointer;
}
.show-password-input::after { content: "Show"; }
.show-password-input.display-password::after { content: "Hide"; }
.show-password-input:hover { background: var(--mist); }
.woocommerce-password-strength { font-size: .86rem; font-weight: 700; margin-top: 6px; padding: 6px 10px; border-radius: 4px; background: var(--mist); color: var(--navy); }
.woocommerce-password-strength.bad, .woocommerce-password-strength.short { color: var(--brick); background: var(--brick-t); }
.woocommerce-password-strength.strong { color: var(--garden); background: var(--garden-t); }
.woocommerce-password-hint { display: block; font-size: .84rem; color: var(--muted); margin-top: 4px; }

/* ---------- buttons WooCommerce prints ---------- */
.button, .woocommerce-button, .woocommerce-Button {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border: 1.5px solid var(--roof); border-radius: 4px; background: var(--white); color: var(--roof);
	font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.button:hover, .woocommerce-button:hover, .woocommerce-Button:hover { background: var(--mist); text-decoration: none; }
.button.alt, button.button[type="submit"], .woocommerce-Button[type="submit"], #place_order, .button-classwallet {
	border-color: var(--roof); background: var(--roof); color: var(--white); font-weight: 700;
}
.button.alt:hover, button.button[type="submit"]:hover, .woocommerce-Button[type="submit"]:hover, #place_order:hover, .button-classwallet:hover {
	background: var(--navy); border-color: var(--navy);
}
.button:disabled, .button.disabled, #place_order:disabled { background: var(--faint); border-color: var(--faint); color: var(--white); cursor: not-allowed; }
.button-classwallet { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border: 1.5px solid var(--roof); border-radius: 4px; cursor: pointer; }

/* ---------- tables: the order review, order details, orders, downloads, Digital Files ---------- */
.shop_table { width: 100%; border-collapse: collapse; font-size: .95rem; font-variant-numeric: tabular-nums; }
.shop_table th, .shop_table td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.shop_table th:last-child, .shop_table td:last-child { padding-right: 0; }
.shop_table thead th { font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding-top: 0; }
.shop_table tfoot th { font-weight: 600; color: var(--navy); }
.shop_table .product-total, .shop_table .product-subtotal, .shop_table tfoot td { text-align: right; }
.shop_table .product-quantity { color: var(--muted); font-weight: 700; white-space: nowrap; }
.shop_table .woocommerce-Price-amount { font-weight: 700; }
.shop_table .order-total th, .shop_table .order-total td, .shop_table tfoot tr:last-child th, .shop_table tfoot tr:last-child td { border-bottom: 0; }
.shop_table .order-total th, .shop_table .order-total td { font-size: 1.15rem; color: var(--navy); padding-top: 14px; }
.shop_table .order-total .woocommerce-Price-amount { font-size: 1.2rem; }
.shop_table small, .shop_table .includes_tax, .shop_table .tax_label { font-size: .82rem; color: var(--muted); font-weight: 400; }
.shop_table dl.variation, .wc-item-meta { margin: 4px 0 0; font-size: .86rem; color: var(--muted); }
.shop_table dl.variation dt, .shop_table dl.variation dd { display: inline; margin: 0; }
.shop_table dl.variation p, .wc-item-meta p { display: inline; margin: 0; }
.wc-item-meta li { display: flex; flex-wrap: wrap; gap: 4px; }
.woocommerce-table--order-details tfoot td, .woocommerce-table--order-details .product-total { text-align: right; }
.hwb-digital-files-table small { color: var(--muted); }
.hwb-digital-files-table .button, .woocommerce-table--order-downloads .button, .order-again .button { min-height: 40px; padding: 0 14px; font-size: .9rem; margin: 2px 6px 2px 0; }
/* shipping choices inside the order review: option cards (radio + label, as WooCommerce prints them) */
#shipping_method, .woocommerce-shipping-methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.woocommerce-shipping-methods li { position: relative; text-align: left; }
.woocommerce-shipping-methods li input[type="radio"] { position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; margin: 0; accent-color: var(--roof); }
.woocommerce-shipping-methods li input[type="radio"] + label {
	display: block; min-height: 44px; padding: 10px 12px 10px 42px; border: 1.5px solid var(--line); border-radius: 6px;
	background: var(--white); cursor: pointer; font-weight: 600; color: var(--navy); line-height: 1.35;
}
.woocommerce-shipping-methods li input[type="radio"]:checked + label { border-color: var(--roof); box-shadow: inset 0 0 0 1px var(--roof); }
.woocommerce-shipping-methods li input[type="hidden"] + label { display: block; font-weight: 600; color: var(--navy); }
.woocommerce-shipping-destination, .woocommerce-shipping-contents { font-size: .82rem; color: var(--muted); margin: 6px 0 0; font-weight: 400; }
.woocommerce-shipping-calculator { margin-top: 6px; }
@media (max-width: 699px) {
	.shop_table_responsive thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
	.shop_table_responsive, .shop_table_responsive tbody, .shop_table_responsive tr { display: block; }
	.shop_table_responsive tbody tr { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 14px; margin-bottom: 12px; }
	.shop_table_responsive tbody th, .shop_table_responsive tbody td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; text-align: right; }
	.shop_table_responsive tbody tr > :last-child { border-bottom: 0; }
	.shop_table_responsive [data-title]::before { content: attr(data-title); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; text-align: left; flex: none; }
	.hwb-digital-files-table td { display: block; padding: 8px 0; white-space: normal !important; } /* the plugin's inline nowrap on its buttons' cell */
	.hwb-digital-files-table, .hwb-digital-files-table tbody, .hwb-digital-files-table tr { display: block; }
	.hwb-digital-files-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
	.hwb-digital-files-table tr { border: 1.5px solid var(--line); border-radius: 8px; padding: 6px 14px; margin-bottom: 12px; }
	.hwb-digital-files-table td:last-child { border-bottom: 0; }
}

/* ---------- addresses on an order ---------- */
.woocommerce-columns--addresses { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .woocommerce-columns--addresses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.woocommerce-customer-details address { font-style: normal; border: 1.5px solid var(--line); border-radius: 8px; padding: 16px 18px; line-height: 1.55; overflow-wrap: anywhere; background: var(--white); }
.woocommerce-customer-details--phone, .woocommerce-customer-details--email { margin: 6px 0 0; }
.woocommerce-column__title, .woocommerce-order-details__title, .woocommerce-order-downloads__title { font-size: 1.35rem; margin: 0 0 10px; }

/* ---------- payment methods: checkout, order-pay and add payment method ---------- */
.wc_payment_methods, .payment_methods { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wc_payment_method, .woocommerce-PaymentMethod { border: 1.5px solid var(--line); border-radius: 6px; background: var(--white); padding: 12px 14px; }
.wc_payment_method:has(> input:checked), .woocommerce-PaymentMethod:has(> input:checked) { border-color: var(--roof); box-shadow: inset 0 0 0 1px var(--roof); }
.wc_payment_method > input.input-radio, .woocommerce-PaymentMethod > input.input-radio { vertical-align: -4px; margin-right: 8px; }
.wc_payment_method > label, .woocommerce-PaymentMethod > label { font-weight: 700; color: var(--navy); cursor: pointer; }
.wc_payment_method > label img, .woocommerce-PaymentMethod > label img { display: inline-block; max-height: 24px; width: auto; vertical-align: middle; margin-left: 6px; }
.wc_payment_method > .notice, .wc_payment_methods > li > .woocommerce-info { margin: 0; }
.payment_box { margin-top: 10px; padding: 12px 14px; background: var(--mist); border-radius: 6px; font-size: .92rem; color: var(--ink); }
.payment_box p { margin: 0 0 8px; }
.payment_box p:last-child { margin-bottom: 0; }
.payment_box > p:first-child:last-child { margin: 0; }
/* the card form (WooCommerce's wc-credit-card-form markup, printed by the gateway: markup and attributes untouched) */
fieldset.wc-credit-card-form, fieldset.wc-payment-form { border: 0; padding: 0; margin: 10px 0 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.wc-credit-card-form .form-row, .wc-payment-form .form-row { margin: 0; }
.wc-credit-card-form .form-row-wide, .wc-payment-form .form-row-wide, .wc-credit-card-form .clear + .form-row { grid-column: 1 / -1; }
.wc-credit-card-form .input-text { letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.woocommerce-SavedPaymentMethods { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.woocommerce-SavedPaymentMethods li { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.woocommerce-SavedPaymentMethods-saveNew { margin-top: 10px; }
@media (max-width: 400px) {
	fieldset.wc-credit-card-form, fieldset.wc-payment-form { grid-template-columns: minmax(0, 1fr); }
	.wc-credit-card-form .form-row-first, .wc-credit-card-form .form-row-last { grid-column: 1 / -1; }
}
.woocommerce-terms-and-conditions-wrapper, .woocommerce-privacy-policy-text { font-size: .86rem; color: var(--muted); }
.woocommerce-privacy-policy-text p { margin: 8px 0 0; }
.woocommerce-privacy-policy-text a, .woocommerce-terms-and-conditions-link { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-terms-and-conditions { max-height: 200px; overflow: auto; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: var(--white); margin: 8px 0; }

/* ---------- the login, coupon and verify-email forms WooCommerce prints in a page ---------- */
form.woocommerce-form-login, form.checkout_coupon, form.woocommerce-verify-email {
	border: 1.5px solid var(--line); border-radius: 8px; padding: 18px 20px; margin: 0 0 18px; background: var(--white); max-width: 640px;
}
form.woocommerce-form-login > p:first-child, form.woocommerce-verify-email > p:first-of-type { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
form.woocommerce-form-login .form-row-first, form.woocommerce-form-login .form-row-last { grid-column: auto; }
form.woocommerce-form-login .woocommerce-form-login__rememberme { margin-right: 14px; }
form.woocommerce-form-login .lost_password { margin: 4px 0 0; font-size: .92rem; }
form.woocommerce-form-login .lost_password a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
form.checkout_coupon { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
form.checkout_coupon .form-row { margin: 0; }
form.checkout_coupon .form-row-first { flex: 1 1 200px; }
form.checkout_coupon .input-text { text-transform: uppercase; }
form.checkout_coupon .input-text::placeholder { text-transform: none; }

/* ---------- blockUI (WooCommerce's "working…" overlay) ---------- */
.blockUI.blockOverlay { border-radius: 6px; } /* blockUI positions it inline (absolute over the element it blocks) */
.blockUI.blockOverlay::before {
	content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%;
	border: 3px solid var(--line); border-top-color: var(--roof); animation: hwb-wc-spin .8s linear infinite;
}
@keyframes hwb-wc-spin { to { transform: rotate(360deg); } }
.processing .blockUI.blockOverlay { cursor: wait; }
