/*
Theme Name: High Quality Tools
Author URI: https://codechameleon.com?utm_source=hqt&utm_medium=theme&utm_campaign=high-quality-tools
Version: 1.0
Text Domain: hqt
*/

.wp-content img {
    height: auto;
}

.wp-content h1,
.wp-content h2,
.wp-content h3,
.wp-content h4,
.wp-content h5,
.wp-content h6 {
    margin: 1rem 0;
    display: block;
    clear: both;
}

.wp-content img.alignnone {
    clear: both;
    display: block;
    margin-bottom: 2rem;
}

.wp-content p {
    text-align: justify;
}

.wp-content div.column {
    overflow: hidden;
}

.wp-content figure.alignleft {
    margin: 2rem 2rem 2rem 0;
}

.wp-content figure.alignright {
    margin: 2rem 0 2rem 2rem;
}

.wp-content figure.alignnone {
    margin: 2rem 0;
}

.wp-content figure.aligncenter img,
.wp-content figure.aligncenter,
.wp-content img.aligncenter {
    display: block;
    margin: 0 auto;
    padding: 2rem 0;
}

.wp-content figure.aligncenter figcaption {
    text-align: center;
}

@media (min-width: 52rem) {
    .wp-content figure.alignleft,
    .wp-content img.alignleft {
        padding-bottom: 2rem;
        padding-right: 2rem;
        float: left;
        max-width: 50%;
    }

    .wp-content figure.alignright,
    .wp-content img.alignright {
        padding-bottom: 2rem;
        padding-left: 2rem;
        float: right;
        max-width: 50%;
    }

    .wp-content figure.alignnone,
    .wp-content img.aligncenter,
    .wp-content figure.alignright img,
    .wp-content figure.alignleft img,
    .wp-content figure.alignnone img {
        padding-bottom: 2rem;
    }
}

@media (max-width: 52rem) {
    .wp-content figure.alignleft,
    .wp-content img.alignleft {
        max-width: 40%;
        padding-bottom: 2rem;
        padding-right: 2rem;
        float: left;
    }

    .wp-content figure.alignright,
    .wp-content img.alignright {
        max-width: 40%;
        padding-bottom: 2rem;
        padding-left: 2rem;
        float: right;
    }

    .wp-content figure.alignnone,
    .wp-content img.aligncenter,
    .wp-content figure.alignright img,
    .wp-content figure.alignleft img,
    .wp-content figure.alignnone img {
        padding-bottom: 2rem;
    }
}

@media (max-width: 40rem) {
    .wp-content figure.alignleft,
    .wp-content img.alignleft {
        display: block;
        max-width: 100%;
        margin-bottom: 2rem;
        padding: 0;
    }

    .wp-content figure.alignright,
    .wp-content img.alignright {
        display: block;
        max-width: 100%;
        margin-bottom: 2rem;
        padding: 0;
    }

    .wp-content figure.aligncenter,
    .wp-content img.aligncenter {
        display: block;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .wp-content figure,
    .wp-content img {
        display: block;
        max-width: 100%;
    }
}

.img-landscape-mode img {
    aspect-ratio: 3/2;
    object-fit: cover;
    width: 100%;
}

.sticky-header-active .header-logo img {
    max-height: 75px !important;
    width: auto !important;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth !important;
}

/* Vimeo Popup with Info */
.vimeo-popup-with-info .mfp-content-info {
    padding: 15px;
    color: #fff;
    margin-top: 0;
    display: block;
    position: relative;
    z-index: 1;
}

.vimeo-popup-with-info .video-title {
    margin-top: 0;
    color: #fff;
    padding-top: 10px;
    font-size: 20px;
}

.vimeo-popup-with-info .video-description {
    margin-bottom: 10px;
    line-height: 1.5;
}

.cta-text-container p {
    color: #fff !important;
}

.controlled-wrapper iframe,
.controlled-wrapper embed {
    max-width: 100%;
    height: auto;
}

.text-white h3 {
    color: #fff !important;
}

.custom-font-size-70 {
    font-size: 70px !important;
}

/* Gravity Forms */
.gform_wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: inherit;
}

.gform_wrapper input[type="text"],
.gform_wrapper input[type="password"],
.gform_wrapper input[type="email"],
.gform_wrapper textarea {
    padding: 1rem;
    font-size: 16px;
    border-radius: 0.375rem;
    border: 1px solid #ccc;
    background-color: #fff;
    width: 100%;
    box-shadow: none;
}

