/* ================================================
   NOTIFY BACK-IN-STOCK — BUTTON
   ================================================ */

.pg-btn-notify {
    height: 45px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 16px;
    border-radius: 2px;
    border: 1px solid var(--pg-border-medium);
    background: var(--pg-white);
    color: var(--pg-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    gap: 8px;
}

.pg-btn-notify:hover {
    background: var(--pg-dark);
    border-color: var(--pg-dark);
    color: var(--pg-white);
}

.pg-btn-notify:active {
    background: var(--pg-dark);
    border-color: var(--pg-dark);
    color: var(--pg-white);
}

@media (min-width: 1024px) {
    .pg-btn-notify {
        height: 50px;
        padding: 0 32px;
        font-size: 15px;
        font-weight: 600;
    }
}

@media (max-width: 768px) {
    .pg-btn-notify svg {
        display: none;
    }
}

/* ================================================
   NOTIFY BACK-IN-STOCK — MODAL
   ================================================ */

.pg-notify-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.pg-notify-modal.is-active {
    opacity: 1;
    visibility: visible;
}

.pg-notify-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.pg-notify-card {
    position: relative;
    background: var(--pg-white);
    width: 100%;
    max-width: 100%;
    padding: 32px 24px;
    border-radius: 2px 2px 0 0;
    z-index: 1;
    transform: translateY(20px);
    transition: transform 0.25s ease;
    text-align: center;
}

.pg-notify-modal.is-active .pg-notify-card {
    transform: translateY(0);
}

/* Desktop: centered card */
@media (min-width: 768px) {
    .pg-notify-modal {
        align-items: center;
    }

    .pg-notify-card {
        max-width: 420px;
        border-radius: 2px;
        padding: 40px 32px;
        box-shadow: var(--pg-shadow-lg);
    }
}

.pg-notify-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--pg-light-grey, #F3F4F6);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg-grey, #6B7280);
    transition: all 0.2s;
    z-index: 2;
    padding: 0;
    line-height: 1;
}

.pg-notify-close svg {
    display: block;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.pg-notify-close:hover {
    background: var(--pg-border, #E5E7EB);
    color: var(--pg-dark, #1F2937);
}

.pg-notify-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--pg-galaxy-light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pg-galaxy);
}

.pg-notify-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--pg-dark);
    margin: 0 0 8px;
}

.pg-notify-desc {
    font-size: 14px;
    color: var(--pg-grey);
    margin: 0 0 24px;
    line-height: 1.5;
}

.pg-notify-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pg-notify-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
}

.pg-notify-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--pg-border);
    border-radius: 2px;
    font-size: 15px;
    color: var(--pg-dark);
    background: var(--pg-white);
    transition: border-color 0.2s;
    outline: none;
    box-sizing: border-box;
}

.pg-notify-input:focus {
    border-color: var(--pg-galaxy);
    box-shadow: 0 0 0 3px var(--pg-galaxy-shadow);
}

.pg-notify-error {
    font-size: 12px;
    color: var(--pg-error);
    min-height: 16px;
}

.pg-notify-submit {
    height: 48px;
    border: none;
    border-radius: 2px;
    background: var(--pg-dark);
    color: var(--pg-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
}

.pg-notify-submit:hover {
    background: var(--pg-dark);
}

/* Loading state */
.pg-notify-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--pg-white);
    border-radius: 50%;
    animation: pgSpin 0.6s linear infinite;
}

.pg-notify-submit.is-loading .pg-notify-submit-text {
    opacity: 0.5;
}

.pg-notify-submit.is-loading .pg-notify-spinner {
    display: block;
}

.pg-notify-submit.is-loading {
    pointer-events: none;
}

@keyframes pgSpin {
    to { transform: rotate(360deg); }
}

.pg-notify-login-link {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--pg-galaxy);
    text-decoration: none;
    font-weight: 500;
}

.pg-notify-login-link:hover {
    text-decoration: underline;
}

/* ================================================
   NOTIFY BACK-IN-STOCK — TOAST
   ================================================ */

.pg-notify-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: var(--pg-dark);
    color: var(--pg-white);
    padding: 12px 24px;
    border-radius: 2px;
    font-size: 14px;
    font-weight: 500;
    z-index: 100001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: var(--pg-shadow-md);
    max-width: calc(100% - 40px);
    text-align: center;
}

.pg-notify-toast.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.pg-notify-toast.is-success {
    background: var(--pg-success);
}

.pg-notify-toast.is-error {
    background: var(--pg-error);
}

