img {
    &.montonio-payment-method-icon {
        height: 24px !important;
        margin-left: 8px;
    }
}

.montonio-bank-payments-form {
    &:not(:first-child) {
        margin-top: 16px;
    }


    .montonio-payments-country-dropdown {
        width: 120px;
    }

    .montonio-bank-items {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;

        &:not(:first-child) {
            margin-top: 16px;
        }
        
        img {
            border-radius: 0 !important;
        }

        .montonio-bank-item {
            width: 100px;
            height: 100px;
            border-radius: 8px;
            margin: 0;
            background: #ffffff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 12px;
            box-sizing: border-box;
            border: 1px solid rgba(0, 0, 0, 0.07);

            &:hover {
                background: #fbfbff;
                border: 1px solid rgba(0, 0, 0, 0.1);
            }

            &.active {
                background: #f3f2ff;
                border: 1px solid #4537cd;
                color: #4537cd;
            }

            &--hidden {
                display: none !important;
            }
        }

        &--list {
            flex-direction: column;
            gap: 10px;

            .montonio-bank-item {
                width: 100%;
                height: 60px;
                padding: 12px 17px;
            }
        }
    }
}

#montonio-payments-description.montonio-bank-items .montonio-bank-item-img,
#payment #montonio-payments-description.montonio-bank-items .montonio-bank-item-img {
    position: relative;
    right: unset;
    left: unset;
    float: none;
    border: 0;
    margin: 0;
    padding: 0;
    max-width: 100%;
    max-height: 26px;
    pointer-events: none;
    display: block;
}


.montonio-bnpl-items {
    display: flex;
    flex-direction: column;
    gap: 0;

    &:not(:first-child) {
        margin-top: 16px;
    }

    .montonio-bnpl-item {
        margin: 0;
        background: #ffffff;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        padding: 12px 25px;
        box-sizing: border-box;
        border: 1px solid rgba(0, 0, 0, 0.07);
        border-top: none;

        &:hover {
            background: #fbfbff;
        }

        &:first-child {
            border: 1px solid rgba(0, 0, 0, 0.07);
            border-top-left-radius: 7px;
            border-top-right-radius: 7px;
        }

        &:last-child {
            border-bottom-left-radius: 7px;
            border-bottom-right-radius: 7px;
        }

        &.active {
            background: #f3f2ff;
            border: 1px solid #4537cd;
            color: #4537cd;
        }

        &--disabled {
            background: #fefcfc;
            color: #a5a5a5;
            pointer-events: none;
        }

        .montonio-bnpl-item-subtitle {
            font-size: 12px;
            font-weight: normal;
        }
    }
}

#montonio-blik-form,
#montonio-card-form {
    &:not(:first-child) {
        margin-top: 16px;
    }

    &.loading {
        padding: 25px 0;
    }
}

.montonio-shipping-carrier-logo {
    max-height: 33px !important;
    max-width: 50px !important;
    display: block !important;
}

.montonio-shipping-carrier-logos {
    display: flex !important;
    gap: 5px;
    flex-wrap: wrap;
}

.montonio-pickup-point {
    overflow: visible !important;

    td {
        width: 100%;
        overflow: visible !important;
    }

    label {
        text-align: left;
    }
}

.choices {
    .choices__list--single {
        box-sizing: border-box;

        .choices__item {
        text-align: left;
        }
    }

    .choices__inner {
        box-sizing: border-box;

        .has-error & {
            border-color: #cc1818;
        }
    }

    .choices__list--dropdown .choices__item--selectable,
    .choices__list[aria-expanded] .choices__item--selectable {
        padding-right: 10px !important;
    }


    .choices__input {
        padding-left: 35px !important;
        background-color: #fff;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M19 19L14.65 14.65M17 9C17 13.4183 13.4183 17 9 17C4.58172 17 1 13.4183 1 9C1 4.58172 4.58172 1 9 1C13.4183 1 17 4.58172 17 9Z" stroke="%2327364B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        background-repeat: no-repeat;
        background-position: 11px center;
        background-size: 16px 16px;
    }
}