.gform_wrapper .gfield_label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.gform_wrapper .gfield {
    margin-bottom: 1.5rem;
}

.gform_wrapper textarea {
    min-height: 150px;
    resize: vertical;
}

.gform_wrapper .gform_footer input[type="submit"] {
    font-size: 16px;
    color: var(--tp-common-white);
    background-color: var(--tp-common-black);
    padding: 9px 30px;
    display: inline-block;
}

.gform_wrapper .gform_footer input[type="submit"]:hover {
    color: var(--tp-common-white);
    background-color: var(--tp-theme-primary);
    border: 2px solid #0989fc;
}

.gform_wrapper .ginput_container_name .gform-grid-col {
    display: inline-block;
    width: 48%;
    margin-right: 4%;
}

.gform_wrapper .ginput_container_name .gform-grid-col:last-child {
    margin-right: 0;
}

.gform_wrapper .gform_heading .gform_title {
    text-align: center;
    font-weight: bold;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.gform_heading {
    border-bottom: 1px solid lightgray;
    padding-bottom: 0.1rem;
    margin-bottom: 40px;
}

/* Hide default arrows in number input */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield; /* Firefox */
    appearance: textfield;
}

/* Hierarchical Product Categories */
.tp-shop-widget-categories ul li.tp-category-child a {
    font-size: 14px;
    color: #6c757d;
}

.tp-shop-widget-categories ul li.tp-category-child a::after {
    width: 4px;
    height: 4px;
    top: 9px;
    background-color: #d0d0d0;
}

.tp-shop-widget-categories ul li.tp-category-child a:hover {
    color: var(--tp-theme-primary);
}

.tp-shop-widget-categories ul li.tp-category-child a:hover::after {
    background-color: var(--tp-theme-primary);
}

/* Current Parent Category Styling */
.tp-shop-widget-categories ul li.tp-current-category-parent a {
    font-weight: 500;
    color: var(--tp-common-black);
}

.tp-shop-widget-categories ul li.tp-current-category-parent a::after {
    background-color: var(--tp-theme-primary);
}

.quantity input.qty {
    height: 46px;
    line-height: 46px;
    background-color: #f3f5f6;
    border: 0;
    border-radius: 0;
    font-size: 16px;
    color: var(--tp-common-black);
    padding: 0 30px;
    width: 100% !important;
}

/* Variable products: WC outputs .quantity without .tp-product-quantity; +/- are position:absolute and need this box */
.tp-product-details-action-wrapper .woocommerce-variation-add-to-cart .quantity {
    position: relative;
    width: 122px;
    max-width: 100%;
}

/* Variable: qty + add to cart on one row; button grows */
.tp-product-details-variation-cart .tp-product-details-variation-cart-btn {
    min-width: 0;
}

/* Variation attribute table — match product details width */
.tp-product-details-wrapper--variable table.variations,
.tp-product-details-action-wrapper--variable table.variations {
    border: none;
    margin-bottom: 1rem;
}

.tp-product-details-wrapper--variable table.variations th.label,
.tp-product-details-action-wrapper--variable table.variations th.label {
    vertical-align: middle;
    padding: 0.5rem 1rem 0.5rem 0;
    font-weight: 500;
}

.tp-product-details-wrapper--variable table.variations td.value,
.tp-product-details-action-wrapper--variable table.variations td.value {
    width: 100%;
    padding: 0.5rem 0;
}

/* Nice Select on variation dropdowns (classes copied from native <select>) */
.tp-product-details-wrapper .nice-select.tp-product-details-variation-select,
.tp-product-details-action-wrapper--variable .nice-select.tp-product-details-variation-select {
    height: 46px;
    line-height: 44px;
    border-radius: 0;
    border: 1px solid #d5d8db;
    color: var(--tp-common-black);
    float: none;
    padding: 0 26px;
    width: 21rem !important;
    max-width: 100%;
}

.tp-product-details-wrapper .nice-select.tp-product-details-variation-select::after,
.tp-product-details-action-wrapper--variable .nice-select.tp-product-details-variation-select::after {
    right: 22px;
}

