:root {
    --hft-repair-green: #07513e;
    --hft-repair-green-hover: #096b50;
    --hft-repair-gold: #f2b719;
    --hft-repair-line: #d9e6df;
}

/* Keep all prices and quantities legible, including two- and three-digit values. */
.woocommerce .amount,
.woocommerce [class*="quantity"],
.wc-block-components-formatted-money-amount {
    font-variant-numeric: tabular-nums;
}

.woocommerce-cart .wc-block-components-quantity-selector {
    display: grid !important;
    grid-template-columns: 42px minmax(76px, 1fr) 42px !important;
    width: 160px !important;
    min-width: 160px !important;
    max-width: 160px !important;
    height: 42px !important;
    overflow: hidden !important;
}
.woocommerce-cart .wc-block-components-quantity-selector__button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
}
.woocommerce-cart .wc-block-components-quantity-selector__input,
.woocommerce-cart .hft-native-input-hidden-v172,
.woocommerce-cart .hft-native-input-hidden-v171 {
    display: block !important;
    visibility: visible !important;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    height: 40px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 8px !important;
    border: 0 !important;
    background: #fff !important;
    color: var(--hft-repair-green) !important;
    text-align: center !important;
    text-indent: 0 !important;
    font: 900 15px/40px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
    letter-spacing: 0 !important;
    font-variant-numeric: tabular-nums !important;
    appearance: textfield !important;
    -moz-appearance: textfield !important;
}
.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-inner-spin-button,
.woocommerce-cart .wc-block-components-quantity-selector__input::-webkit-outer-spin-button {
    margin: 0 !important;
    -webkit-appearance: none !important;
}
.woocommerce-cart .hft-cart-direct-input-v172,
.woocommerce-cart .hft-cart-direct-input-v171 {
    display: none !important;
}
.woocommerce-cart .wc-block-components-product-low-stock-badge {
    display: none !important;
}
.woocommerce-cart .hft-cart-stock-v180 {
    display: inline-flex !important;
    align-items: center !important;
    margin: 2px 0 11px !important;
    padding: 6px 10px !important;
    border: 1px solid #cfe3d7 !important;
    border-radius: 999px !important;
    background: #eff8f2 !important;
    color: var(--hft-repair-green) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}
.woocommerce-cart .hft-cart-stock-v180::before {
    content: "✓";
    margin-right: 6px;
    color: #0b8b62;
    font-weight: 900;
}

/* Local, high-resolution payment marks with consistent clear space and weight. */
.hft-payment-choice {
    grid-template-columns: 20px 58px minmax(0, 1fr) !important;
    align-items: center !important;
}
.hft-payment-logo {
    display: grid !important;
    place-items: center !important;
    box-sizing: border-box !important;
    width: 58px !important;
    height: 46px !important;
    padding: 6px !important;
    overflow: hidden !important;
    border: 1px solid #dbe7e1 !important;
    border-radius: 10px !important;
    background: #fff !important;
    box-shadow: 0 2px 7px rgba(7, 81, 62, .06) !important;
}
.hft-payment-logo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}
.hft-payment-choice[data-hft-method="duitnow"] .hft-payment-logo {
    padding: 3px !important;
}
.hft-payment-choice[data-hft-method="fpx"] .hft-payment-logo,
.hft-payment-choice[data-hft-method="grabpay_direct"] .hft-payment-logo {
    padding: 8px 5px !important;
}
.hft-payment-choice[data-hft-method="shopee_pay"] .hft-payment-logo {
    padding: 4px !important;
}
.hft-payment-choice[data-hft-method="shopee_pay"] .hft-payment-logo img {
    width: 36px !important;
    height: 36px !important;
}

/* Keep the chosen payment identity visible at the final checkout action. */
.wc-block-components-checkout-place-order-button.hft-payment-cta-v184 .wc-block-components-button__text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 11px !important;
    width: 100% !important;
    min-width: 0 !important;
}
.hft-checkout-button-logo-v184 {
    display: grid !important;
    flex: 0 0 44px !important;
    place-items: center !important;
    box-sizing: border-box !important;
    width: 44px !important;
    height: 40px !important;
    padding: 2px !important;
    overflow: hidden !important;
    border-radius: 7px !important;
    background: #fff !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .25), 0 2px 7px rgba(0, 0, 0, .13) !important;
}
.hft-checkout-button-logo-v184 img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
}
.wc-block-components-checkout-place-order-button.hft-payment-cta-v184 .wc-block-components-checkout-place-order-button__text {
    min-width: 0 !important;
    white-space: nowrap !important;
}

