.woocommerce-form-coupon-toggle {
    display: none;
}

.shop_table_row.shop_table_foot.order-total div:last-of-type {
    text-align: right;
}

small.includes_tax {
    display: block;
}



/* Toggle cart lines */

.woocommerce:not(.show-all-cart-items) .product-checkout-rows .product-row.hidden {
    display: none;
}

.woocommerce:not(.show-all-cart-items) .product-checkout-rows .product-row.last {
    position: relative;
    border-bottom: 0;
}

.woocommerce:not(.show-all-cart-items) .product-checkout-rows .product-row.last:after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    top: -50px;
    width: 100%;
    height: calc(100% + 50px);
    pointer-events: none;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 100%);
    z-index: 9;
}

.toggle-all-cart-items-tr {
    position: relative;
    color: var(--e-global-color-text);
    font-weight: 600;
    font-size: 14px;
}

.toggle-all-cart-items-tr:before {
    content: "";
    width: 100%;
    height: 1px;
    background: #eee;
    display: flex;
    position: relative;
    margin-bottom: 10px;
}

.woocommerce:not(.show-all-cart-items) .toggle-all-cart-items {
    padding: 40px 0 0 0;
    width: 100%;
    z-index: 9999;
    cursor: pointer;
}

.woocommerce.show-all-cart-items .show-items,
.woocommerce:not(.show-all-cart-items) .hide-items {
    display: none;
}

.woocommerce:not(.show-all-cart-items) .show-items,
.woocommerce.show-all-cart-items .hide-items {
    display: block;
    text-align: center;
    cursor: pointer;
}

/* Checkout columns */
.checkout-columns {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 15px;
}

.col1 {
    grid-column: span 7;
    display: grid;
    gap: 15px;
    align-items: flex-start;
}

.col2 {
    grid-column: span 5;
}

/* Shipping methods */

.woocommerce ul#shipping_method li {
    display: flex;
    align-items: center;
}

.woocommerce ul#shipping_method li label {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 20px;
    border: solid 1px #e2e2e2;
    border-radius: 6px;
    background: white;
    color: var(--e-global-color-text);
    flex-wrap: wrap;
    cursor: pointer;
}

.woocommerce-checkout .woocommerce-shipping-totals.shipping th {
    display: none;
}

.woocommerce-checkout .checkout-review-shipping-table tbody tr td {
    padding: 0;
}

.woocommerce ul#shipping_method li input {
    display: none;
}

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

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

.woocommerce ul#shipping_method li input:checked+label {
    background: #F2F7FF;
    border: solid 2px var(--blue-color);
}

.shipping-method-title-wrapper {
    display: flex;
    flex-basis: calc(100% - 30px);
    justify-content: space-between;
}

.shipping-method-description {
    margin-left: 30px;
    font-size: 14px;
    opacity: .6;
}

span.shipping-method-price,
.woocommerce ul#shipping_method .amount {
    font-weight: 600;
}


/* Payment methods */

#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: white;
    margin-top: 20px;
}

#add_payment_method #payment div.payment_box::before,
.woocommerce-cart #payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
    display: none;
}

#add_payment_method #payment div.payment_box,
.woocommerce-cart #payment div.payment_box,
.woocommerce-checkout #payment div.payment_box {
    display: flex !important;
    padding: 0px 20px 20px 53px !important;
    color: var(--text-color) !important;
    font-weight: normal;
    font-size: 14px !important;
    line-height: 1.4 !important;
    margin-top: -15px;
    margin-bottom: 10px;
    width: auto !important;
    border-bottom: solid 1px var(--border-color);
    border-left: solid 1px var(--border-color);
    border-right: solid 1px var(--border-color);
    border-top: none;
    border-radius: 0 0 6px 6px;
}

.woocommerce-checkout #payment input:checked+label+div.payment_box {
    background-color: #edf4ff;
    border-bottom: solid 2px var(--blue-color);
    border-left: solid 2px var(--blue-color);
    border-right: solid 2px var(--blue-color);
    border-top: none;
}

.woocommerce-checkout #payment div.payment_box p {
    opacity: .6;
}

.woocommerce-checkout #payment .payment-image img {
    width: 100%;
    height: 25px;
    object-fit: contain;
}

.woocommerce-checkout #payment .payment-text {
    margin-right: 20px;
}

.woocommerce-checkout #payment .payment-image {
    display: flex;
    margin-left: auto;
}

#add_payment_method #payment ul.payment_methods li,
.woocommerce-cart #payment ul.payment_methods li,
.woocommerce-checkout #payment ul.payment_methods li {
    font-weight: 500 !important;
    color: var(--text-color) !important;
    display: flex;
    flex-direction: column;

    &.payment_method_briqpay {
        display: none;
    }

}

