.stock-notify-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    /* min-height: 25px; */
    padding: 0.45rem 0.7rem;
    border: 1px solid #d62828;
    /* border-radius: 8px; */
    background: #fff5f3;
    color: #c32626;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.stock-notify-trigger:hover,
.stock-notify-trigger:focus {
    background: #d62828;
    color: #fff;
    transform: translateY(-1px);
}

.stock-watermark-wrap {
    position: relative;
}

.stock-watermark-wrap::after {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    padding: 0.4rem 0.9rem;
    border: 2px solid rgba(214, 40, 40, 0.62);
    background: rgba(255, 245, 243, 0.72);
    color: rgba(174, 24, 24, 0.86);
    content: 'OUT OF STOCK';
    font-size: clamp(0.8rem, 2vw, 1.15rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-12deg);
    white-space: nowrap;
}

.product-details.stock-watermark-wrap::after {
    top: 28%;
    opacity: 0.9;
}

.stock-notify-modal .modal-dialog {
    max-width: 520px;
    margin: 1.75rem auto;
}

.stock-notify-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(23, 33, 58, 0.24);
}

.stock-notify-modal .modal-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.6rem 1.8rem 1.2rem;
    border: 0;
    background: linear-gradient(135deg, #fff4f6 0%, #ffffff 72%);
}

.stock-notify-modal .modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border: 1px solid #ffd0d8;
    border-radius: 12px;
    background: #ffe7eb;
    color: #d62828;
    font-size: 1.65rem;
    font-weight: 900;
}

.stock-notify-modal .modal-title {
    margin: 0;
    color: #17213a;
    padding-right: 2.5rem;
    font-size: 1.72rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
}

.stock-notify-modal .modal-subtitle {
    margin: 0.42rem 0 0;
    color: #697386;
    font-size: 1.18rem;
    line-height: 1.5;
}

.stock-notify-modal .close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #f1d7dc;
    background: #fff;
    color: #697386;
    font-size: 2rem;
    line-height: 1;
    opacity: 1;
}

.stock-notify-modal .close:hover,
.stock-notify-modal .close:focus {
    color: #d62828;
    border-color: #d62828;
    outline: 0;
}

.stock-notify-modal .modal-body {
    padding: 1.35rem 1.8rem 0.4rem;
}

.stock-notify-modal .form-group {
    margin-bottom: 1rem;
}

.stock-notify-modal label {
    display: block;
    margin-bottom: 0.45rem;
    color: #17213a;
    font-size: 1.08rem;
    font-weight: 800;
}

.stock-notify-modal .form-control {
    min-height: 44px;
    border: 1px solid #e4e8f0;
    border-radius: 8px;
    background: #fbfcfe;
    color: #17213a;
    font-size: 1.2rem;
    box-shadow: none;
}

.stock-notify-modal .form-control:focus {
    border-color: #d62828;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(214, 40, 40, 0.12);
    outline: 0;
}

.stock-notify-modal .modal-footer {
    display: flex;
    gap: 0.8rem;
    padding: 0.25rem 1.8rem 1.65rem;
    border: 0;
}

.stock-notify-modal .modal-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 44px;
    border-radius: 8px;
    box-shadow: none;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.stock-notify-modal .modal-footer .btn-danger {
    background: #d62828;
    border-color: #d62828;
    color: #fff;
}

.stock-notify-modal .modal-footer .btn-danger:hover,
.stock-notify-modal .modal-footer .btn-danger:focus {
    background: #b51f1f;
    border-color: #b51f1f;
    color: #fff;
}

@media (max-width: 575px) {
    .stock-notify-modal .modal-dialog {
        margin: 0.75rem;
    }

    .stock-notify-modal .modal-header,
    .stock-notify-modal .modal-body {
        padding: 1.25rem;
    }

    .stock-notify-modal .modal-footer {
        padding: 0 1.25rem 1.25rem;
    }

    .stock-notify-modal .modal-title {
        font-size: 1.55rem;
    }
}