.tp-product-details-wrapper .nice-select.tp-product-details-variation-select.open .list,
.tp-product-details-action-wrapper--variable .nice-select.tp-product-details-variation-select.open .list {
    width: 21rem !important;
    margin-top: 0;
    border-radius: 0;
    border: 1px solid #d5d8db;
    padding: 8px 0;
}

.tp-product-details-wrapper .nice-select.tp-product-details-variation-select .list .option:hover,
.tp-product-details-action-wrapper--variable .nice-select.tp-product-details-variation-select .list .option:hover {
    color: var(--tp-theme-primary);
}

.woocommerce table.shop_table {
    border: none !important;
}

/* ============================================
   WooCommerce Checkout — Shofy field styling
   Maps WC's .form-row structure to match the
   .tp-checkout-input design from the HTML source
   ============================================ */

/* --- Billing / Shipping section titles --- */
.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3,
#ship-to-different-address {
    font-weight: 600 !important;
    font-size: 26px !important;
    margin-bottom: 35px !important;
    margin-top: 0 !important;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    color: var(--tp-common-black);
}

/* Ship-to checkbox label inside the h3 — layout & text */
#ship-to-different-address label {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    cursor: pointer !important;
}

/* Reset the native checkbox to a sensible fixed size;
   the 26px font-size on the h3 would scale em-based custom styles */
#ship-to-different-address input[type="checkbox"],
#ship-to-different-address .input-checkbox {
    font-size: 16px !important;
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0 !important;
    appearance: checkbox !important;
    -webkit-appearance: checkbox !important;
    accent-color: var(--tp-theme-primary);
    cursor: pointer;
    margin: 0 !important;
}

/* --- Field wrapper: flex grid so first/last fields sit side-by-side --- */
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

/* --- Individual form row = tp-checkout-input --- */
.woocommerce-checkout .form-row,
.woocommerce-checkout .woocommerce-form__group {
    margin-bottom: 20px !important;
    padding: 0 10px !important;
    width: 100% !important;
    float: none !important;
    clear: none !important;
}

/* Half-width pairs */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
    width: 50% !important;
}

@media (max-width: 575px) {
    .woocommerce-checkout .form-row-first,
    .woocommerce-checkout .form-row-last {
        width: 100% !important;
    }
}

/* --- Labels --- */
.woocommerce-checkout .form-row label,
.woocommerce-checkout .woocommerce-form__label {
    font-weight: 500 !important;
    color: var(--tp-common-black) !important;
    display: block !important;
    margin-bottom: 10px !important;
    font-size: 15px !important;
}

/* Required asterisk */
.woocommerce-checkout .form-row abbr.required,
.woocommerce-checkout .form-row .required {
    color: red !important;
    text-decoration: none !important;
    border-bottom: none !important;
    font-style: normal;
}

/* --- Input wrapper (WC wraps each input in a span) --- */
.woocommerce-checkout .woocommerce-input-wrapper {
    display: block !important;
    width: 100% !important;
}