/* Never allow checkout submission while the custom side-cart is updating. */
body.hft-checkout-cart-refreshing .wc-block-components-checkout-place-order-button {
    pointer-events: none !important;
    opacity: .62 !important;
    cursor: wait !important;
}

/* Replace the baked-in broken-image placeholder on the shop archive. */
body.woocommerce-shop img[alt="Gardening seeds and growing essentials"],
body.woocommerce-shop img[alt="Harvest Farm Trading quality seeds and gardening essentials"] {
    content: url("shop-hero.png") !important;
    width: 100% !important;
    height: 268px !important;
    object-fit: cover !important;
    object-position: center 38% !important;
    background: #eef5e8 !important;
}

/* Product page: readable title scale and one consistent brand action colour. */
.single-product .product_title,
.single-product h1.product_title {
    max-width: 22ch;
    margin-bottom: 14px !important;
    color: #073c2e !important;
    font-size: clamp(28px, 3.2vw, 44px) !important;
    line-height: 1.12 !important;
    letter-spacing: -.025em !important;
    overflow-wrap: anywhere;
}
.single-product form.cart .single_add_to_cart_button,
.single-product form.cart button.single_add_to_cart_button {
    min-height: 48px !important;
    padding: 0 24px !important;
    border: 1px solid var(--hft-repair-green) !important;
    border-radius: 10px !important;
    background: var(--hft-repair-green) !important;
    color: #fff !important;
    font-weight: 800 !important;
    box-shadow: 0 8px 18px rgba(7, 81, 62, .18) !important;
}
.single-product form.cart .single_add_to_cart_button:hover,
.single-product form.cart .single_add_to_cart_button:focus-visible {
    border-color: var(--hft-repair-green-hover) !important;
    background: var(--hft-repair-green-hover) !important;
    color: #fff !important;
}

/* Product-page confidence layer: helpful facts beside the buying decision. */
.single-product .hft-delivery-checker-v185,
.single-product .hft-product-confidence-v185 {
    clear: both;
    width: min(560px, 100%);
    box-sizing: border-box;
}
.single-product .hft-delivery-checker-v185 {
    margin: 12px 0 16px;
}
.hft-delivery-toggle-v185 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--hft-repair-green);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}
.hft-delivery-toggle-v185 svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hft-delivery-toggle-v185:hover,
.hft-delivery-toggle-v185:focus-visible {
    color: var(--hft-repair-green-hover);
}
.hft-delivery-form-v185 {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--hft-repair-line);
    border-radius: 12px;
    background: #f8fbf9;
}
.hft-delivery-form-v185[hidden] {
    display: none !important;
}
.hft-delivery-form-v185 label {
    display: block;
    margin: 0 0 7px;
    color: #173d32;
    font-size: 13px;
    font-weight: 800;
}
.hft-delivery-fields-v185 {
    display: grid;
    grid-template-columns: minmax(142px, 1fr) minmax(160px, 1fr) auto;
    gap: 8px;
}
.hft-delivery-fields-v185 input,
.hft-delivery-fields-v185 select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    box-sizing: border-box;
    margin: 0;
    padding: 8px 12px;
    border: 1px solid #b9d0c5;
    border-radius: 8px;
    background: #fff;
    color: #153d32;
    font-size: 16px;
}
.hft-delivery-fields-v185 select {
    appearance: auto;
}
.hft-delivery-submit-v185 {
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--hft-repair-green);
    border-radius: 8px;
    background: var(--hft-repair-green);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}
