/* AJIT Cart Recovery - front */

.ajitcr-bar {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 44px 10px 16px;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: 0 0 14px rgba(0, 0, 0, .18);
}

.ajitcr-bar--top { top: 0; }
.ajitcr-bar--bottom { bottom: 0; }

.ajitcr-bar__text { margin: 0; }
.ajitcr-bar__text p { margin: 0; }

.ajitcr-cta {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.ajitcr-cta:hover { opacity: .88; text-decoration: none; }

.ajitcr-close {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 20px;
    line-height: 28px;
    cursor: pointer;
    opacity: .75;
}
.ajitcr-close:hover { opacity: 1; }

.ajitcr-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(20, 24, 28, .55);
}
.ajitcr-popup-overlay.ajitcr-open { display: flex; }

.ajitcr-popup {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px 24px 24px;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
    font-size: 15px;
    line-height: 1.5;
}

/* Krzyzyk w okienku nalezy do gornego rogu. Reguła bazowa centruje go w pionie,
   co jest poprawne dla waskiego paska, ale w popupie ladowal na srodku tresci. */
.ajitcr-popup .ajitcr-close {
    top: 10px;
    right: 10px;
    transform: none;
}

.ajitcr-popup__text { padding-right: 26px; }
.ajitcr-popup__text p:last-child { margin-bottom: 0; }

/* --- kafelek z kodem rabatowym --- */
.ajitcr-coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 16px 0 4px;
    padding: 12px 14px;
    border: 1px dashed currentColor;
    border-radius: 8px;
    background: rgba(0, 0, 0, .04);
}
.ajitcr-coupon__code {
    flex: 1 1 auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .06em;
    word-break: break-all;
}
.ajitcr-coupon__copy {
    flex: 0 0 auto;
    border: 1px solid currentColor;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font-size: 13px;
    padding: 7px 14px;
    cursor: pointer;
}
.ajitcr-coupon__copy:hover { opacity: .8; }
.ajitcr-coupon__copy.is-done { background: #2e7d32; border-color: #2e7d32; color: #fff; }
.ajitcr-coupon__note {
    flex: 1 0 100%;
    font-size: 12px;
    opacity: .75;
    margin: 0;
}

.ajitcr-form { margin-top: 16px; }
.ajitcr-form input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(0, 0, 0, .18);
    border-radius: 4px;
    font-size: 15px;
    color: #222;
    background: #fff;
}
.ajitcr-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.4;
}
.ajitcr-consent input { margin-top: 3px; }

.ajitcr-form button { width: 100%; border: 0; cursor: pointer; font-size: 15px; }
.ajitcr-msg { margin-top: 10px; font-size: 13px; }
.ajitcr-msg--err { color: #c0392b; }

@media (max-width: 600px) {
    .ajitcr-bar { font-size: 14px; padding: 10px 40px 10px 12px; }
    .ajitcr-cta { padding: 7px 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .ajitcr-popup, .ajitcr-bar { transition: none !important; animation: none !important; }
}

/* prośba o zgodę na powiadomienia */
.ajitcr-push-prompt {
    position: fixed;
    z-index: 9997;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 360px;
    max-width: calc(100vw - 32px);
    box-sizing: border-box;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e0e4e8;
    border-radius: 10px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .18);
    font-size: 14px;
    line-height: 1.4;
    color: #222;
}
.ajitcr-push-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9996;
    background: rgba(0, 0, 0, .45);
    animation: ajitcr-fade .25s ease-out;
}
.ajitcr-pos-center { animation: ajitcr-fade .25s ease-out; }
@keyframes ajitcr-fade { from { opacity: 0; } to { opacity: 1; } }

/* podpowiedz na komputerze: w miejscu okienka, strzalka w gore, do pytania przegladarki */
.ajitcr-push-hint {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 9998;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
    pointer-events: none;
    animation: ajitcr-fade .25s ease-out;
}
.ajitcr-push-hint-text { max-width: 360px; }
.ajitcr-push-hint-arrow { display: block; animation: ajitcr-nudge 1s ease-in-out infinite; }
.ajitcr-push-hint-arrow svg { width: 64px; height: 64px; }
@keyframes ajitcr-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.ajitcr-push-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9998;
    padding: 12px 18px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .25);
    animation: ajitcr-fade .25s ease-out;
}
.ajitcr-pos-top-right { top: 16px; right: 16px; }
.ajitcr-pos-top-left { top: 16px; left: 16px; }
.ajitcr-pos-top-center { top: 16px; left: 50%; transform: translateX(-50%); }
.ajitcr-pos-center { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 400px; padding: 22px 24px; box-shadow: 0 16px 48px rgba(0, 0, 0, .28); }
.ajitcr-pos-bottom-right { bottom: 16px; right: 16px; }
.ajitcr-pos-bottom-left { bottom: 16px; left: 16px; }
.ajitcr-push-head { display: flex; align-items: center; gap: 14px; }
.ajitcr-push-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.ajitcr-push-text { margin: 0; font-size: 15px; line-height: 1.45; color: #222; }
.ajitcr-push-actions { display: flex; align-items: center; gap: 10px; }
.ajitcr-push-prompt button { border: 0; cursor: pointer; border-radius: 4px; font-size: 14px; line-height: 1.2; font-family: inherit; white-space: nowrap; margin: 0; letter-spacing: normal; text-transform: none; width: auto; min-width: 0; }
.ajitcr-push-yes { padding: 9px 16px; background: #111; color: #fff; font-weight: 600; white-space: nowrap; }
.ajitcr-push-yes:hover { background: #333; }
.ajitcr-push-no { padding: 9px 10px; background: transparent; color: #6b7178; }
.ajitcr-push-no:hover { color: #222; }

@media (max-width: 600px) {
    .ajitcr-push-prompt { left: 10px; right: 10px; width: auto; max-width: none; }
    .ajitcr-pos-top-right, .ajitcr-pos-top-left, .ajitcr-pos-top-center { top: 10px; transform: none; }
    .ajitcr-pos-center { top: 50%; transform: translateY(-50%); width: auto; }
    .ajitcr-pos-bottom-right, .ajitcr-pos-bottom-left { bottom: 10px; }
}