/* --- Text / email / tel / password inputs (excluding textarea which also gets .input-text) --- */
.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row input[type="text"],
.woocommerce-checkout .form-row input[type="email"],
.woocommerce-checkout .form-row input[type="tel"],
.woocommerce-checkout .form-row input[type="password"],
.woocommerce-checkout .form-row input[type="number"],
.woocommerce-checkout .woocommerce-form__input:not(textarea) {
    width: 100% !important;
    height: 50px !important;
    background: #ffffff !important;
    border: 1px solid #d5d8db !important;
    border-radius: 0 !important;
    color: var(--tp-common-black) !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color 0.2s ease;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row input[type="text"]:focus,
.woocommerce-checkout .form-row input[type="email"]:focus,
.woocommerce-checkout .form-row input[type="tel"]:focus,
.woocommerce-checkout .form-row input[type="password"]:focus,
.woocommerce-checkout .form-row input[type="number"]:focus,
.woocommerce-checkout .woocommerce-form__input:not(textarea):focus {
    border-color: var(--tp-common-black) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* --- Native <select> (used for state/county if Select2 not active) --- */
.woocommerce-checkout .form-row select {
    width: 100% !important;
    height: 50px !important;
    background: #ffffff !important;
    border: 1px solid #d5d8db !important;
    border-radius: 0 !important;
    color: var(--tp-common-black) !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    box-shadow: none !important;
    outline: none !important;
    appearance: auto;
    -webkit-appearance: auto;
}

.woocommerce-checkout .form-row select:focus {
    border-color: var(--tp-common-black) !important;
    outline: none !important;
    box-shadow: none !important;
}

.woocommerce-checkout .select2-container .select2-selection--single {
    height: 50px !important;
    border: 1px solid #d5d8db !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
}

.woocommerce-checkout
.select2-container--default.select2-container--focus
.select2-selection--single,
.woocommerce-checkout
.select2-container--default.select2-container--open
.select2-selection--single {
    border-color: var(--tp-common-black) !important;
    box-shadow: none !important;
    outline: none !important;
}

.woocommerce-checkout
.select2-container
.select2-selection--single
.select2-selection__rendered {
    line-height: 50px !important;
    color: var(--tp-common-black) !important;
    padding: 0 40px 0 16px !important;
}

.woocommerce-checkout
.select2-container
.select2-selection--single
.select2-selection__arrow {
    height: 48px !important;
    right: 14px !important;
    width: 20px;
}

.woocommerce-checkout
.select2-container
.select2-selection--single
.select2-selection__arrow
b {
    border-color: #666 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-top: -2px;
}

.woocommerce-checkout
.select2-container--default.select2-container--open
.select2-selection--single
.select2-selection__arrow
b {
    border-color: transparent transparent #666 transparent;
    border-width: 0 4px 5px 4px;
}

/* Select2 dropdown list */
.select2-dropdown {
    border: 1px solid #d5d8db !important;
    border-radius: 0 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08) !important;
}

.select2-results__option {
    padding: 8px 16px !important;
    font-size: 14px !important;
    color: var(--tp-common-black);
}

.select2-results__option--highlighted[aria-selected] {
    background-color: var(--tp-theme-primary) !important;
    color: #fff !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #d5d8db !important;
    border-radius: 0 !important;
    padding: 6px 12px !important;
    outline: none !important;
}

/* --- Textarea (order notes) ---
   Must use textarea.input-text to beat the input.input-text rule in specificity */
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row textarea.input-text {
    width: 100% !important;
    height: 130px !important;
    background: #ffffff !important;
    border: 1px solid #d5d8db !important;
    border-radius: 0 !important;
    color: var(--tp-common-black) !important;
    padding: 14px 16px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
    resize: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row textarea.input-text:focus {
    border-color: var(--tp-common-black) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* --- Validation error state --- */
.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid input[type="text"],
.woocommerce-checkout .woocommerce-invalid input[type="email"],
.woocommerce-checkout .woocommerce-invalid input[type="tel"],
.woocommerce-checkout .woocommerce-invalid select,
.woocommerce-checkout .woocommerce-invalid .select2-selection--single {
    border-color: #e2401c !important;
}

/* Inline validation message */
.woocommerce-checkout .woocommerce-error,
.woocommerce form .woocommerce-invalid-required-field .woocommerce-error,
.form-row .woocommerce-error {
    font-size: 12px;
    color: #e2401c;
    display: block;
    margin-top: 4px;
}

/* --- Login / Coupon toggle notices — match .tp-checkout-verify-reveal --- */
.tp-checkout-verify .woocommerce-info,
.tp-checkout-verify-item .woocommerce-info {
    font-size: 14px !important;
    color: var(--tp-common-black) !important;
    border: 1px dashed #aab0b2 !important;
    border-top: 1px dashed #aab0b2 !important;
    background: none !important;
    padding: 8px 26px !important;
    margin-bottom: 0 !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.tp-checkout-verify .woocommerce-info::before {
    display: none !important;
}

/* The "Click here" anchor inside the toggle notice */
.tp-checkout-verify .woocommerce-info a.showlogin,
.tp-checkout-verify .woocommerce-info a.showcoupon {
    color: var(--tp-theme-primary) !important;
    position: relative;
    font-weight: 500;
}

.tp-checkout-verify .woocommerce-info a.showlogin::after,
.tp-checkout-verify .woocommerce-info a.showcoupon::after {
    position: absolute;
    content: "";
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background-color: var(--tp-theme-primary);
}

/* --- Login / Coupon collapsed forms — match .tp-return-customer --- */
.tp-checkout-verify-item .woocommerce-form-login,
.tp-checkout-verify-item .checkout_coupon {
    margin-top: 14px !important;
    padding: 40px !important;
    background-color: var(--tp-common-white) !important;
    border: none !important;
    border-radius: 0 !important;
}

@media (max-width: 575px) {
    .tp-checkout-verify-item .woocommerce-form-login,
    .tp-checkout-verify-item .checkout_coupon {
        padding: 30px 20px !important;
    }
}

/* Fields inside login / coupon forms */
.tp-checkout-verify-item .woocommerce-form-login .form-row label,
.tp-checkout-verify-item .checkout_coupon .form-row label,
.tp-checkout-verify-item .woocommerce-form-login label {
    font-weight: 500 !important;
    color: var(--tp-common-black) !important;
    display: block !important;
    margin-bottom: 8px !important;
}

.tp-checkout-verify-item .woocommerce-form-login .form-row input,
.tp-checkout-verify-item .checkout_coupon .form-row input,
.tp-checkout-verify-item .woocommerce-form-login .input-text {
    width: 100% !important;
    height: 50px !important;
    background: #ffffff !important;
    border: 1px solid #d5d8db !important;
    border-radius: 0 !important;
    padding: 0 16px !important;
    font-size: 15px !important;
    color: var(--tp-common-black) !important;
    box-shadow: none !important;
}

.tp-checkout-verify-item .woocommerce-form-login .form-row input:focus,
.tp-checkout-verify-item .checkout_coupon .form-row input:focus {
    border-color: var(--tp-common-black) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* "Remember me" row inside login form */
.tp-checkout-verify-item .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Submit buttons inside login / coupon forms */
.tp-checkout-verify-item .woocommerce-form-login .woocommerce-button,
.tp-checkout-verify-item .checkout_coupon button[type="submit"] {
    display: inline-block !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--tp-common-white) !important;
    background-color: var(--tp-theme-primary) !important;
    height: 50px !important;
    line-height: 50px !important;
    padding: 0 30px !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tp-checkout-verify-item .woocommerce-form-login .woocommerce-button:hover,
.tp-checkout-verify-item .checkout_coupon button[type="submit"]:hover {
    background-color: var(--tp-common-black) !important;
}

.woocommerce-checkout
.select2-container
.select2-selection--single
.select2-selection__arrow
b {
    border-color: #666 transparent transparent transparent;
    border-width: 5px 4px 0 4px;
    margin-top: -8px !important;
}

.reset_variations {
    font-size: 16px;
    font-weight: 500;
    color: var(--tp-common-white);
    background-color: var(--tp-common-black);
    display: inline-block;
    padding: 10px 30px;
    text-align: center;
}

table.variations {
    width: 100% !important;
}

table.variations label {
    font-size: 1rem;
}

table.variations td.value {
    display: flex;
    gap: 10px;
}

.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
    float: none !important;
    width: 100% !important;
    padding: 2rem;
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
    font-size: 16px;
    font-weight: 500;
    color: var(--tp-common-white);
    background-color: var(--tp-common-black);
    display: inline-block;
    padding: 10px 30px;
    text-align: center;
    width: 100%;
}

.woocommerce-cart table.cart img {
    width: 54px !important;
}

.tp-cart-list tbody tr:first-child td {
    padding-top: 9px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100% !important;
}

.profile__account-welcome {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #EAEAEF;
}

.profile__account-welcome__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.profile__account-welcome__text {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--tp-common-black-solid);
}

.profile__account-welcome__text strong {
    color: var(--tp-theme-primary);
    font-weight: 600;
}

.tp-btn-border:hover {
    background-color: var(--tp-theme-primary);
    border-color: var(--tp-theme-primary);
    color: var(--tp-common-white);
}

.woocommerce-Button, .button {
    font-size: 16px;
    font-weight: 500;
    color: var(--tp-common-white);
    background-color: var(--tp-common-black);
    display: inline-block;
    padding: 10px 30px;
    text-align: center;
}

.woocommerce-Button:hover, .button:hover {
    background-color: var(--tp-theme-primary);
    border-color: var(--tp-theme-primary);
    color: var(--tp-common-white);
}

.edit {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--tp-common-black);
    padding: 6px 18px;
    border: 1px solid rgba(1, 15, 28, 0.12);
    text-align: center;
}

.edit:hover {
    background-color: var(--tp-theme-primary);
    border-color: var(--tp-theme-primary);
    color: var(--tp-common-white);
}

