/* MegaPets Stock Notifications — scoped public presentation. */
.mpsn-trigger,
.mpsn-dialog {
    --mpsn-gold: var(--mp-color-gold, #b98235);
    --mpsn-gold-dark: #8a591f;
    --mpsn-line: #ead6b7;
    --mpsn-text: #49392a;
    --mpsn-muted: #766757;
    --mpsn-surface: #fff;
    font-family: var(--mp-font-sans, "Manrope", Arial, sans-serif);
    box-sizing: border-box;
}
button.mpsn-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 43px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--mpsn-line);
    border-radius: var(--mp-radius, 8px);
    background: #fffaf3;
    color: var(--mpsn-gold-dark);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease;
}
.mpsn-bell {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@media (hover: hover) {
    button.mpsn-trigger:hover {
        border-color: var(--mpsn-gold);
        background: #fcf2e3;
        color: var(--mpsn-gold-dark);
    }
}
.mpsn-single-action,
.mpsn-variation-slot {
    max-width: 340px;
    margin: 16px 0;
}
.mpsn-variation-slot[hidden] { display: none; }
.mpsn-dialog-open { overflow: hidden; }
.mpsn-dialog {
    position: fixed;
    inset: 0;
    width: min(460px, calc(100% - 32px));
    max-width: 460px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--mpsn-line);
    border-radius: 16px;
    background: var(--mpsn-surface);
    color: var(--mpsn-text);
    box-shadow: 0 24px 90px rgba(38, 27, 17, .22);
    font-size: 14px;
    line-height: 1.6;
    z-index: 2147483000;
}
.mpsn-dialog:not([open]) { display: none; }
.mpsn-dialog::backdrop { background: rgba(28, 24, 20, .46); }
.mpsn-dialog *,
.mpsn-dialog *::before,
.mpsn-dialog *::after { box-sizing: border-box; }
.mpsn-dialog [hidden] { display: none !important; }
.mpsn-dialog-inner { position: relative; padding: 30px; }
.mpsn-dialog .mpsn-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 9px;
    right: 9px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    color: var(--mpsn-muted);
    font: 28px/1 Arial, sans-serif;
    cursor: pointer;
}
.mpsn-dialog .mpsn-close:hover { background: #faf5ed; color: var(--mpsn-gold-dark); }
.mpsn-dialog-symbol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 18px;
    border: 1px solid var(--mpsn-line);
    border-radius: 50%;
    background: #fcf6ec;
    color: var(--mpsn-gold-dark);
}
.mpsn-dialog h2 {
    margin: 0 24px 10px 0;
    color: var(--mpsn-text);
    font: normal 27px/1.2 var(--mp-font-serif, Georgia, serif);
    letter-spacing: 0;
    text-transform: none;
}
.mpsn-dialog .mpsn-intro { margin: 0 0 20px; color: var(--mpsn-muted); font-size: 14px; }
.mpsn-dialog .mpsn-product {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 12px;
    border: 1px solid #f0e7da;
    border-radius: 9px;
}
.mpsn-dialog .mpsn-product-visual {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    overflow: hidden;
    border-radius: 5px;
    background: #fff;
}
.mpsn-dialog .mpsn-product-image {
    display: block;
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    object-fit: contain;
    border: 0;
    border-radius: 5px;
    background: #fff;
}
.mpsn-dialog .mpsn-product-name { font-size: 13px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.mpsn-dialog form { margin: 0; }
.mpsn-dialog label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 500; color: var(--mpsn-text); }
.mpsn-dialog input[type="email"] {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid #d6c8b6;
    border-radius: 7px;
    background: #fff;
    box-shadow: none;
    color: var(--mpsn-text);
    font: inherit;
    font-size: 16px;
    line-height: 1.4;
}
.mpsn-dialog .mpsn-submit {
    display: block;
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 11px 16px;
    border: 1px solid #9e6727;
    border-radius: 7px;
    background: #9e6727;
    color: #fff;
    box-shadow: none;
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    letter-spacing: 0;
    text-transform: none;
    cursor: pointer;
}
.mpsn-dialog .mpsn-submit:hover { background: #87561f; border-color: #87561f; }
.mpsn-dialog .mpsn-submit:disabled { cursor: wait; opacity: .7; }
.mpsn-dialog .mpsn-privacy { margin: 12px 0 0; color: var(--mpsn-muted); font-size: 11px; line-height: 1.6; }
.mpsn-dialog .mpsn-privacy a { color: var(--mpsn-gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.mpsn-dialog .mpsn-message { margin: 18px 0 0; font-size: 14px; color: #35643e; overflow-wrap: anywhere; }
.mpsn-dialog .mpsn-message.is-error { color: #9b3328; }
.mpsn-dialog .mpsn-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
button.mpsn-trigger:focus-visible,
.mpsn-dialog button:focus-visible,
.mpsn-dialog input:focus-visible,
.mpsn-dialog a:focus-visible { outline: 2px solid #87561f; outline-offset: 3px; }
@media (max-width: 480px) {
    .mpsn-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); border-radius: 13px; }
    .mpsn-dialog-inner { padding: 24px 20px; }
    .mpsn-dialog h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
    button.mpsn-trigger { transition: none; }
}