#montonio-shipping-pickup-point-dropdown-wrapper {
    position: relative;

    h2 {
        margin-bottom: 8px;
    }

    #montonio-shipping-pickup-point-dropdown {
        display: block;
        width: 100%;
    }

    .choices {
        margin-bottom: 0;
    }

    .montonio-pickup-point-id {
        display: block !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0px !important;
        height: 0px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: none !important;
        box-shadow: none !important;
        appearance: none !important;
        pointer-events: none !important;
    }
}

.wc-block-checkout__payment-method {
    .wc-block-components-radio-control__label {
        &>span {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
    }

    #montonio-card-form-wrapper {
        position: relative;
        min-height: 32px;
    }
}

.montonio-spinner {
    &::before {
        content: '';
        display: block;
        width: 32px;
        height: 32px;
        pointer-events: none;
        animation: montonio-spinner 1s infinite cubic-bezier(.65,.05,.36,.95);
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32" fill="none"><path opacity="0.16" d="M30 16C30 17.8385 29.6379 19.659 28.9343 21.3576C28.2308 23.0561 27.1995 24.5995 25.8995 25.8995C24.5995 27.1995 23.0561 28.2307 21.3576 28.9343C19.659 29.6379 17.8385 30 16 30C14.1615 30 12.341 29.6379 10.6424 28.9343C8.94387 28.2307 7.40052 27.1995 6.1005 25.8995C4.80048 24.5995 3.76925 23.0561 3.06569 21.3576C2.36212 19.659 2 17.8385 2 16C2 14.1615 2.36212 12.341 3.06569 10.6424C3.76926 8.94387 4.80049 7.40052 6.10051 6.1005C7.40053 4.80048 8.94388 3.76925 10.6424 3.06568C12.341 2.36212 14.1615 2 16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76926 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16L30 16Z" stroke="%23260071" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 2C17.8385 2 19.659 2.36212 21.3576 3.06569C23.0561 3.76925 24.5995 4.80049 25.8995 6.10051C27.1995 7.40053 28.2308 8.94388 28.9343 10.6424C29.6379 12.341 30 14.1615 30 16" stroke="%23260071" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        transform: rotate(-43deg);
    }

    &--centered {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }

    &--xs {
        &::before {
            width: 16px;
            height: 16px;
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path opacity="0.16" d="M15 8C15 8.91925 14.8189 9.82951 14.4672 10.6788C14.1154 11.5281 13.5998 12.2997 12.9497 12.9497C12.2997 13.5998 11.5281 14.1154 10.6788 14.4672C9.82951 14.8189 8.91925 15 8 15C7.08075 15 6.17049 14.8189 5.32122 14.4672C4.47194 14.1154 3.70026 13.5998 3.05025 12.9497C2.40024 12.2997 1.88463 11.5281 1.53284 10.6788C1.18106 9.8295 1 8.91925 1 8C1 7.08074 1.18106 6.17049 1.53284 5.32121C1.88463 4.47193 2.40024 3.70026 3.05025 3.05025C3.70027 2.40024 4.47194 1.88462 5.32122 1.53284C6.1705 1.18106 7.08075 1 8 1C8.91926 1 9.82951 1.18106 10.6788 1.53284C11.5281 1.88463 12.2997 2.40024 12.9498 3.05026C13.5998 3.70027 14.1154 4.47194 14.4672 5.32122C14.8189 6.1705 15 7.08075 15 8L15 8Z" stroke="%23260071" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/><path d="M8 1C8.91925 1 9.82951 1.18106 10.6788 1.53284C11.5281 1.88463 12.2997 2.40024 12.9497 3.05025C13.5998 3.70026 14.1154 4.47194 14.4672 5.32122C14.8189 6.1705 15 7.08075 15 8" stroke="%23260071" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
        }
    }
}

@keyframes montonio-spinner {
  0% {
    transform: rotate(-43deg);
  }

  100% {
    transform: rotate(317deg);
  }
}

.montonio-inbank-calculator {
    margin: 10px 0;
}

