/* Eko Sucharskiego Popup — frontend styles */

.esp-popup[hidden] { display: none; }

.esp-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.esp-popup .esp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    animation: esp-fade-overlay 320ms ease-out both;
}

.esp-popup .esp-card {
    position: relative;
    z-index: 1;
    background: #fff;
    color: #1a1a1a;
    width: 100%;
    max-width: 540px;
    padding: 36px 40px 32px;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    text-align: center;
    box-sizing: border-box;
    animation: esp-fade-up 480ms cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: 80ms;
}

@media (prefers-reduced-motion: reduce) {
    .esp-popup .esp-card,
    .esp-popup .esp-overlay { animation: none; }
}

@keyframes esp-fade-up {
    from { opacity: 0; transform: translateY(28px) scale(0.96); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes esp-fade-overlay {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.esp-popup .esp-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: 0;
    font-size: 26px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
}
.esp-popup .esp-close:hover,
.esp-popup .esp-close:focus { color: #1a1a1a; outline: 2px solid #73ac23; outline-offset: 2px; }

.esp-popup .esp-kicker {
    display: inline-block;
    background: #73ac23;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 12px;
    border-radius: 999px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.esp-popup .esp-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 18px;
    letter-spacing: -0.01em;
    color: #1a1a1a;
}

.esp-popup .esp-savings {
    background: #f7faf1;
    border: 1px solid #e3eed1;
    border-radius: 10px;
    padding: 14px 12px 12px;
    margin-bottom: 12px;
}
.esp-popup .esp-savings-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5f7a36;
    margin-bottom: 4px;
}
.esp-popup .esp-savings-amount {
    display: block;
    font-size: 36px;
    font-weight: 900;
    color: #73ac23;
    line-height: 1;
    margin-bottom: 6px;
}
.esp-popup .esp-savings-prices {
    display: block;
    font-size: 13px;
    color: #5f5f5f;
}
.esp-popup .esp-savings-prices b { color: #1a1a1a; }

.esp-popup .esp-bonus {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.esp-popup .esp-sub {
    margin: 0 0 10px;
    font-size: 12px;
    color: #5f5f5f;
}

.esp-popup .esp-countdown {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 0 0 18px;
}
.esp-popup .esp-countdown span {
    background: #1a1a1a;
    color: #fff;
    border-radius: 6px;
    padding: 10px 6px;
    min-width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.esp-popup .esp-countdown b {
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
}
.esp-popup .esp-countdown i {
    font-style: normal;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
    opacity: 0.8;
}

/* Grupa przyciskow CTA */
.esp-popup .esp-ctas {
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    margin-top: 4px;
}
.esp-popup .esp-ctas--two .esp-cta {
    flex: 1 1 200px;
    max-width: 240px;
}

.esp-popup .esp-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 14px 26px;
    min-height: 48px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    box-sizing: border-box;
    border: 2px solid transparent;
    transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease;
}
.esp-popup .esp-cta:active { transform: translateY(1px); }

/* Primary — solid zielony, mocny CTA */
.esp-popup .esp-cta--primary {
    background: #73ac23;
    color: #fff;
    border-color: #73ac23;
	text-transform: uppercase;
border-radius: 0 0 24px 0;
}
.esp-popup .esp-cta--primary:hover,
.esp-popup .esp-cta--primary:focus {
    background: #5f8e1c;
    border-color: #5f8e1c;
    color: #fff;
    outline: 2px solid #1a1a1a;
    outline-offset: 2px;
}

/* Secondary — outline, subtelny */
.esp-popup .esp-cta--secondary {
    background: transparent;
    color: #1a1a1a;
    border-color: #1a1a1a;
	
	text-transform: uppercase;
border-radius: 0 0 24px 0;
}
.esp-popup .esp-cta--secondary:hover,
.esp-popup .esp-cta--secondary:focus {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
    outline: 2px solid #73ac23;
    outline-offset: 2px;
}

/* Tablet/mobile < 540px */
@media (max-width: 540px) {
    .esp-popup .esp-card { padding: 28px 22px 24px; }
    .esp-popup .esp-title { font-size: 20px; }
    .esp-popup .esp-savings-amount { font-size: 30px; }
    .esp-popup .esp-countdown span { min-width: 52px; padding: 8px 4px; }
    .esp-popup .esp-countdown b { font-size: 18px; }
    .esp-popup .esp-cta { padding: 12px 22px; font-size: 13px; min-height: 44px; }

    /* Na mobile: przyciski stackowane, full-width */
    .esp-popup .esp-ctas { flex-direction: column; gap: 8px; }
    .esp-popup .esp-ctas .esp-cta,
    .esp-popup .esp-ctas--two .esp-cta { flex: 1 1 auto; max-width: 100%; width: 100%; }
}

/* Mobile < 380px */
@media (max-width: 380px) {
    .esp-popup .esp-card { padding: 24px 18px 20px; }
    .esp-popup .esp-title { font-size: 18px; }
    .esp-popup .esp-savings-amount { font-size: 26px; }
    .esp-popup .esp-countdown span { min-width: 44px; padding: 6px 2px; }
    .esp-popup .esp-countdown b { font-size: 16px; }
    .esp-popup .esp-cta { padding: 11px 18px; font-size: 13px; min-height: 44px; }
}

/* Body lock when popup open */
body.esp-locked { overflow: hidden; }
