/* Form */
.woocommerce-checkout .page-wrapper {
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.woocommerce-checkout .page-content {
    width: 100%;
    padding: 0;
    margin: 0;
}

.col2-set {
    display: flex;
    margin-bottom: -120px;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.woocommerce .col2-set .col-1,
.woocommerce-page .col2-set .col-1,
.woocommerce .col2-set .col-2,
.woocommerce-page .col2-set .col-2 {
    float: none;
    width: 100%;
}

.col {
    display: flex;
}

.col-1 {
    justify-content: flex-end;
    padding: 38px 50px 170px 50px;
}

.col-2 {
    background-color: #fff;
    justify-content: flex-start;
    padding: 70px 50px 170px 50px;
}

.col-inner {
    max-width: 575px;
    width: 100%;
    position: relative;
}

.checkout-head {
    display: flex;
    gap: 10px;
}

.checkout-h3 {
    font-size: 18px;
    margin-bottom: 20px;
    margin-right: auto;
}

.woocommerce-checkout-group {
    background-color: #fff;
    padding: 35px;
    border-radius: 5px;
    margin-bottom: 35px;

    &.hidden {
        display: none;

    }
}

.woocommerce-checkout-group hr {
    width: 100%;
    height: 1px;
    border: none;
    background: #efefef;
    margin: 25px 0;
}

.woocommerce-checkout #payment {
    background-color: transparent;
    border-radius: 0;
    padding: 0;
}

.woocommerce-checkout #payment div.form-row {
    padding: 0;
    margin: 0;
}

.woocommerce-checkout-review-order {
    position: sticky;
    top: 50px;
}

/* Review table */
.woocommerce table.shop_table {
    position: relative;
    margin: 0;
    padding: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0 10px;
    z-index: 0;
}

.woocommerce table.shop_table thead {
    display: none;
}

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

.woocommerce table.shop_table tbody .cart_item td {
    border: 1px solid #d3d3d3;
    padding: 10px 15px;
    border-radius: 5px;
    vertical-align: top;
    transition: border-color 0.2s ease;
}

.cart-item-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.cart-item-flex.column {
    flex-direction: column;
}

.cart-item-logos {
    width: 100%;
    margin-bottom: 10px;

    display: grid;
    grid-template-columns: auto min-content;
    align-items: center;
    gap: 0 10px;

    font-size: 12px;
}

.cart-item-logos div {
    opacity: 0.6;
}

.cart-item-logos .amount {
    text-align: end;
}

.cart-item-logos.sale .amount {
    text-decoration: line-through;
}

.cart-item-title {
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
}

.cart-item-name {
    text-decoration: none;
}

.woocommerce table.shop_table tbody .cart_item td.product-total {
    text-align: right;
}

.woocommerce table.shop_table .product-data {
    flex: 1;
    width: 100%;
    padding: 10px;
}

.woocommerce .woocommerce-shipping-methods {
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 10px;
    /* text-align: left; */
}

.woocommerce table.shop_table small {
    display: block;
    text-align: end;
}

.woocommerce table.shop_table small .amount {
    font-weight: 400 !important;
}

.product-name-flex {
    display: flex;
    align-items: center;
}

