/**
 * PP Inspiracje — okno szybkiej rejestracji i ustawiania hasła.
 *
 * Jeden arkusz obsługuje oba okna, bo to ten sam moment w oczach klienta:
 * „zachowuję swoją listę". Rozdzielenie stylów dałoby dwa różne wyglądy
 * na dwóch krokach tej samej czynności.
 *
 * Okno ustawiania hasła MUSI wyglądać poprawnie bez JavaScriptu — klient
 * trafia tam prosto z poczty, często w przeglądarce wbudowanej w program
 * pocztowy. Dlatego cały wygląd, łącznie z przyciemnieniem tła i wyśrodkowaniem,
 * daje arkusz, a nie skrypt.
 */

.pp-wc {
    position: fixed;
    inset: 0;
    z-index: 2147483647 !important;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 20, 33, .55);
    box-sizing: border-box;
}

.pp-wc--open {
    display: flex;
    animation: ppWcFade .2s ease;
}

.pp-wc *,
.pp-wc *::before,
.pp-wc *::after {
    box-sizing: border-box;
}

.pp-wc__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px 28px 26px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(12, 20, 33, .3);
    animation: ppWcZoom .24s cubic-bezier(.16, 1, .3, 1);
    font-family: inherit;
    line-height: 1.5;
    color: #1f2937;
}

/* ── Ikony ───────────────────────────────────────────────────────────── */

.pp-wc__heart,
.pp-wc__mail {
    width: 54px;
    height: 54px;
    margin: 0 auto 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    line-height: 1;
}

.pp-wc__heart {
    background: #ffeef0;
    color: #ff4757;
}

.pp-wc__mail {
    background: #e6f4ef;
    color: #0f6b52;
}

/* ── Tekst ───────────────────────────────────────────────────────────── */

.pp-wc__title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -.01em;
    color: #16273f;
}

.pp-wc__count {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #0f6b52;
}

.pp-wc__lead {
    margin: 0 0 8px;
    font-size: 13.5px;
    color: #586a80;
}

.pp-wc__hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: #6b7280;
}

.pp-wc__error {
    margin: 0 0 12px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #fdecec;
    color: #b32d2e;
    font-size: 13px;
    font-weight: 600;
}

/* ── Formularz ───────────────────────────────────────────────────────── */

.pp-wc__form {
    margin-top: 16px;
    text-align: left;
}

.pp-wc__label {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #16273f;
}

.pp-wc__input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    font-family: inherit;
    border: 1.5px solid #d7dee8;
    border-radius: 9px;
    background: #fff;
    color: #1f2937;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.pp-wc__input:focus {
    outline: none;
    border-color: #12a37c;
    box-shadow: 0 0 0 3px rgba(18, 163, 124, .15);
}

/* Pułapka na roboty: poza ekranem, ale nie ukryta przez display,
   bo część automatów pomija pola ukryte tamtym sposobem. */
.pp-wc__trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none;
}

.pp-wc__consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 14px 0 4px;
    font-size: 11.5px;
    line-height: 1.45;
    color: #6b7280;
    cursor: pointer;
}

.pp-wc__consent input {
    margin: 2px 0 0;
    flex: 0 0 auto;
}

.pp-wc__btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 13px 20px;
    border: 0;
    border-radius: 9px;
    background: #12a37c;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: filter .15s ease, transform .12s ease;
}

.pp-wc__btn:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    color: #fff;
}

.pp-wc__btn:disabled {
    opacity: .6;
    cursor: default;
    transform: none;
}

.pp-wc__later {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    border: 0;
    background: none;
    color: #8a97a8;
    font-size: 13px;
    font-family: inherit;
    text-decoration: underline;
    cursor: pointer;
}

.pp-wc__later:hover {
    color: #586a80;
}

.pp-wc__msg {
    margin: 10px 0 0;
    font-size: 12.5px;
    text-align: center;
    min-height: 1em;
}

.pp-wc__msg--bad {
    color: #b32d2e;
    font-weight: 600;
}

.pp-wc__fine {
    margin: 14px 0 0;
    font-size: 11px;
    text-align: center;
}

.pp-wc__fine a {
    color: #8a97a8;
}

/* ── Zamknięcie ──────────────────────────────────────────────────────── */

/* Pole dotyku 40 px przy rysunku 18 px. Mniejszy cel na telefonie kończy się
   klikaniem w treść pod spodem zamiast w krzyżyk. */
.pp-wc__x {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    color: #98a2b3;
    cursor: pointer;
    border-radius: 8px;
}

.pp-wc__x svg {
    width: 18px;
    height: 18px;
}

.pp-wc__x:hover {
    color: #16273f;
    background: #f2f4f7;
}

.pp-wc__btn:focus-visible,
.pp-wc__later:focus-visible,
.pp-wc__x:focus-visible {
    outline: 2px solid #12a37c;
    outline-offset: 2px;
}

/* ── Telefon ─────────────────────────────────────────────────────────── */

@media (max-width: 480px) {
    .pp-wc {
        padding: 0;
        align-items: flex-end;
    }

    .pp-wc__box {
        max-width: none;
        border-radius: 18px 18px 0 0;
        padding: 26px 20px 22px;
        max-height: 92vh;
        animation: ppWcRise .26s cubic-bezier(.16, 1, .3, 1);
    }
}

/* ── Ruch ────────────────────────────────────────────────────────────── */

@keyframes ppWcFade {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes ppWcZoom {
    from { opacity: 0; transform: scale(.96); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes ppWcRise {
    from { transform: translateY(24px); }
    to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
    .pp-wc,
    .pp-wc__box {
        animation: none !important;
    }

    .pp-wc__btn:hover {
        transform: none;
    }
}
