.pk-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10001;
    display: none;
    outline: 0;
    -webkit-overflow-scrolling: touch;
    max-width: 90%;
    max-height: 90%;
    width: 1000px;
    background-color: #fff;
    padding: 0 !important;

    .modal-body {
        gap: 40px;
    }

    .modal-open & {
        overflow: hidden auto;
    }

    &.fade .modal-dialog {
        transition: transform 0.3s ease-out;
        transform: translateY(-25%);
    }

    &.in .modal-dialog {
        transform: translate(0);
    }

    .modal-content {
        gap: 20px;
        padding: 1.5rem 2rem 2rem;
        box-sizing: border-box;
    }

    .modal-header {
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
        gap: 20px;

        button {
            background: none;
            border: none;
            color: #888;
        }
    }

    .modal-title {
        font-weight: 400;
        font-size: 1.25rem;
    }

    .modal-footer {
        padding: 15px;
        text-align: right;

        &:empty {
            display: none;
        }
    }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    cursor:
        url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjRweCIgaGVpZ2h0PSIyNHB4IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTIwIDIwTDQgNC4wMDAwM00yMCA0TDQuMDAwMDIgMjAiIHN0cm9rZT0iI2VlZSIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48L3N2Zz4=')
            12 12,
        auto;

    &.fade {
        background-color: #0000;
    }

    &.in {
        background-color: #00000080;
        backdrop-filter: blur(5px);
    }
}

body:has(.blockcart-modal.in) .quick-view,
body:has(.blockcart-modal.in) .quick-view + .modal-backdrop {
    display: none !important;
}

.js-inpost-shipping-map-modal {
    height: 90%;
}
.js-inpost-shipping-map-modal .modal-dialog,
.js-inpost-shipping-map-modal .modal-content {
    height: 100%;
}