.product-name-flex .remove-item {
    align-self: flex-start;
    bottom: 1px;
    right: 6px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.woocommerce table.shop_table tbody .cart_item:hover .remove-item {
    opacity: 1;
}

.woocommerce table.shop_table tbody .cart_item:hover td {
    border-color: #222222;
}

.product-name-flex .remove-item svg path {
    transition: all 0.2s ease;
}

.product-name-flex .remove-item:hover svg path {
    fill: var(--primary-color);
}

.product-name-flex .product-image {
    width: 100px;
    height: 100px;
}

.product-name-flex .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.woocommerce-checkout dd p,
.woocommerce-checkout dd,
.woocommerce-checkout dl,
.woocommerce-checkout dt {
    margin: 0;
    padding: 0;
    font-size: 12px;
    font-weight: inherit;
    opacity: 1;
}

.woocommerce-checkout dt {
    opacity: 0.6;
}

.woocommerce-checkout dt {
    font-weight: bold;
}

.woocommerce table.shop_table tfoot td,
.woocommerce table.shop_table tfoot th {
    padding: 0 0 10px 0;
    border: 0;
    border-bottom: 1px solid #f6f6f6;
}

.woocommerce table.shop_table tfoot th {
    white-space: nowrap;
    vertical-align: top;
    padding-right: 10px;
}

.woocommerce table.shop_table tfoot td {
    text-align: right;
}

.default-address-label,
.woocommerce-shipping-methods>label {
    border: 1px solid #ddd;
    padding: 15px 25px;
    border-radius: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px 25px;
    width: 100%;
    color: #aaa;
    transition: all 0.2s ease;
}

.default-address-label:before,
.woocommerce-shipping-methods>label:before {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 100%;
    border: 1px solid #ddd;
    background-position: center;
    background-repeat: no-repeat;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.default-address-label:hover:before,
.woocommerce-shipping-methods>label:hover:before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7.789' height='5.809'%3E%3Cpath d='M2.646 5.695.114 3.163a.39.39 0 0 1 0-.551l.551-.551a.389.389 0 0 1 .551 0l1.705 1.706L6.574.114a.39.39 0 0 1 .551 0l.551.551a.39.39 0 0 1 0 .551L3.2 5.695a.389.389 0 0 1-.554 0Z' fill='%23ddd'/%3E%3C/svg%3E");
}

.default-address-label:hover,
.woocommerce-shipping-methods>label:hover {
    border-color: var(--primary-color);
}

.default-address-label .entity-name,
.woocommerce-shipping-methods>label .shipping-label {
    font-weight: bold;
    color: #555;
}

.woocommerce-shipping-methods>label .shipping-label {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

input:checked+.default-address-label,
.woocommerce-shipping-methods>label:has(input:checked) {
    border-color: var(--primary-color);
}

input:not(:checked)+.default-address-label,
.woocommerce-shipping-methods>label:has(input:not(:checked)) {
    cursor: pointer;
}

input:checked+.default-address-label:before,
.woocommerce-shipping-methods>label:has(input:checked):before,
.woocommerce-shipping-methods>label:has(input[type="hidden"]):before {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7.789' height='5.809'%3E%3Cpath d='M2.646 5.695.114 3.163a.39.39 0 0 1 0-.551l.551-.551a.389.389 0 0 1 .551 0l1.705 1.706L6.574.114a.39.39 0 0 1 .551 0l.551.551a.39.39 0 0 1 0 .551L3.2 5.695a.389.389 0 0 1-.554 0Z' fill='%23fff'/%3E%3C/svg%3E");
}

input[name="billing-address"],
input[name="shipping-address"] {
    display: none;
}

input:not(:checked)+.custom-address-label {
    cursor: pointer;
}

.custom-address-label {
    color: var(--primary-color);
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
    font-weight: bold;
}

.woocommerce-track-and-trace-fields__field-wrapper,
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 5px 20px;
}

.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #efefef;
}

@media (max-width: 768px) {

    .woocommerce-track-and-trace-fields__field-wrapper,
    .woocommerce-billing-fields__field-wrapper,
    .woocommerce-shipping-fields__field-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }

    p#track_and_trace_email,
    p#track_and_trace_phone {
        grid-column: 2 span;
    }
}

/* Input fields */
.form-row label {
    font-weight: 500;
}

.form-row input[type="text"],
.form-row input[type="tel"],
.form-row input[type="email"],
.form-row select {
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 50px;
    padding: 0 15px;
    outline: 0;
}

.form-row input[type="text"]:not(:read-only):focus-within,
.form-row input[type="tel"]:not(:read-only):focus-within,
.form-row input[type="email"]:not(:read-only):focus-within,
.form-row select:focus {
    border-color: #4d90fe;
}

.woocommerce form .form-row.woocommerce-validated input[type="text"],
.woocommerce form .form-row.woocommerce-validated input[type="tel"],
.woocommerce form .form-row.woocommerce-validated input[type="email"],
.woocommerce form .form-row.woocommerce-validated select {
    border-color: var(--primary-color);
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23aaa' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: center right 5px;
    outline: 0;
}

button#place_order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    height: 50px;
    border-radius: 5px;
    width: 190px;
    padding: 0 20px;
}

button#place_order:after {
    content: "";
    background: url("/wp-content/themes/zo24/images/shopping-cart.svg") no-repeat center;
    background-size: contain;
    width: 16px;
    height: 16px;
}

button#place_order.mobile {
    display: none;
}

@media (max-width: 1024px) {
    .simple-checkout .col2-set {
        margin-bottom: 0;
    }

    body:not(.simple-checkout) button#place_order.desktop {
        display: none;
    }

    button#place_order.mobile {
        display: flex;
    }

    .woocommerce-shipping-methods:before {
        content: 'Shipping';
        text-align: left;
        font-weight: bold;
    }
}

.toggle-all-cart-items-tr {
    display: none
}

@media (min-width: 768px) {
    .toggle-all-cart-items-tr {
        display: table-row;
    }

    .woocommerce:not(.show-all-cart-items) table.shop_table tbody .cart_item.hidden {
        display: none;
    }

    .woocommerce.show-all-cart-items table.shop_table tbody .cart_item.hidden {
        display: table-row;
    }

    .woocommerce:not(.show-all-cart-items) table.shop_table tbody .cart_item.last {
        position: relative;
    }

    .woocommerce:not(.show-all-cart-items) table.shop_table tbody .cart_item.last td: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), rgba(255, 255, 255, 1) 80%);
        z-index: 9;
    }

    .toggle-all-cart-items-tr {
        position: relative;
        color: #aaa;
    }

    .woocommerce:not(.show-all-cart-items) .toggle-all-cart-items {
        position: absolute;
        top: -70px;
        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;
    }
}