.hft-delivery-submit-v185:disabled {
    opacity: .62;
    cursor: wait;
}
.hft-delivery-privacy-v185 {
    margin: 8px 0 0 !important;
    color: #5e7069;
    font-size: 12px;
    line-height: 1.45;
}
.hft-delivery-result-v185 {
    margin-top: 10px;
    color: #24463c;
    font-size: 13px;
    line-height: 1.45;
}
.hft-delivery-result-v185:empty {
    display: none;
}
.hft-delivery-result-v185.is-success {
    padding: 10px 12px;
    border-left: 3px solid #0b8b62;
    background: #eef8f2;
}
.hft-delivery-result-v185.is-error {
    color: #8a2d24;
}
.hft-delivery-result-v185 strong,
.hft-delivery-result-v185 span {
    display: block;
}
.hft-delivery-result-v185 strong {
    color: #073c2e;
    font-size: 14px;
}
.single-product .hft-product-confidence-v185 {
    display: grid;
    gap: 0;
    margin: 18px 0 24px;
    overflow: hidden;
    border: 1px solid #cfe1d8;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(7, 81, 62, .07);
}
.hft-confidence-item-v185 {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    padding: 13px 15px;
    border-bottom: 1px solid #e5eee9;
}
.hft-confidence-icon-v185 {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eaf6ef;
    color: #087657;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
}
.hft-confidence-icon-v185 svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.hft-confidence-item-v185 strong,
.hft-confidence-item-v185 small {
    display: block;
}
.hft-confidence-item-v185 strong {
    margin: 1px 0 3px;
    color: #073c2e;
    font-size: 14px;
    line-height: 1.35;
}
.hft-confidence-item-v185 small {
    color: #536861;
    font-size: 12.5px;
    line-height: 1.45;
}
.hft-confidence-policy-v185 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 15px;
    background: #f4f9f6;
    color: var(--hft-repair-green) !important;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none !important;
}
.hft-confidence-policy-v185:hover,
.hft-confidence-policy-v185:focus-visible {
    background: #eaf5ef;
    color: var(--hft-repair-green-hover) !important;
}
.hft-confidence-policy-v185 span {
    font-size: 21px;
    line-height: 1;
}

/* Logged-out account page: balanced two-column cards instead of offset floats. */
.woocommerce-account #customer_login {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px !important;
    width: min(980px, 100%) !important;
    max-width: 980px !important;
    min-height: 0 !important;
    margin: 0 auto !important;
}
.woocommerce-account #customer_login > .u-column1,
.woocommerce-account #customer_login > .u-column2 {
    float: none !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 26px !important;
    border: 1px solid var(--hft-repair-line) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 10px 28px rgba(7, 55, 40, .07) !important;
}
.woocommerce-account #customer_login h2 {
    margin: 0 0 18px !important;
    color: #073c2e !important;
    font-size: 25px !important;
}
.woocommerce-account #customer_login input[type="text"],
.woocommerce-account #customer_login input[type="email"],
.woocommerce-account #customer_login input[type="password"] {
    min-height: 46px !important;
    border: 1px solid #cbdcd3 !important;
    border-radius: 8px !important;
}
.woocommerce-account #customer_login .woocommerce-button {
    min-height: 44px !important;
    border-radius: 9px !important;
    background: var(--hft-repair-green) !important;
    color: #fff !important;
    font-weight: 800 !important;
}