.montonio-pickup-point {
    overflow: visible !important;

    td {
        width: 100%;
        overflow: visible !important;
    }

    label {
        text-align: left;
    }

    &__container {
        position: relative;
        width: 100%;
    }

    &__search {
        position: relative;

        &-logos {
            position: absolute;
            top: 50%;
            left: 11px;
            transform: translateY(-50%);
            width: 44px;
            height: 29px;
            overflow: hidden;
            justify-content: flex-start;
        }

        &-logo {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            display: block;
            width: 44px;
            height: 29px;
            background-repeat: no-repeat;
            background-size: 100% auto;
            background-position: center;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
            background-image: url('../images/default-carrier-logo.svg');

            &:only-child {
                opacity: 1;
            }

            &--active {
                opacity: 1;
            }

            &--omniva {
                background-image: url(../images/omniva-rect.svg);
            }

            &--dpd {
                background-image: url(../images/dpd-rect.svg);
            }

            &--latvian_post {
                background-image: url(../images/latvian_post-rect.svg);
            }

            &--smartpost,
            &--smartposti {
                background-image: url(../images/smartposti-rect.svg);
            }

            &--unisend {
                background-image: url(../images/unisend-rect.svg);
            }

            &--venipak {
                background-image: url(../images/venipak-rect.svg);
            }

            &--inpost {
                background-image: url(../images/inpost-rect.svg);
            }

            &--orlen {
                background-image: url(../images/orlen-rect.svg);
            }

            &--novapost {
                background-image: url(../images/novaPost-rect.svg);
            }

            &--dhl {
                background-image: url(../images/dhl-rect.svg);
            }

            &--expressone {
                background-image: url(../images/expressone-rect.svg);
            }

            &--chronopost {
                background-image: url(../images/chronopost-rect.svg);
            }

            &--gls {
                background-image: url(../images/gls-rect.svg);
            }

            &--alzabox {
                background-image: url(../images/alzabox-rect.svg);
            }
        }

        &-input {
            width: 100%;
            background-color: #fff !important;
            border: 1px solid #d8d8d8 !important;
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20" fill="none"><path d="M19 19L14.65 14.65M17 9C17 13.4183 13.4183 17 9 17C4.58172 17 1 13.4183 1 9C1 4.58172 4.58172 1 9 1C13.4183 1 17 4.58172 17 9Z" stroke="%2327364B" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
            background-repeat: no-repeat;
            background-size: 16px 16px;
            background-position: right 11px center;
            border-radius: 2.5px;
            font-size: 14px;
            min-height: 48px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            box-sizing: border-box;
            box-shadow: none !important;
            padding: 10px 33px 10px 62px !important;

            &:focus {
                outline: none;
            }

            &::placeholder {
                color: #7C7C7B;
            }
        }
    }

    &__dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: -1px;
        background: white;
        border: 1px solid #d8d8d8;
        border-radius: 0 0 3px 3px;
        max-height: 300px;
        overflow-y: auto;
        z-index: 1000;
        display: none;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

        &--show {
            display: block;
        }
    }

    &__option {
        padding: 12px 16px;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
        transition: background-color 0.15s ease;

        &:hover {
            background-color: #f2f2f2f2;
        }

        &:last-child {
            border-bottom: none;
        }
    }

    &__option-name {
        font-size: 14px;
        font-weight: 500;
        color: #3C3C3C;
        margin-bottom: 0px;
    }

    &__option-address {
        font-size: 13px;
        color: #7C7C7B;
        line-height: 1.4;
        margin-bottom: 4px;
    }

    &__loading {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        padding: 16px;
        text-align: center;
        color: #6b7280;
        font-size: 14px;
    }

    &__no-results {
        padding: 16px;
        text-align: center;
        color: #9ca3af;
        font-size: 14px;
    }

    &__error {
        background: #ffebeb;
        color: #ce0920;
        font-size: 12px;
        padding: 9px 12px;
        margin-top: 5px;
        overflow-wrap: break-word;
        border-radius: 6px;

        &--hidden {
            display: none;
        }
    }
}

.action-required {
    .woocommerce-checkout-review-order:has(.blockUI) {
        opacity: 1 !important;
    }
}