@media(max-width:767px) {
    .woocommerce table.shop_table tbody .cart_item.hidden {
        display: table-row;
    }
}

/* Coupon */
.toggle-discount-code {
    display: inline-block;
    color: var(--primary-color);
    cursor: pointer;
    padding: 10px 0;
}

.woocommerce-remove-coupon,
.woocommerce:not(.show-discount-code) .hide-discount-code,
.woocommerce.show-discount-code .show-discount-code {
    display: none;
}



.discount-code-flex {
    display: flex;
    align-items: center;
    gap: 15px;
}

.discount-code-form {
    padding: 15px;
    border: 1px solid #d3d3d3;
    border-radius: 5px;
    display: none;
}

.woocommerce.show-discount-code .discount-code-form {
    display: block;
}

.discount-code-headline {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 10px 0;
    padding: 0;
}

.discount-code-flex input {
    width: 100%;
    font-weight: normal;
}

.remove-discount-code {
    color: #d3d3d3;
    cursor: pointer;
    transition: color 0.2s ease;
}

.remove-discount-code:hover {
    color: inherit;
}

.apply-discount-code {
    color: var(--primary-color);
    cursor: pointer;
}

.discount-code-flex .discount-row {
    position: relative;
    width: 100%;
}

.discount-row {
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 50px;
    padding: 0 15px;
    display: flex;
    overflow: hidden;
}

.discount-row input {
    border: 0;
    outline: 0;
    height: 50px;
}

.discount-row input:read-only {
    cursor: not-allowed;
    color: #d3d3d3;
}

.code-applied {
    font-weight: normal;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 10px;
    flex-shrink: 0;
}

.code-applied:after {
    content: "";
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7.789' height='5.809'%3E%3Cpath d='M2.646 5.695.114 3.163a.39.39 0 0 1 0-.551l.551-.551a.389.389 0 0 1 .551 0l1.705 1.706L6.574.114a.39.39 0 0 1 .551 0l.551.551a.39.39 0 0 1 0 .551L3.2 5.695a.389.389 0 0 1-.554 0Z' fill='%23fff'/%3E%3C/svg%3E");
}

@media (max-width: 1024px) {
    .checkout .col2-set {
        flex-direction: column-reverse;
        padding: 10px;
    }

    .checkout .col-inner {
        max-width: unset;
    }

    .checkout .col-2 {
        padding-bottom: 70px;
    }

    .checkout .remove-item {
        opacity: 1;
    }
}

@media (max-width: 500px) {
    .cart-item-flex {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Points */
#points-radio :where(th, td),
#points-toggle :where(th, td) {
    font-weight: 400;
    padding: 10px 0 20px;
}

#points-radio th {
    /* display: flex; */
    /* flex-direction: column; */
}

#points-radio th div,
#points-toggle th div {
    white-space: nowrap;
}

#points-radio .points-highlight,
#points-toggle .points-highlight {
    color: var(--primary-color);
    font-weight: 700;
    padding-inline: 5px;
}

#points-radio label,
#points-toggle label {
    display: flex;
    justify-content: flex-end;
}

#points-radio label input,
#points-toggle label input {
    margin-left: 5px;
}

.point-exclusive #points-toggle label,
.point-exclusive .woocommerce-checkout-payment .woocommerce-checkout-group,
.point-exclusive.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total,
.point-exclusive.woocommerce-checkout .woocommerce-checkout-review-order-table tfoot tr:has(+ tr.order-total) {
    display: none;
}

.woocommerce-checkout-review-order-table tr:empty {
    display: none;
}

/* PAYMENT METHODS */
#payment ul.payment_methods {
    display: flex;
    flex-direction: column;
    gap: 15px;

    padding: 0 !important;
    border-bottom: none !important;
}

#payment p {
    padding: 0;
    line-height: 1.5;
}

input[name="payment_method"] {
    display: none;
}

#payment .label-inner {
    flex: 1;
    display: flex;
    gap: 20px;
}

.payment-method-text {
    flex: 1;
}

.payment-method-name {
    font-weight: bold;
    color: #555;
}

.payment-method-icon {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    justify-content: flex-end;
}

.payment-method-icon img {
    margin: 0 !important;
    object-fit: contain;
}

/* ORDER COMPLETED */

.thankyou-wrapper {
    margin: 50px auto 0;
    max-width: 650px;
    min-height: 400px;
    padding: 0 25px;
}

.thankyou-card {
    background-color: #fff;
    border-radius: 5px;
    margin-bottom: 35px;
}

