/* Closed by default — never block the page with pointer-events:none while visible */
.inr-notes-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100050;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.inr-notes-modal.is-open {
    display: flex;
}

.inr-notes-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 18, 0.72);
    backdrop-filter: blur(6px);
    cursor: pointer;
}

.inr-notes-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 480px);
    background: linear-gradient(165deg, rgba(28, 32, 48, 0.98), rgba(18, 20, 32, 0.99));
    border: 1px solid rgba(232, 164, 184, 0.25);
    border-radius: 14px;
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    color: var(--clr-text, #f4f0eb);
    cursor: default;
}

.inr-notes-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    border: none;
    background: transparent;
    color: var(--clr-text-muted, #a8a4b8);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0.15rem 0.35rem;
}

.inr-notes-modal__close:hover {
    color: var(--clr-rose, #e8a4b8);
}

.inr-notes-modal__title {
    font-family: var(--font-heading, 'Playfair Display', serif);
    font-size: 1.35rem;
    margin: 0 1.5rem 0.35rem 0;
    font-weight: 600;
}

.inr-notes-modal__product {
    margin: 0 0 0.35rem;
    font-size: 0.95rem;
    color: var(--clr-rose, #e8a4b8);
}

.inr-notes-modal__hint {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    color: var(--clr-text-muted, #a8a4b8);
    line-height: 1.45;
}

.inr-notes-modal__input {
    width: 100%;
    min-height: 110px;
    resize: vertical;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
    color: inherit;
    padding: 0.75rem 0.85rem;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.45;
}

.inr-notes-modal__input:focus {
    outline: none;
    border-color: var(--clr-rose, #e8a4b8);
    box-shadow: 0 0 0 2px rgba(232, 164, 184, 0.2);
}

.inr-notes-modal__count {
    margin: 0.35rem 0 1rem;
    font-size: 0.75rem;
    color: var(--clr-text-dim, #7a7688);
    text-align: right;
}

.inr-notes-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.inr-notes-btn {
    font-size: 0.82rem !important;
    padding: 0.55rem 1rem !important;
    border-radius: 999px !important;
    cursor: pointer;
}

.inr-notes-btn--ghost {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: var(--clr-text-muted, #a8a4b8) !important;
}

.inr-notes-btn--secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: var(--clr-text, #f4f0eb) !important;
}

body.inr-notes-modal-open {
    overflow: hidden;
}

.cart-drawer-item-notes {
    font-size: 0.75rem;
    color: var(--clr-text-muted, #a8a4b8);
    margin: 0.25rem 0 0.5rem;
    line-height: 1.35;
    font-style: italic;
}

.cart-drawer-item-notes strong {
    color: var(--clr-rose, #e8a4b8);
    font-style: normal;
    font-weight: 600;
}