ul.wc_payment_methods.payment_methods.methods {
    border: none;
    padding: 20px 30px;
    margin: 0;
}

li.wc_payment_method input:checked+label {
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    margin-bottom: 0;
    background: #edf4ff;
    border-top: solid 2px var(--blue-color);
    border-left: solid 2px var(--blue-color);
    border-right: solid 2px var(--blue-color);
    font-weight: 600;
}

li.wc_payment_method label {
    display: flex;
    align-items: center;
    border-top: solid 1px var(--border-color);
    border-left: solid 1px var(--border-color);
    border-right: solid 1px var(--border-color);
    background: white;
    border-radius: 6px 6px 0 0;
    padding: 20px;
    cursor: pointer;
    color: var(--black-color);
    font-weight: 600;
}

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


.woocommerce-checkout #payment ul.payment_methods li input {
    display: none;
}

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

.shipping-method-review,
div#payment,
.shop_table.woocommerce-checkout-review-order-table,
#add_payment_method #payment,
.woocommerce-cart #payment,
.woocommerce-checkout #payment {
    background: white;
    border-radius: 6px;
}

.shop_table.woocommerce-checkout-review-order-table {
    padding-bottom: 30px;
}

.woocommerce table.shop_table {
    border-collapse: collapse;
    margin: 0;
}

h4.checkout-subheader,
h3#order_review_heading,
.woocommerce-billing-fields h3 {
    font-size: 20px;
    border-bottom: solid 1px var(--border-color);
    padding: 20px 30px;
    margin: 0;
}

p#billing_country_field {
    display: none;
}

.woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper {
    padding: 20px 30px 0 30px;
}

.woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper:after {
    content: "";
    display: block;
    clear: both;
}

.checkout-columns .woocommerce-shipping-fields {
    padding: 0 30px;
    clear: both;
}

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

.checkout-columns .woocommerce-additional-fields__field-wrapper p.notes label {
    margin-bottom: 5px;
}

.product-checkout-rows {
    padding: 0 30px;
}

.shop_table_row.cart_item.product-row {
    display: flex;
    font-size: 14px;
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 10px 0;
}

.shop_table_row.cart_item.product-row:last-child {
    margin-bottom: 0;
}

.checkout_shop_table_footer {
    padding: 0 30px;
}

.woocommerce-checkout .product-thumbnail {
    max-width: 45px;
    margin-right: 10px;
    border: solid 1px var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    padding: 3px;
    width: 45px;
    height: 45px;
}

.woocommerce-checkout .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

div#order_review {
    position: sticky;
    top: 40px;
}

a.checkout-edit-cart {
    position: absolute;
    right: 30px;
    top: 25px;
    font-size: 14px;
    font-weight: 500;
    opacity: .6;
    z-index: 2;
    text-decoration: none;
    color: var(--text-color);
    transition: opacity .2s;
}

