.bulk-stock-modal[hidden] {
    display: none !important;
}

.bulk-stock-modal {
    position: fixed;
    inset: 0;
    z-index: 40060;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.bulk-stock-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: rgba(20, 20, 25, 0.55);
    cursor: default;
}

.bulk-stock-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 24px;
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    color: #171717;
}

.bulk-stock-modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #383838;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.bulk-stock-modal__dialog h2 {
    margin: 0 40px 10px 0;
    font-size: 20px;
    line-height: 1.3;
}

.bulk-stock-modal__dialog p {
    margin: 0;
    color: #5f5f5f;
    font-size: 14px;
    line-height: 1.5;
}

.bulk-stock-modal__whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    margin-top: 18px;
    padding: 10px 16px;
    border-radius: 6px;
    background: #198f44;
    box-sizing: border-box;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
}

.bulk-stock-modal__whatsapp:hover,
.bulk-stock-modal__whatsapp:focus-visible {
    background: #147536;
    color: #fff;
}

.bulk-stock-modal__close:focus-visible,
.bulk-stock-modal__dialog:focus-visible,
.bulk-stock-modal__whatsapp:focus-visible {
    outline: 2px solid #d9026d;
    outline-offset: 2px;
}

body.bulk-stock-modal-open {
    overflow: hidden;
}

body.bulk-stock-cart-attempt #error-ajax-stock {
    display: none !important;
}

@media (max-width: 576px) {
    .bulk-stock-modal {
        align-items: flex-end;
        padding: 12px;
    }

    .bulk-stock-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 24px);
        padding: 20px;
    }

    .bulk-stock-modal__dialog h2 {
        font-size: 18px;
    }
}
