/* =========================================================================
   HEC — WooCommerce surfaces in brand
   Login / register / lost & reset password / basket / checkout / thank-you
   ========================================================================= */

.hec-theme .woocommerce { font-family: var(--body, 'Poppins', system-ui, sans-serif); color: var(--ink); }
.hec-theme .woocommerce h1, .hec-theme .woocommerce h2, .hec-theme .woocommerce h3 { font-family: var(--display, 'Playfair Display', Georgia, serif); color: var(--navy); }

/* ---- Notices ---- */
.hec-theme .woocommerce-message, .hec-theme .woocommerce-info, .hec-theme .woocommerce-error {
	border: 0; border-left: 4px solid var(--navy); background: var(--green-pale); color: var(--ink);
	border-radius: 10px; padding: 14px 18px 14px 20px; margin: 0 0 22px; list-style: none;
}
.hec-theme .woocommerce-message::before, .hec-theme .woocommerce-info::before, .hec-theme .woocommerce-error::before { display: none; }
.hec-theme .woocommerce-error { border-left-color: #b32d2e; background: #fdf1f1; }
.hec-theme .woocommerce-message .button, .hec-theme .woocommerce-info .button { float: right; margin-left: 12px; }

/* Notices never take a focus ring (WooCommerce focuses them for screen readers). */
.hec-theme .woocommerce-message:focus, .hec-theme .woocommerce-info:focus, .hec-theme .woocommerce-error:focus,
.hec-theme .woocommerce-message:focus-visible, .hec-theme .woocommerce-info:focus-visible, .hec-theme .woocommerce-error:focus-visible { outline: none; }
.hec-theme .woocommerce-error li, .hec-theme .woocommerce-message li, .hec-theme .woocommerce-info li { list-style: none; margin: 0; padding: 0; }
.hec-theme .woocommerce-error li + li { margin-top: 6px; }
.hec-theme .woocommerce-error a { color: #8a1f20; font-weight: 600; }
.hec-theme .woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.hec-theme .woocommerce-notices-wrapper:not(:empty) { max-width: 1060px; margin-left: auto; margin-right: auto; }

/* ---- Inputs ---- */
.hec-theme .woocommerce form .form-row label { font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; display: block; }
.hec-theme .woocommerce form .form-row .required { color: #b32d2e; text-decoration: none; }
.hec-theme .woocommerce form .form-row input.input-text,
.hec-theme .woocommerce form .form-row textarea,
.hec-theme .woocommerce form .form-row select,
.hec-theme .woocommerce .select2-container--default .select2-selection--single {
	width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
	padding: 13px 15px; font: inherit; font-size: 15px; color: var(--ink); transition: border-color .15s, box-shadow .15s; height: auto; box-shadow: none;
}
.hec-theme .woocommerce .select2-container--default .select2-selection--single { padding: 9px 15px; }
.hec-theme .woocommerce .select2-container--default .select2-selection--single .select2-selection__arrow { top: 12px; right: 8px; }
.hec-theme .woocommerce form .form-row input.input-text:focus,
.hec-theme .woocommerce form .form-row textarea:focus,
.hec-theme .woocommerce form .form-row select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0,36,125,.12); }
.hec-theme .woocommerce form .password-input { position: relative; display: block; width: 100%; }
.hec-theme .woocommerce form .password-input input.input-text { padding-right: 48px; }
/* Show/hide password: an eye icon inside the field (replaces WooCommerce's text/dashicon toggle). */
.hec-theme .woocommerce form .show-password-input {
	position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
	width: 32px; height: 32px; padding: 0; margin: 0; border: 0; border-radius: 6px; background: transparent;
	cursor: pointer; font-size: 0; line-height: 0; color: transparent; text-indent: -9999px; overflow: hidden;
}
.hec-theme .woocommerce form .show-password-input::before, .hec-theme .woocommerce form .show-password-input::after {
	content: ""; position: absolute; inset: 0; text-indent: 0; margin: auto; width: 22px; height: 22px; background-color: var(--grey);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center / 22px 22px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") no-repeat center / 22px 22px;
	font-family: inherit; display: block;
}
.hec-theme .woocommerce form .show-password-input::after { display: none; }
.hec-theme .woocommerce form .show-password-input.display-password::before {
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 10.6a3 3 0 0 0 4.2 4.2M9.9 5.2A10.4 10.4 0 0 1 12 5c6.5 0 10 7 10 7a17.6 17.6 0 0 1-3.2 4.2M6.6 6.6C3.9 8.4 2 12 2 12s3.5 7 10 7c1.6 0 3-.4 4.3-1'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 10.6a3 3 0 0 0 4.2 4.2M9.9 5.2A10.4 10.4 0 0 1 12 5c6.5 0 10 7 10 7a17.6 17.6 0 0 1-3.2 4.2M6.6 6.6C3.9 8.4 2 12 2 12s3.5 7 10 7c1.6 0 3-.4 4.3-1'/%3E%3C/svg%3E");
}
.hec-theme .woocommerce form .show-password-input:hover::before, .hec-theme .woocommerce form .show-password-input:focus-visible::before { background-color: var(--navy); }
.hec-theme .woocommerce form .show-password-input:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.hec-theme .woocommerce form .form-row.woocommerce-invalid input.input-text { border-color: #b32d2e; }

/* ---- Buttons ---- */
.hec-theme .woocommerce button.button, .hec-theme .woocommerce a.button, .hec-theme .woocommerce input.button,
.hec-theme .woocommerce #respond input#submit, .hec-theme .woocommerce button.button.alt, .hec-theme .woocommerce a.button.alt,
.hec-theme .woocommerce #payment #place_order, .hec-theme .woocommerce .wc-block-components-button {
	background: var(--gold); color: var(--navy-dk); font-family: inherit; font-weight: 600; font-size: 14.5px;
	border-radius: 10px; padding: 14px 24px; border: 0; line-height: 1; transition: background .15s, transform .08s; text-decoration: none;
}
.hec-theme .woocommerce button.button:hover, .hec-theme .woocommerce a.button:hover, .hec-theme .woocommerce button.button.alt:hover,
.hec-theme .woocommerce #payment #place_order:hover { background: var(--gold-soft); color: var(--navy-dk); transform: translateY(-1px); }
.hec-theme .woocommerce button.button:disabled, .hec-theme .woocommerce button.button.alt:disabled,
.hec-theme .woocommerce button.button.disabled { opacity: .5; cursor: not-allowed; }
.hec-theme .woocommerce #payment #place_order { width: 100%; padding: 17px 24px; font-size: 16px; }

/* ---- Auth (login / register / lost / reset) ---- */
.hec-auth { max-width: 1060px; margin: 40px auto 70px; padding: 0 24px; }
.hec-auth-head { text-align: center; margin-bottom: 34px; }
.hec-auth-head .hec-eyebrow { margin-bottom: 6px; }
.hec-auth-head h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 40px); }
.hec-auth-head p { color: var(--grey); margin: 0; }
.hec-auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }
.hec-auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px; box-shadow: 0 10px 34px rgba(0,36,125,.07); }
.hec-auth-card--register { background: var(--card); }
.hec-auth-card h2 { font-size: 24px; margin: 0 0 4px; }
.hec-auth-card .hec-auth-lede { color: var(--grey); font-size: 14px; margin: 0 0 20px; }
.hec-auth-card .form-row { margin-bottom: 16px; float: none; width: 100%; }
.hec-reg-names { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hec-theme .woocommerce form .hec-reg-names .form-row, .hec-theme .woocommerce form .hec-reg-names .form-row-first, .hec-theme .woocommerce form .hec-reg-names .form-row-last { width: 100%; float: none; margin: 0 0 16px; }
.hec-theme .woocommerce form .hec-reg-names .form-row input.input-text { width: 100%; }
.hec-theme .woocommerce form .hec-auth-card .form-row input.input-text, .hec-theme .woocommerce form .hec-auth-card .password-input { width: 100%; }
.hec-auth-card .woocommerce-form-login__rememberme { display: flex; align-items: center; gap: 8px; font-weight: 500; color: var(--grey); font-size: 14px; margin: 4px 0 14px; }
.hec-auth-card .woocommerce-form-login__submit, .hec-auth-card .woocommerce-form-register__submit,
.hec-auth-card .woocommerce-Button { width: 100%; }
.hec-auth-card .woocommerce-LostPassword { text-align: center; margin: 14px 0 0; font-size: 14px; }
.hec-auth-card .woocommerce-LostPassword a, .hec-auth-card .woocommerce-privacy-policy-text a { color: var(--navy-lt); }
.hec-auth-card .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--grey); }
/* Errors / messages shown inside the card that was submitted. */
.hec-auth-notices { margin: 0 0 18px; scroll-margin-top: calc(var(--hec-header-h, 0px) + 24px); }
.hec-auth > .hec-auth-notices { max-width: 720px; margin: 0 auto 24px; }
.hec-auth-notices .woocommerce-error, .hec-auth-notices .woocommerce-message, .hec-auth-notices .woocommerce-info { margin: 0; font-size: 14.5px; line-height: 1.5; display: block; }
.hec-auth-notices .woocommerce-error { border: 1px solid #f0c4c4; border-left: 4px solid #b32d2e; color: #5c1415; }
.hec-auth-notices .woocommerce-error + .woocommerce-message, .hec-auth-notices .woocommerce-message + .woocommerce-error { margin-top: 10px; }

/* Password strength meter + hint (WooCommerce's own stylesheet is not loaded). */
.hec-theme .woocommerce .woocommerce-password-strength {
	position: relative; margin: 10px 0 0; padding: 12px 0 0; font-size: 13px; font-weight: 600; line-height: 1.4; text-align: left; color: #8a1f20;
}
.hec-theme .woocommerce .woocommerce-password-strength::before, .hec-theme .woocommerce .woocommerce-password-strength::after {
	content: ""; position: absolute; left: 0; top: 0; height: 5px; border-radius: 100px;
}
.hec-theme .woocommerce .woocommerce-password-strength::before { right: 0; background: #E4E5E9; }
.hec-theme .woocommerce .woocommerce-password-strength::after { width: 12%; background: #b32d2e; transition: width .25s ease, background-color .25s ease; }
.hec-theme .woocommerce .woocommerce-password-strength.bad { color: #a8501a; }
.hec-theme .woocommerce .woocommerce-password-strength.bad::after { width: 35%; background: #d97a2b; }
.hec-theme .woocommerce .woocommerce-password-strength.good { color: #7a6300; }
.hec-theme .woocommerce .woocommerce-password-strength.good::after { width: 68%; background: #F5B82E; }
.hec-theme .woocommerce .woocommerce-password-strength.strong { color: var(--navy-lt); }
.hec-theme .woocommerce .woocommerce-password-strength.strong::after { width: 100%; background: var(--navy-lt); }
.hec-theme .woocommerce .woocommerce-password-hint { display: block; margin: 6px 0 0; font-size: 12.5px; line-height: 1.5; color: var(--grey); font-weight: 400; }
.hec-auth-card .woocommerce-form-register__submit[disabled] + .hec-auth-why,
.hec-auth-why { display: none; }
.hec-auth-card form.hec-pw-weak .hec-auth-why { display: block; margin: 10px 0 0; font-size: 12.5px; color: var(--grey); text-align: center; }

.hec-auth-benefits { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.hec-auth-benefits li { position: relative; padding-left: 26px; font-size: 14px; color: var(--ink); }
.hec-auth-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--navy-lt); font-weight: 700; }
.hec-theme .woocommerce-ResetPassword, .hec-theme .woocommerce-lost-password .woocommerce form.lost_reset_password { max-width: 520px; margin: 30px auto 60px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 30px; }
.hec-theme .woocommerce-lost-password .woocommerce-notices-wrapper:not(:empty) { max-width: 520px; margin: 30px auto -6px; }
.hec-theme .lost_reset_password p:first-of-type { color: var(--grey); font-size: 14.5px; }
.hec-theme .lost_reset_password .form-row { float: none; width: 100%; margin-bottom: 16px; }
.hec-theme .lost_reset_password .button { width: 100%; }
@media (max-width: 800px) { .hec-auth-grid { grid-template-columns: 1fr; } .hec-reg-names { grid-template-columns: 1fr; } }

/* ---- Cart / basket ---- */
.hec-wc-page .woocommerce { max-width: 1160px; margin: 0 auto; }
.hec-theme .woocommerce-cart .woocommerce, .hec-theme .woocommerce-checkout .woocommerce { max-width: 1160px; margin: 0 auto; padding: 10px 0 40px; }
.hec-theme .woocommerce-cart-form { margin: 0 0 24px; }
.hec-theme .woocommerce-cart-form table.shop_table { width: 100%; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; border-collapse: separate; border-spacing: 0; background: #fff; margin: 0; }
.hec-theme .woocommerce table.shop_table th { background: var(--green-pale); color: var(--navy); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; padding: 14px 16px; border: 0; text-align: left; }
.hec-theme .woocommerce table.shop_table td { padding: 16px; border-top: 1px solid var(--line); border-left: 0; border-right: 0; vertical-align: middle; }
.hec-theme .woocommerce table.shop_table td.product-name a { color: var(--navy); font-weight: 600; text-decoration: none; font-size: 15.5px; }
.hec-theme .woocommerce table.shop_table td.product-name dl.variation, .hec-theme .woocommerce table.shop_table td.product-name .wc-item-meta { font-size: 13px; color: var(--grey); margin-top: 4px; }
.hec-theme .woocommerce table.shop_table td.product-thumbnail img { width: 64px; height: auto; border-radius: 8px; }
.hec-theme .woocommerce table.shop_table th.product-price, .hec-theme .woocommerce table.shop_table th.product-subtotal, .hec-theme .woocommerce table.shop_table td.product-price, .hec-theme .woocommerce table.shop_table td.product-subtotal { text-align: right; }
.hec-theme .woocommerce .cart .product-quantity, .hec-theme .woocommerce table.shop_table th.product-quantity, .hec-theme .woocommerce table.shop_table td.product-quantity { display: none; }
/* Basket totals / order review: the Subtotal row is shown only when something sits between it and the Total (a coupon, fee or shipping line). */
.hec-theme .woocommerce .cart_totals table.shop_table:not(:has(.cart-discount, .fee, .shipping, .tax-rate, .tax-total)) tr.cart-subtotal,
.hec-theme .woocommerce-checkout #order_review table.shop_table:not(:has(.cart-discount, .fee, .shipping, .tax-rate, .tax-total)) tr.cart-subtotal { display: none; }
/* Courses are single-quantity, so Price and Subtotal are always the same figure: show Price only. */
.hec-theme .woocommerce-cart-form table.shop_table th.product-subtotal, .hec-theme .woocommerce-cart-form table.shop_table td.product-subtotal { display: none; }
.hec-theme .woocommerce a.remove { display: inline-flex; align-items: center; justify-content: center; color: var(--grey) !important; width: 26px; height: 26px; line-height: 1; border-radius: 50%; font-size: 20px; }
.hec-theme .woocommerce a.remove:hover { background: #b32d2e; color: #fff !important; }
.hec-theme .woocommerce-cart-form table.shop_table td.actions { padding: 16px; background: #fff; }
.hec-theme .woocommerce-cart-form td.actions .coupon { float: none; display: inline-flex; gap: 8px; margin: 0 12px 0 0; vertical-align: middle; }
.hec-theme .woocommerce-cart-form td.actions .coupon input.input-text { width: 200px; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.hec-theme .woocommerce-cart-form td.actions button[name="update_cart"] { float: none; vertical-align: middle; opacity: 1 !important; }
.hec-theme .woocommerce .cart-collaterals { display: flow-root; width: 100%; }
.hec-theme .woocommerce .cart-collaterals .cross-sells { display: none; }
.hec-theme .woocommerce .cart_totals { float: right; width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin: 0; }
.hec-theme .woocommerce .cart_totals h2 { font-size: 20px; margin: 0 0 12px; }
.hec-theme .woocommerce .cart_totals table.shop_table { border: 0; background: transparent; width: 100%; }
.hec-theme .woocommerce .cart_totals table.shop_table th, .hec-theme .woocommerce .cart_totals table.shop_table td { background: transparent; text-transform: none; letter-spacing: 0; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; text-align: left; }
.hec-theme .woocommerce .cart_totals table.shop_table tr:first-child th, .hec-theme .woocommerce .cart_totals table.shop_table tr:first-child td { border-top: 0; }
.hec-theme .woocommerce .cart_totals table.shop_table td { text-align: right; }
.hec-theme .woocommerce .cart_totals .order-total th, .hec-theme .woocommerce .cart_totals .order-total td { border-top: 2px solid var(--line); font-family: var(--display); font-size: 22px; color: var(--navy); }
.hec-theme .woocommerce .wc-proceed-to-checkout { padding: 16px 0 0; }
.hec-theme .woocommerce .wc-proceed-to-checkout a.checkout-button { display: block; width: 100%; text-align: center; padding: 16px; font-size: 16px; }
.hec-theme .woocommerce .cart-empty, .hec-theme .woocommerce .return-to-shop { text-align: center; }
.hec-theme .woocommerce .cart-empty.woocommerce-info { display: block; max-width: 620px; margin: 40px auto 18px; }

/* ---- Checkout ---- */
.hec-theme .woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); grid-template-rows: auto auto 1fr; gap: 6px 30px; align-items: start; }
.hec-theme .woocommerce-checkout form.checkout > .woocommerce-form-login-toggle, .hec-theme .woocommerce-checkout form.checkout > .woocommerce-form-coupon-toggle, .hec-theme .woocommerce-checkout form.checkout > .woocommerce-form-login, .hec-theme .woocommerce-checkout form.checkout > .checkout_coupon, .hec-theme .woocommerce-checkout .woocommerce-form-login-toggle, .hec-theme .woocommerce-checkout .woocommerce-form-coupon-toggle { grid-column: 1 / -1; }
.hec-theme .woocommerce-checkout #customer_details { grid-column: 1; grid-row: 2 / span 2; min-width: 0; }
.hec-theme .woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 2; margin: 0 0 6px; font-size: 22px; }
.hec-theme .woocommerce-checkout #order_review { grid-column: 2; grid-row: 3; }
.hec-theme .woocommerce-checkout .col2-set, .hec-theme .woocommerce-checkout .col2-set .col-1, .hec-theme .woocommerce-checkout .col2-set .col-2 { width: 100%; float: none; margin: 0; padding: 0; max-width: none; }
.hec-theme .woocommerce-checkout .woocommerce-billing-fields, .hec-theme .woocommerce-checkout .woocommerce-additional-fields, .hec-theme .woocommerce-checkout .woocommerce-account-fields { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px 8px; margin: 0 0 20px; }
.hec-theme .woocommerce-checkout .woocommerce-billing-fields h3, .hec-theme .woocommerce-checkout .woocommerce-additional-fields h3 { font-size: 22px; margin: 0 0 16px; }
.hec-theme .woocommerce-checkout .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hec-theme .woocommerce-checkout .form-row { float: none; margin: 0 0 16px; padding: 0; width: auto; }
.hec-theme .woocommerce-checkout .form-row-first { grid-column: 1; }
.hec-theme .woocommerce-checkout .form-row-last { grid-column: 2; }
.hec-theme .woocommerce-checkout .form-row-wide, .hec-theme .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > p.notes { grid-column: 1 / -1; }
.hec-theme .woocommerce-checkout #order_review { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; position: sticky; top: calc(var(--hec-header-h, 0px) + 20px); }
.hec-theme .woocommerce-checkout #order_review table.shop_table { border: 0; background: transparent; margin: 0; width: 100%; }
.hec-theme .woocommerce-checkout #order_review table.shop_table th, .hec-theme .woocommerce-checkout #order_review table.shop_table td { background: transparent; text-transform: none; letter-spacing: 0; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; text-align: left; }
.hec-theme .woocommerce-checkout #order_review table.shop_table thead th { border-top: 0; color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.hec-theme .woocommerce-checkout #order_review td.product-name { color: var(--navy); font-weight: 600; }
.hec-theme .woocommerce-checkout #order_review td.product-total, .hec-theme .woocommerce-checkout #order_review .cart-subtotal td, .hec-theme .woocommerce-checkout #order_review .order-total td { text-align: right; }
.hec-theme .woocommerce-checkout #order_review .order-total th, .hec-theme .woocommerce-checkout #order_review .order-total td { font-family: var(--display); font-size: 22px; color: var(--navy); }
.hec-theme .woocommerce-checkout #payment { background: transparent; border-radius: 0; margin: 8px 0 0; padding: 0; }
.hec-theme .woocommerce-checkout #payment ul.payment_methods { border: 0; padding: 0; margin: 0; list-style: none; }
.hec-theme .woocommerce-checkout #payment ul.payment_methods li { list-style: none; margin: 0 0 6px; }
.hec-theme .woocommerce-checkout #payment div.payment_box { background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: 13.5px; margin: 6px 0; }
.hec-theme .woocommerce-checkout #payment div.payment_box::before { display: none; }
/* Card fields (gateway payment box): breathing room inside the box, labels clear of the border, the
   save-card checkbox on its own line; on phones every card field full width, one under another. */
.hec-theme .woocommerce-checkout #payment div.payment_box { padding: 14px 16px 12px; }
.hec-theme .woocommerce-checkout #payment div.payment_box fieldset { border: 0; padding: 0; margin: 0; }
.hec-theme .woocommerce-checkout #payment div.payment_box .form-row { margin: 0 0 12px; padding: 0; }
.hec-theme .woocommerce-checkout #payment div.payment_box label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 13.5px; }
.hec-theme .woocommerce-checkout #payment div.payment_box .form-row.woocommerce-SavedPaymentMethods-saveNew,
.hec-theme .woocommerce-checkout #payment div.payment_box .wc-stripe-save-source,
.hec-theme .woocommerce-checkout #payment div.payment_box p.form-row:has(input[type="checkbox"]) { margin: 12px 0 0; display: flex; align-items: center; gap: 8px; }
.hec-theme .woocommerce-checkout #payment div.payment_box p.form-row:has(input[type="checkbox"]) label { margin: 0; display: inline; font-weight: 500; }
.hec-theme .woocommerce-checkout #payment div.payment_box .wc-credit-card-form-card-number,
.hec-theme .woocommerce-checkout #payment div.payment_box .wc-credit-card-form-card-expiry,
.hec-theme .woocommerce-checkout #payment div.payment_box .wc-credit-card-form-card-cvc,
.hec-theme .woocommerce-checkout #payment div.payment_box .StripeElement,
.hec-theme .woocommerce-checkout #payment div.payment_box .wc-stripe-elements-field,
.hec-theme .woocommerce-checkout #payment div.payment_box iframe { max-width: 100%; }
@media (max-width: 760px) {
	.hec-theme .woocommerce-checkout #payment div.payment_box { padding: 12px 12px 10px; }
	.hec-theme .woocommerce-checkout #payment div.payment_box .form-row,
	.hec-theme .woocommerce-checkout #payment div.payment_box .form-row-first,
	.hec-theme .woocommerce-checkout #payment div.payment_box .form-row-last,
	.hec-theme .woocommerce-checkout #payment div.payment_box .form-row-wide { width: 100% !important; float: none !important; margin-left: 0 !important; margin-right: 0 !important; grid-column: 1 / -1; }
	.hec-theme .woocommerce-checkout #payment div.payment_box .form-row + .form-row { margin-top: 0; }
	.hec-theme .woocommerce-checkout #payment ul.payment_methods li label { line-height: 1.4; }
	.hec-theme .woocommerce-checkout #payment ul.payment_methods li label img { max-height: 22px; vertical-align: middle; }
}
.hec-theme .woocommerce-checkout #payment .place-order { padding: 10px 0 0; margin: 0; }
.hec-theme .woocommerce-checkout #payment .woocommerce-privacy-policy-text { font-size: 12.5px; color: var(--grey); margin-bottom: 10px; }
.hec-theme .woocommerce-checkout #payment #place_order { width: 100%; }
.hec-theme .woocommerce-checkout form.login, .hec-theme .woocommerce-checkout form.checkout_coupon { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 0 0 20px; }
.hec-theme .woocommerce-checkout .woocommerce-account-fields .create-account { background: var(--green-pale); border-radius: 10px; padding: 12px 14px; margin: 6px 0 4px; }
@media (max-width: 900px) {
	.hec-theme .woocommerce-checkout form.checkout { grid-template-columns: 1fr; grid-template-rows: none; }
	.hec-theme .woocommerce-checkout #customer_details, .hec-theme .woocommerce-checkout #order_review_heading, .hec-theme .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
	.hec-theme .woocommerce-checkout #order_review { position: static; }
	.hec-theme .woocommerce-checkout .woocommerce-billing-fields__field-wrapper { grid-template-columns: 1fr; }
	.hec-theme .woocommerce-checkout .form-row-first, .hec-theme .woocommerce-checkout .form-row-last, .hec-theme .woocommerce-checkout .form-row-wide, .hec-theme .woocommerce-checkout .woocommerce-billing-fields__field-wrapper > p.notes { grid-column: 1 / -1; width: 100%; }
	.hec-theme .woocommerce .cart_totals { max-width: none; float: none; }
}

/* ---- Phones: basket as stacked cards, full-width coupon row, tighter checkout cards ---- */
@media (max-width: 760px) {
	.hec-theme .woocommerce-cart-form table.shop_table thead { display: none; }
	.hec-theme .woocommerce-cart-form table.shop_table, .hec-theme .woocommerce-cart-form table.shop_table tbody, .hec-theme .woocommerce-cart-form table.shop_table tr, .hec-theme .woocommerce-cart-form table.shop_table td { display: block; width: 100%; box-sizing: border-box; }
	.hec-theme .woocommerce-cart-form table.shop_table tr.cart_item { position: relative; padding: 14px 16px 12px 16px; border-top: 1px solid var(--line); }
	.hec-theme .woocommerce-cart-form table.shop_table tr.cart_item:first-child { border-top: 0; }
	.hec-theme .woocommerce-cart-form table.shop_table tr.cart_item td { padding: 0; border: 0; text-align: left; }
	.hec-theme .woocommerce-cart-form table.shop_table td.product-remove { position: absolute; top: 12px; right: 12px; width: auto; }
	.hec-theme .woocommerce-cart-form table.shop_table td.product-thumbnail { display: none; }
	/* The name cell keeps clear of the × (the generic td{padding:0} rule above outranked the old selector). */
	.hec-theme .woocommerce-cart-form table.shop_table tr.cart_item td.product-name { padding-right: 44px !important; margin-bottom: 8px; overflow-wrap: anywhere; }
	.hec-theme .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove { top: 10px; right: 10px; }
	.hec-theme .woocommerce-cart-form table.shop_table tr.cart_item td.product-remove a.remove { width: 30px; height: 30px; background: #fff; border: 1px solid var(--line); }
	.hec-theme .woocommerce-cart-form table.shop_table td.product-price { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; padding: 3px 0; font-weight: 700; color: var(--navy); }
	.hec-theme .woocommerce-cart-form table.shop_table td.product-subtotal { display: none; }
	.hec-theme .woocommerce-cart-form table.shop_table td.product-price::before { content: attr(data-title); color: var(--grey); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }
	.hec-theme .woocommerce-cart-form table.shop_table td.actions { border-top: 1px solid var(--line); padding: 14px 16px; }
	.hec-theme .woocommerce-cart-form td.actions .coupon { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 10px; width: 100%; }
	.hec-theme .woocommerce-cart-form td.actions .coupon input.input-text { width: 100%; min-width: 0; }
	.hec-theme .woocommerce-cart-form td.actions button[name="update_cart"] { width: 100%; }
	.hec-theme .woocommerce .cart_totals { padding: 18px 16px; }
	.hec-theme .woocommerce .cart_totals h2 { font-size: 18px; }
	.hec-theme .woocommerce-checkout .woocommerce-billing-fields, .hec-theme .woocommerce-checkout .woocommerce-additional-fields, .hec-theme .woocommerce-checkout .woocommerce-account-fields { padding: 18px 16px 4px; border-radius: 14px; }
	.hec-theme .woocommerce-checkout .woocommerce-billing-fields h3, .hec-theme .woocommerce-checkout .woocommerce-additional-fields h3 { font-size: 19px; margin-bottom: 12px; }
	.hec-theme .woocommerce-checkout #order_review { padding: 18px 16px; border-radius: 14px; }
	.hec-theme .woocommerce-checkout #order_review_heading { font-size: 19px; }
	.hec-theme .woocommerce-checkout #order_review .order-total th, .hec-theme .woocommerce-checkout #order_review .order-total td { font-size: 19px; }
	.hec-theme .woocommerce-checkout form.login, .hec-theme .woocommerce-checkout form.checkout_coupon { padding: 16px; }
	.hec-theme .woocommerce form .form-row input.input-text, .hec-theme .woocommerce form .form-row textarea, .hec-theme .woocommerce form .form-row select, .hec-theme .woocommerce .select2-container--default .select2-selection--single { font-size: 16px; }
	.hec-theme .woocommerce-checkout .woocommerce-additional-fields:empty, .hec-theme .woocommerce-checkout .woocommerce-additional-fields:not(:has(.form-row)) { display: none; }
}

/* ---- Thank-you ---- */
.hec-theme .woocommerce-order { max-width: 860px; margin: 30px auto 70px; }
.hec-theme .woocommerce-order .woocommerce-thankyou-order-received { font-family: var(--display); font-size: 28px; color: var(--navy); text-align: center; margin: 0 0 22px; }
.hec-theme .woocommerce-order .woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 0 0 26px; }
.hec-theme .woocommerce-order .woocommerce-order-overview li { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 12.5px; color: var(--grey); margin: 0; float: none; width: auto; }
.hec-theme .woocommerce-order .woocommerce-order-overview li strong { display: block; font-size: 15px; color: var(--navy); margin-top: 4px; }
/* Long values (an email address) wrap inside their tile instead of running across the next one. */
.hec-theme .woocommerce-order .woocommerce-order-overview li { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.hec-theme .woocommerce-order .woocommerce-order-overview li.email strong { font-size: 14px; }
@media (max-width: 760px) { .hec-theme .woocommerce-order .woocommerce-order-overview { grid-template-columns: 1fr 1fr; } .hec-theme .woocommerce-order .woocommerce-order-overview li.email { grid-column: 1 / -1; } }
@media (max-width: 400px) { .hec-theme .woocommerce-order .woocommerce-order-overview { grid-template-columns: 1fr; } }
.hec-theme .hec-thankyou { background: linear-gradient(140deg, var(--navy-dk), var(--navy-lt)); color: #fff; border-radius: 18px; padding: 26px 28px; margin: 0 0 28px; }
.hec-theme .hec-thankyou h2 { color: var(--gold); margin: 0 0 12px; font-size: 24px; }
.hec-theme .hec-thankyou-list { list-style: none; padding: 0; margin: 0 0 12px; }
.hec-theme .hec-thankyou-list li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.hec-theme .hec-thankyou-list li:first-child { border-top: 0; }
.hec-theme .hec-thankyou a:not(.button) { color: #CFD5E5; }
.hec-theme .woocommerce-order .woocommerce-order-details, .hec-theme .woocommerce-order .woocommerce-customer-details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 20px; }
.hec-theme .woocommerce-order .woocommerce-order-details h2, .hec-theme .woocommerce-order .woocommerce-customer-details h2 { font-size: 20px; margin: 0 0 12px; }
.hec-theme .woocommerce-order table.shop_table { border: 0; }
.hec-theme .woocommerce-order table.shop_table th, .hec-theme .woocommerce-order table.shop_table td { background: transparent; text-transform: none; letter-spacing: 0; padding: 10px 0; border-top: 1px solid var(--line); }

/* ---- My Account canvas (the shell itself is styled by hec-lms dashboard.css) ---- */
.hec-page-account .hec-section--account { padding: 44px 0 80px; }
.hec-wrap--account { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.hec-theme .woocommerce-account .woocommerce-MyAccount-content { background: transparent; }
.hec-theme .woocommerce-account .woocommerce-orders-table { background: #fff; }
.hec-theme .woocommerce-account .woocommerce-EditAccountForm fieldset { border: 0; padding: 0; margin: 20px 0 0; }
.hec-theme .woocommerce-account .woocommerce-EditAccountForm .form-row { float: none; width: 100%; }
.hec-theme .hec-account-back { display: inline-block; margin: 0 0 18px; color: var(--navy-lt); text-decoration: none; font-weight: 500; }
@media (max-width: 640px) { .hec-page-account .hec-section--account { padding: 24px 0 56px; } .hec-wrap--account { padding: 0 16px; } }

/* ---- Button states: never the WooCommerce purple, on any state ---- */
.hec-theme .woocommerce button.button:focus, .hec-theme .woocommerce button.button:active,
.hec-theme .woocommerce a.button:focus, .hec-theme .woocommerce a.button:active, .hec-theme .woocommerce a.button:visited,
.hec-theme .woocommerce input.button:focus, .hec-theme .woocommerce input.button:active,
.hec-theme .woocommerce button.button.alt:focus, .hec-theme .woocommerce button.button.alt:active,
.hec-theme .woocommerce a.button.alt:focus, .hec-theme .woocommerce a.button.alt:active, .hec-theme .woocommerce a.button.alt:visited,
.hec-theme .woocommerce #payment #place_order:focus, .hec-theme .woocommerce #payment #place_order:active,
.hec-theme .wc-proceed-to-checkout a.checkout-button, .hec-theme .wc-proceed-to-checkout a.checkout-button:hover,
.hec-theme .wc-proceed-to-checkout a.checkout-button:focus, .hec-theme .wc-proceed-to-checkout a.checkout-button:active,
.hec-theme .wc-proceed-to-checkout a.checkout-button:visited {
	background: var(--gold) !important; color: var(--navy-dk) !important; outline: none;
}
.hec-theme .wc-proceed-to-checkout a.checkout-button:hover { background: var(--gold-soft) !important; }
.hec-theme .woocommerce a.button:focus-visible, .hec-theme .woocommerce button.button:focus-visible { box-shadow: 0 0 0 3px rgba(0,36,125,.25); }

/* ---- Checkout: agreement line under Place order ---- */
.hec-theme .woocommerce-checkout .hec-checkout-agree { margin: 12px 0 0; font-size: 13px; line-height: 1.55; color: var(--grey); text-align: center; }
.hec-theme .woocommerce-checkout .hec-checkout-agree a { color: var(--navy-lt); font-weight: 600; text-decoration: underline; }

/* Account details: fixed name/email block, password form */
.hec-theme .hec-account-fixed { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 16px; margin: 0 0 22px; }
.hec-theme .hec-account-fixed legend { font-family: var(--display); font-size: 18px; color: var(--navy); padding: 0 6px; float: none !important; width: auto !important; margin: 0 !important; }
.hec-theme .hec-dash-sub .woocommerce-EditAccountForm fieldset.hec-account-fixed { border: 1px solid var(--line); padding: 18px 20px 16px; margin: 0 0 22px; }
.hec-theme .hec-account-dl { clear: both; }
.hec-theme .hec-account-dl { display: grid; gap: 10px; margin: 0 0 12px; }
.hec-theme .hec-account-dl div { display: grid; grid-template-columns: 140px 1fr; gap: 10px; align-items: baseline; }
.hec-theme .hec-account-dl dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--grey); }
.hec-theme .hec-account-dl dd { margin: 0; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.hec-theme .hec-account-note { font-size: 13.5px; color: var(--grey); margin: 0; }
@media (max-width: 560px) { .hec-theme .hec-account-dl div { grid-template-columns: 1fr; gap: 2px; } }