@media (max-width: 700px) {
    .woocommerce-cart .wc-block-components-quantity-selector {
        grid-template-columns: 40px minmax(72px, 1fr) 40px !important;
        width: 152px !important;
        min-width: 152px !important;
        max-width: 152px !important;
    }
    .woocommerce-cart .wc-block-components-quantity-selector__button {
        width: 40px !important;
        min-width: 40px !important;
    }
    .woocommerce-cart .wc-block-components-quantity-selector__input,
    .woocommerce-cart .hft-native-input-hidden-v172,
    .woocommerce-cart .hft-native-input-hidden-v171 {
        width: 72px !important;
        min-width: 72px !important;
        max-width: 72px !important;
    }
    .hft-payment-choice {
        grid-template-columns: 20px 52px minmax(0, 1fr) !important;
    }
    .hft-payment-logo {
        width: 52px !important;
        height: 45px !important;
        padding: 4px !important;
    }
    .hft-payment-choice[data-hft-method="fpx"] .hft-payment-logo,
    .hft-payment-choice[data-hft-method="grabpay_direct"] .hft-payment-logo {
        padding: 7px 4px !important;
    }
    .hft-payment-choice[data-hft-method="shopee_pay"] .hft-payment-logo img {
        width: 35px !important;
        height: 35px !important;
    }
    .wc-block-components-checkout-place-order-button.hft-payment-cta-v184 .wc-block-components-button__text {
        gap: 8px !important;
    }
    .hft-checkout-button-logo-v184 {
        flex-basis: 40px !important;
        width: 40px !important;
        height: 38px !important;
        padding: 1px !important;
    }
    .wc-block-components-checkout-place-order-button.hft-payment-cta-v184 .wc-block-components-checkout-place-order-button__text {
        font-size: clamp(13px, 4vw, 17px) !important;
    }
    .woocommerce-account #customer_login {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }
    .woocommerce-account #customer_login > .u-column1,
    .woocommerce-account #customer_login > .u-column2 {
        padding: 21px !important;
    }
    .single-product .product_title,
    .single-product h1.product_title {
        max-width: none;
        font-size: clamp(27px, 8vw, 36px) !important;
    }
    .hft-delivery-fields-v185 {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .hft-delivery-submit-v185 {
		grid-column: 1 / -1;
        padding: 0 11px;
    }
    .hft-confidence-item-v185 {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
        padding: 12px 13px;
    }
}


/* HFT SVG fail-safe 1.8.8: prevents unstyled default 300x150 icons in guest caches. */
.hft-delivery-toggle-v185 > svg {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    flex: 0 0 18px !important;
}
.hft-confidence-icon-v185 {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    flex: 0 0 30px !important;
    overflow: hidden !important;
}
.hft-confidence-icon-v185 > svg {
    display: block !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    max-width: 17px !important;
    min-height: 17px !important;
    max-height: 17px !important;
    flex: 0 0 17px !important;
}


/* Customer-friendly payment cost presentation — v1.9.0 */
.hft-payment-price[data-hft-price-copy] {
    font-size: 0 !important;
}
.hft-payment-price[data-hft-price-copy]::after {
    content: attr(data-hft-price-copy);
    display: block;
    color: #60756d;
    font-size: 11px;
    line-height: 1.4;
}
.hft-payment-lowest {
    font-size: 0 !important;
}
.hft-payment-lowest::after {
    content: 'Recommended · Lowest total';
    font-size: 11px;
    line-height: 1.25;
}
.hft-payment-method-note {
    font-size: 0 !important;
}
.hft-payment-method-note::after {
    content: 'Choose the option that suits you. The processing cost and final total are shown before payment.';
    font-size: 12px;
    line-height: 1.45;
}
.wc-block-components-totals-fees__secure-payment-processing .wc-block-components-totals-item__label,
.wc-block-components-totals-fees__payment-processing .wc-block-components-totals-item__label {
    font-size: 0 !important;
}
.wc-block-components-totals-fees__secure-payment-processing .wc-block-components-totals-item__label::before,
.wc-block-components-totals-fees__payment-processing .wc-block-components-totals-item__label::before {
    content: 'Payment processing';
    font-size: 13px;
}
.hft-processing-fee-explanation summary {
    font-size: 0 !important;
}
.hft-processing-fee-explanation summary::after {
    content: 'ⓘ Why this amount?';
    font-size: 11px;
    line-height: 1.4;
}
.hft-processing-fee-explanation p {
    font-size: 0 !important;
}
.hft-processing-fee-explanation p::before {
    content: 'Processing cost varies by payment method. DuitNow QR currently gives you the lowest total.';
    font-size: 12px;
    line-height: 1.5;
}
body:not([data-hft-payment-submitting="1"]) .wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text[data-hft-pay-label] {
    font-size: 0 !important;
}
body:not([data-hft-payment-submitting="1"]) .wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text[data-hft-pay-label]::after {
    content: attr(data-hft-pay-label);
    font-size: 15px;
    line-height: 1.3;
}
body:not([data-hft-payment-submitting="1"]) .wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text[data-hft-pay-label] .hft-checkout-button-logo-v184 {
    font-size: 15px !important;
}
