.woocommerce-page .main {
    padding: 40px 0;
}

.woocommerce-page .main:after {
    clear: both;
    content: "";
    display: block;
}

.woocommerce form .form-row .required {
    color: var(--black-color);
    text-decoration: none;
}

/* Shop Table */

.woocommerce table.shop_table td small {
    line-height: 1.4;
    font-size: 12px;
    display: block;
    opacity: .6;
}

.woocommerce table.shop_table {
    border: none;
    border-radius: 0;
    border-collapse: collapse;
    width: 100%;
}

.woocommerce table.shop_table td {
    border-top: none;
    padding: 5px 0;
}

.woocommerce table.shop_table tbody td {
    padding: 10px 0;
}

.woocommerce table.shop_table th {
    padding: 5px 0;
}

.woocommerce table.shop_table tbody tr:not(.order-total) th,
.woocommerce table.shop_table tfoot tr:not(.order-total) td,
.woocommerce table.shop_table tfoot tr:not(.order-total) th {
    font-weight: normal;
    border-top: 0;
}

#add_payment_method .cart-collaterals .cart_totals tr td,
#add_payment_method .cart-collaterals .cart_totals tr th,
.woocommerce-cart .cart-collaterals .cart_totals tr:not(.order-total) th,
.woocommerce-cart .cart-collaterals .cart_totals tr:not(.order-total) td,
.woocommerce-checkout .cart-collaterals .cart_totals tr td,
.woocommerce-checkout .cart-collaterals .cart_totals tr th {
    border-top: 0;
}

.woocommerce table.shop_table_responsive tr:nth-child(2n) td,
.woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
    background: none;
}

/* WooCommerce Input */

.woocommerce form .form-row input:focus,
.woocommerce form .form-row input:focus-visible {
    outline-color: var(--blue-color);
}

.woocommerce form .form-row-first,
.woocommerce-page form .form-row-first {
    float: left;
}

.woocommerce form .form-row-last,
.woocommerce-page form .form-row-last {
    float: right;
}

.woocommerce form .form-row-last:after,
.woocommerce-page form .form-row-last:after {
    clear: both;
}

.woocommerce form .form-row::after,
.woocommerce-page form .form-row::after {
    clear: both;
}

.woocommerce form .form-row-wide,
.woocommerce-page form .form-row-wide {
    clear: both;
}

.woocommerce form .form-row label,
.woocommerce-page form .form-row label {
    display: block;
}

.woocommerce-billing-fields__field-wrapper .form-row label {
    margin-bottom: 5px;
}


.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    border: solid 1px var(--border-color);
    padding: 10px;
    border-radius: 4px;
    height: 100%;
    width: 100%;
    font-size: 16px;
}

.woocommerce form .form-row label {
    line-height: 1.6;
    font-weight: 600;
    font-size: 14px;
}

.woocommerce form .form-row {
    padding: 0;
    margin: 0 0 8px;
}

.select2-container--default .select2-selection--single {
    background: url(../../images/chevron-down.svg) no-repeat center;
    background-size: 12px;
    background-position-x: calc(100% - 20px);
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 10px;
    margin: 0;
    -webkit-appearance: none;
    height: auto;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

.select2-dropdown {
    border: 1px solid var(--border-color);
    box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 0.1);
}

.select2-container .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 1.6;
}

.woocommerce form .form-row.woocommerce-invalid label {
    color: var(--error-color);
}

.woocommerce form .form-row.woocommerce-invalid .select2-container,
.woocommerce form .form-row.woocommerce-invalid input.input-text,
.woocommerce form .form-row.woocommerce-invalid select {
    border-color: var(--error-color);
}

.woocommerce form .form-row.woocommerce-validated .select2-container,
.woocommerce form .form-row.woocommerce-validated input.input-text,
.woocommerce form .form-row.woocommerce-validated select {
    border-color: var(--border-color);
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last,
.woocommerce-page form .form-row-first,
.woocommerce-page form .form-row-last {
    width: calc(50% - 10px);
}

p#billing_postcode_field {
    width: calc(30% - 10px);
    float: left;
}

p#billing_city_field {
    width: calc(70% - 10px);
    float: right;
    clear: none;
}

.form-row.address-field span strong {
    border: solid 1px var(--border-color);
    padding: 10px;
    border-radius: 4px;
    height: 100%;
    width: 100%;
    display: flex;
    font-weight: 500;
}

@media (max-width:768px) {

    p#billing_city_field,
    p#billing_postcode_field {
        width: 100%;
        float: none;
        clear: both;
    }

    .woocommerce form .form-row-first,
    .woocommerce form .form-row-last,
    .woocommerce-page form .form-row-first,
    .woocommerce-page form .form-row-last {
        width: 100%;
    }

    .checkout-columns .woocommerce-shipping-fields {
        padding: 0 20px;
    }

    .checkout-columns .woocommerce-additional-fields {
        padding: 0 20px 20px 20px;
    }
}

/* Checkbox Fields */

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox {
    cursor: pointer;
}

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox input {
    display: none;
}

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox span:before {
    content: "";
    border: solid 1px var(--border-color);
    background-color: white;
    width: 22px;
    height: 22px;
    display: inline-block;
    border-radius: 4px;
    flex-shrink: 0;
}

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox span:not(.woocommerce-terms-and-conditions-checkbox-text) {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox input:checked+span:before {
    background: url(../../images/input-check.svg) no-repeat center;
    background-size: 12px;
    background-color: var(--blue-color);
    border-color: var(--blue-color);
    flex-shrink: 0;
}

/* Radio Buttons */

li.wc_payment_method {
    position: relative;
}

li.wc_payment_method input {
    display: none;
}

li.wc_payment_method label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    width: 100%;
}

li.wc_payment_method label img {
    display: none;
}

li.wc_payment_method label:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
}

li.wc_payment_method label:before {
    content: "";
    border: solid 1px var(--border-color);
    background-color: white;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 100%;
    flex-shrink: 0;
}

li.wc_payment_method input:checked+label:before {
    background: url(../../images/input-check.svg) no-repeat center;
    background-size: 10px;
    background-color: var(--blue-color);
    border-color: var(--blue-color);
}

li.wc_payment_method .payment_box:before {
    display: none !important;
}

tr.woocommerce-shipping-totals.shipping ul#shipping_method li input {
    display: none;
}

tr.woocommerce-shipping-totals.shipping ul#shipping_method li label:before {
    content: "";
    border: solid 1px var(--border-color);
    background-color: white;
    width: 20px;
    height: 20px;
    display: inline-block;
    border-radius: 100%;
    flex-shrink: 0;
}

tr.woocommerce-shipping-totals.shipping ul#shipping_method li input:checked+label:before {
    background: url(../../images/input-check.svg) no-repeat center;
    background-size: 10px;
    background-color: var(--blue-color);
    border-color: var(--blue-color);
}

.woocommerce ul#shipping_method li label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-wrap: nowrap;
}

.woocommerce ul#shipping_method li label .shipping-method-title {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.woocommerce ul#shipping_method li:not(:last-of-type) {
    margin-bottom: 10px;
}

@media (max-width:768px) {
    .woocommerce ul#shipping_method li label .shipping-method-title {
        font-size: 14px;
        line-height: 1.4;
    }
}