a.checkout-edit-cart:hover {
    opacity: 1;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-data-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    color: var(--e-global-color-text);
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-data-row .product-name-quantity {
    grid-column: span 2;
    font-weight: 600;
    line-height: 1.4;
    font-size: 14px;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-data-row dl.variation {
    grid-column: span 2;
    font-size: 12px;
    opacity: .6;
    margin: 5px 0 0 0;
}

.woocommerce-checkout .variation dt {
    display: none;
}

.woocommerce-checkout .variation dd {
    margin: 0;
    display: flex;
    gap: 3px;
    align-items: center;
}

.woocommerce-checkout .variation dd:before {
    content: "-";
    display: inline-flex;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-data-row .product-total {
    text-align: right;
    grid-column-start: 3;
    grid-row-start: 1;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-data {
    flex: 1;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table small.woocommerce-price-suffix {
    display: block;
    text-align: right;
    line-height: 1.1;
}

.woocommerce-checkout .woocommerce-checkout-review-order-table .product-total span.woocommerce-Price-amount.amount {
    color: var(--e-global-color-text);
    font-weight: 500;
}

.shop_table_row.shop_table_foot:first-of-type {
    margin-top: 20px;
}

.shop_table_row.shop_table_foot {
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    color: var(--e-global-color-text);
}

.shop_table_row.shop_table_foot.order-total {
    border-top: solid 1px #eee;
    padding-top: 10px;
    margin-top: 10px;
    font-weight: 600;
}

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

input:checked+label .shipping-method-title-wrapper {
    font-weight: 600;
}

.woocommerce form .form-row label.checkbox {
    display: flex !important;
    background: #f7f7f7;
    padding: 10px;
    line-height: 1.1;
}

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox span.woocommerce-terms-and-conditions-checkbox-text {
    display: flex !important;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    flex-wrap: wrap;
}

label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox span.woocommerce-terms-and-conditions-checkbox-text:before {
    content: "";
    background: white;
    border: solid 1px #ddd;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
    margin-right: 8px;
}

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

a.woocommerce-terms-and-conditions-link {
    margin-left: 5px;
    text-decoration: underline !important;
    text-transform: lowercase !important;
    color: var(--black-color);
}

.woocommerce-invalid-required-field a.woocommerce-terms-and-conditions-link,
.woocommerce-terms-and-conditions-wrapper .woocommerce-invalid-required-field .required {
    color: var(--error-color) !important;
}

.woocommerce-terms-and-conditions-wrapper abbr.required {
    position: relative;
    top: 2px;
    left: -2px;
}

.woocommerce-terms-and-conditions-wrapper {
    margin-top: 20px;
    margin-bottom: 10px;
}

button#place_order {
    width: 100%;
    padding: 20px;
    background: var(--blue-button);
    font-weight: 700;
    border-radius: 6px;
    color: var(--white-color);
    transition: .1s ease;
}

button#place_order:hover {
    background: var(--blue-button-hover);
}

.woocommerce-checkout-review-order-table .form-row.place-order {
    padding: 0 30px;
}

table.checkout-review-shipping-table ul#shipping_method {
    padding: 20px 30px;
    margin: 0;
}

.woocommerce-validation-error button#place_order {
    background-color: #EEEEEE;
    color: #CCCCCC;
}

.woocommerce form .form-row.woocommerce-invalid label {
    color: red;
}

.form-row.woocommerce-invalid.woocommerce-invalid-required-field {
    border-color: red !important;
}

.woocommerce-error {
    background: #ffe9e9;
    border-top: none;
    border-left: solid 4px red;
    border-radius: 6px;
}

@media (max-width:1180px) {
    .col1 {
        grid-template-columns: 1fr;
        grid-column: span 6;
    }

    .col2 {
        grid-column: span 6;
    }

    div#order_review {
        position: sticky;
        top: 20px;
    }
}

@media (max-width:1024px) {
    .checkout-columns {
        grid-template-columns: repeat(1, 1fr);
    }

    .checkout-columns .product-checkout-rows {
        margin-bottom: 20px;
    }

    .col2 {
        grid-column: span 7;
    }

    .col1 {
        grid-template-columns: 1fr;
        grid-column: span 7;
    }

    #briqpay-wrapper {
        flex-direction: column-reverse;
    }
}

@media (max-width:767px) {

    .product-checkout-rows,
    .checkout_shop_table_footer,
    .woocommerce-checkout-review-order-table .form-row.place-order {
        padding: 0 20px;
    }

    .shop_table.woocommerce-checkout-review-order-table {
        padding-bottom: 20px;
    }

    .shipping-method-title-wrapper,
    li.wc_payment_method label,
    .shop_table_row.shop_table_foot {
        font-size: 14px;
    }

    .woocommerce ul#shipping_method li label,
    li.wc_payment_method label {
        padding: 20px 10px;
    }

    #add_payment_method #payment div.payment_box,
    .woocommerce-cart #payment div.payment_box,
    .woocommerce-checkout #payment div.payment_box {
        padding: 5px 10px 20px 43px !important;
        flex-direction: column;
    }

    .woocommerce-checkout #payment .payment-image {
        display: flex;
        margin-left: 0;
        margin-right: auto;
        margin-top: 10px;
    }

    .woocommerce-checkout #payment .payment-image img {
        height: 20px;
    }

    label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox span.woocommerce-terms-and-conditions-checkbox-text {
        display: block !important;
        position: relative;
        margin-left: 30px;
        line-height: 1.1;
    }

    label.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox span.woocommerce-terms-and-conditions-checkbox-text:before {
        position: absolute;
        top: 0px;
        left: -30px;
    }

    a.woocommerce-terms-and-conditions-link {
        margin-left: 0;
    }

    .woocommerce-billing-fields .woocommerce-billing-fields__field-wrapper {
        padding: 20px 20px 0 20px;
    }

    h4.checkout-subheader,
    h3#order_review_heading,
    .woocommerce-billing-fields h3 {
        padding: 20px;
    }

    table.checkout-review-shipping-table ul#shipping_method,
    ul.wc_payment_methods.payment_methods.methods {
        padding: 20px;
    }

    .woocommerce-checkout .woocommerce-checkout-review-order-table .product-data-row .product-total {
        font-size: 12px;
    }

    .woocommerce-checkout .woocommerce-checkout-review-order-table .product-data-row .product-name-quantity {
        font-size: 12px;
        line-height: 1.4;
    }

    .woocommerce-checkout #payment .payment-text {
        margin: 0;
    }
}

.customer-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: solid 1px #eee;
    font-size: 16px;
}