.thankyou-card-header {
    height: 180px;
    background-color: var(--primary-color);
    border-radius: 5px 5px 0 0;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.thankyou-card-header svg {
    width: 32px;
    height: 32px;
    padding: 9px;
    background-color: #fff;
    border-radius: 100%;
}

.thankyou-card-header svg * {
    fill: var(--primary-color);
}

.thankyou-card-header h1 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 33px;
}

.thankyou-card-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 35px;

    font-size: 14px;
    line-height: 21px;
}

.thankyou-manager {
    color: var(--primary-color);
    font-size: 14px;
    line-height: 21px;
    font-weight: 700;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
}

.thankyou-manager-contact {
    color: #aaa;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.thankyou-card-body .btn {
    width: 150px;
    margin-top: 10px;
}

.thankyou-footer {
    color: #aaa;
    font-size: 12px;
    line-height: 18px;

    max-width: 530px;
    margin: 0 auto;
}

.thankyou-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.woocommerce-checkout .woocommerce-error {
    text-align: left;
    border: none;
    border-left: 4px solid #ba1818;
    padding: 40px;
    color: #ba1818;
    background: #ffefef;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 40px;
}

.woocommerce-checkout .woocommerce-error::before {
    display: none;
}

.woocommerce-checkout .woocommerce-error a.wc-backward {
    display: inline-block;
    text-decoration: none;
    background: #222;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    display: block;
    max-width: 150px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 15px;
}

@media screen and (max-width: 768px) {
    .checkout .col-2 {
        padding: 20px;
    }

    .checkout .col-1 {
        padding: 25px 0px 170px 0px;
    }

    .checkout-h3 {
        font-size: 25px;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .woocommerce-checkout table.shop_table tbody th,
    .woocommerce-checkout table.shop_table tfoot td,
    .woocommerce-checkout table.shop_table tfoot th {
        font-weight: 400;
        font-size: 12px;
    }

    .woocommerce-checkout ul#shipping_method .amount {
        font-weight: 400;
    }

    .woocommerce-checkout table.shop_table tfoot tr.order-total th {
        font-weight: 700;
    }

    .woocommerce-checkout table.shop_table tfoot td,
    .woocommerce-checkout table.shop_table tfoot th {
        padding: 0 0 5px 0;
    }

    .woocommerce-checkout-group {
        padding: 25px 20px;
        border-radius: 0;
        margin-bottom: 25px;
    }

    .woocommerce #payment #place_order,
    .woocommerce-page #payment #place_order {
        width: calc(100% - 20px);
        margin-left: auto;
        margin-right: auto;
    }

    .toggle-discount-code {
        font-weight: 600;
    }

    .custom-address-label {
        justify-content: center;
        margin-top: 10px;
        font-weight: 600;
        margin-top: 20px;
    }
}

/* Custom shipping options */
.woocommerce form .custom-shipping-options {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
}

.woocommerce form .custom-shipping-options .form-row {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.woocommerce form .custom-shipping-options .form-row::before,
.woocommerce form .custom-shipping-options .form-row::after {
    content: none;
}

.woocommerce form .custom-shipping-options .form-row input,
.woocommerce form .custom-shipping-options .form-row select {
    max-width: 200px;
    margin: 0 !important;
    height: 30px;
}

.woocommerce-shipping-methods>label>input[type="radio"] {
    display: none;
}

.fee th .info {
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 100%;
    background-color: var(--primary-color);
    color: #fff;
    font-size: 10px;
    position: relative;
    top: -1px;
}

/* Simple checkout */
.simple-checkout :where(.col-1, .custom-address-label, .billing-address-fields + hr, .billing-address-fields + hr + .form-row, .woocommerce-checkout-payment, .woocommerce-shipping-totals, .toggle-discount-code, .woocommerce-checkout-review-order-table tfoot tr:not(:last-child)) {
    display: none !important;
}

.simple-checkout .col-2 {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.simple-checkout button[type="submit"] {
    width: 100% !important;
}

.simple-checkout .cart-item-logos {
    grid-template-columns: auto;
}

/* Order as */
select.branch-users {
    border: 1px solid #ddd;
    border-radius: 5px;
    height: 50px;
    padding: 0 15px;
    width: 100%;
}

.order-as-notice {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #bedcff;
    padding: 13px;
    border-radius: 5px;
    border-left: 10px solid #568bc9;
    margin-top: 15px;
}

.order-as-notice button {
    font-size: 12px;
    background-color: transparent;
    border: 0;
    padding: 0;
    font-weight: 500;
    cursor: pointer;
}

body.points span.woocommerce-Price-currencySymbol {
    font-size: 0;
}

body.points span.woocommerce-Price-currencySymbol::after {
    content: 'pts.';
    font-size: 14px;
}