h3.customer-addresses-headline {
    font-size: 20px;
    border-bottom: solid 1px #eee;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3#ship-to-different-address {
    font-size: 16px;
    font-weight: 500;
    margin-top: 20px;
    margin-bottom: 20px;
}

h3#ship-to-different-address label input {
    display: none;
}

h3#ship-to-different-address label span {
    display: flex;
    align-items: center;
}

h3#ship-to-different-address label span:before {
    content: "";
    background: white;
    border: solid 1px #ddd;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
}

h3#ship-to-different-address label input:checked+span:before {
    background: url(../../images/input-check.svg) no-repeat center;
    background-color: var(--blue-color);
    background-size: 12px;
    border-color: var(--blue-color);
}

textarea#order_comments::placeholder {
    font-style: italic;
    color: var(--e-global-color-text);
}

span.woocommerce-input-wrapper>input {
    position: relative;
}

input[type="date" i]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    background-position: center;
    background-color: #F4F6F7;
    padding: 0 20px;
    border-left: solid 1px #ddd;
    cursor: pointer;
}

@media (max-width:767px) {
    .customer-addresses {
        display: grid;
        grid-template-columns: 1fr;
    }

}

/* Bornholm Shipping Message */

span.woocommerce-no-shipping-available-html.e-checkout-message {
    display: block;
    background: #f7f7f7;
    padding: 15px;
    border-radius: 4px;
}

/* Signup to Newsletter */

.form-row#billing_newsletter_field input {
    display: none;
}

.form-row#billing_newsletter_field label:before {
    content: "";
    background: white;
    border: solid 1px #ddd;
    border-radius: 4px;
    width: 20px;
    height: 20px;
    display: flex;
}

.form-row#billing_newsletter_field label.checkbox:has(input:checked):before {
    background: url(../../images/input-check.svg) no-repeat center;
    background-color: var(--blue-color);
    background-size: 12px;
    border-color: var(--blue-color);
}

.form-row#billing_newsletter_field label.checkbox {
    background: none;
    padding: 0;
    margin-top: 15px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    line-height: 1.4;
}

.form-row#billing_newsletter_field span.optional {
    display: none;
}

/* Customer Type */

.customer-type {
    margin-bottom: 15px;
}

.customer-type span {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
}

.customer-type>div {
    display: flex;
    gap: 10px;
}

.customer-type>div div {
    flex: 1;
}

.customer-type div div input {
    display: none;
}

.customer-type div div label {
    border: solid 1px var(--border-color);
    padding: 10px;
    border-radius: 4px;
    font-weight: 600;
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.customer-type div div 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;
    margin-right: 8px;
}

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

.customer-type div div input:checked+label {
    border-color: var(--blue-color);
    outline: solid 1px var(--blue-color);
    background-color: #F2F7FF;
}

.customer-type abbr.required {
    margin-left: 3px;
}

.customer-type.checkout-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #fff;
    padding: 10px 20px;
    border-radius: 6px;

    .checkout-selection-title {
        margin: 0px;
        line-height: 1.5;
    }

    .loading-text {
        display: none;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        font-size: 25px;
        font-weight: 600;
        z-index: 9999999;
        color: var(--blue-color);
        opacity: 1;
    }
}


#briqpay-wrapper {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

#briqpay-iframe-wrapper {
    order: 1;
    background-color: #fff;
    border-radius: 6px;
}

#briqpay-order-review {
    order: 2;
    width: 100%;
}

#briqpay-select-other,
#briqpay-extra-checkout-fields {
    display: none;
}

#briqpay-order-review {
    .form-row.place-order {
        display: none;
    }
}

@media (max-width:768px) {
    .customer-type>div {
        flex-direction: column;
    }

    .customer-type.checkout-selection {
        flex-direction: column;
        align-items: center;

        div {
            flex-direction: row;
            flex-wrap: wrap;
        }
    }

}

/* Briqpay Checkout */
.shop_table.woocommerce-checkout-review-order-table {
    display: flex;
    flex-direction: column;
}

.shop_table.woocommerce-checkout-review-order-table .shipping-method-review {
    order: -1;
}

.woocommerce-order-details {
    .order-actions-button.button {
        display: none;
    }

    th.order-actions--heading {
        display: none;
    }
}

#place_order,
.order-review-wrapper>#order_review_heading {
    display: none;
}

/* SVEA CHECKOUT */
@media screen and (min-width: 768px) {
    .woocommerce-page .wc-svea-checkout-page form.svea-checkout {
        grid-template-columns: 6fr 9fr;
    }
}

.shop_table.woocommerce-checkout-review-order-table {
    border: solid 1px rgb(225, 228, 229);
}

.woocommerce-checkout .main {
    padding: 0px !important;
}