.mp-loyalty-redeem {
    margin: 18px 0;
    padding: 16px;
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    background: #fafafa;
    line-height: 1.45;
}
.mp-loyalty-redeem strong { font-size: 15px; }
.mp-loyalty-form { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.mp-loyalty-form input[type="number"] { width: 120px; min-height: 40px; }
.mp-loyalty-form .button { min-height: 40px; border-color: #e31e24 !important; background: #e31e24 !important; color: #fff !important; }
.mp-loyalty-form .mp-loyalty-secondary { background: #fff !important; color: #e31e24 !important; }
.mp-loyalty-active { margin-top: 8px; font-weight: 600; }
.mp-loyalty-balance-card { padding: 20px; margin: 0 0 24px; border: 1px solid #e5e5e5; border-left: 4px solid #e31e24; border-radius: 5px; background: #fafafa; }
.mp-loyalty-balance-card span, .mp-loyalty-balance-card small { display: block; }
.mp-loyalty-balance-card strong { display: block; margin: 4px 0; font-size: 28px; }
.mp-loyalty-history .is-plus { color: #198754; font-weight: 700; }
.mp-loyalty-history .is-minus { color: #c62828; font-weight: 700; }
@media (max-width: 700px) {
    .mp-loyalty-form { align-items: stretch; flex-direction: column; }
    .mp-loyalty-form input[type="number"], .mp-loyalty-form .button { width: 100%; }
}


/* 0.1.3 – stabilny widok historii punktów.
 * Nie używamy klas shop_table/shop_table_responsive motywu, ponieważ część
 * motywów WooCommerce modyfikuje je dynamicznie podczas przewijania. */
.mp-loyalty-account {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.mp-loyalty-history-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}
.mp-loyalty-history {
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    background: #fff;
}
.mp-loyalty-history th,
.mp-loyalty-history td {
    padding: 12px 10px;
    border-bottom: 1px solid #e7e7e7;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}
.mp-loyalty-history th:nth-child(1),
.mp-loyalty-history td:nth-child(1) { width: 24%; }
.mp-loyalty-history th:nth-child(2),
.mp-loyalty-history td:nth-child(2) { width: 46%; }
.mp-loyalty-history th:nth-child(3),
.mp-loyalty-history td:nth-child(3),
.mp-loyalty-history th:nth-child(4),
.mp-loyalty-history td:nth-child(4) { width: 15%; }
@media (max-width: 700px) {
    .mp-loyalty-history { min-width: 620px; }
}


/* 0.1.4 – informacja o punktach, które klient zdobędzie za bieżące zamówienie. */
.mp-loyalty-earn-estimate {
    margin-top: 12px;
    padding: 11px 13px;
    border-left: 3px solid #e31e24;
    background: #fff;
}
.mp-loyalty-earn-estimate strong,
.mp-loyalty-earn-estimate small {
    display: block;
}
.mp-loyalty-earn-estimate strong {
    font-size: 15px;
    line-height: 1.35;
}
.mp-loyalty-earn-estimate small {
    margin-top: 3px;
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}


/* 0.1.5 – jasny powód blokady wykorzystania punktów. */
.mp-loyalty-block-reason {
    margin-top: 12px;
    padding: 11px 13px;
    border-left: 3px solid #d89b00;
    background: #fffaf0;
    color: #4b4b4b;
}
.mp-loyalty-block-reason strong,
.mp-loyalty-block-reason span {
    display: block;
}
.mp-loyalty-block-reason strong {
    margin-bottom: 3px;
    font-size: 13px;
}
.mp-loyalty-block-reason span {
    font-size: 13px;
    line-height: 1.45;
}


/* 0.1.6 – bardziej sprzedażowy, ale spokojny wizualnie box programu. */
.mp-loyalty-redeem {
    position: relative;
    overflow: hidden;
    padding: 0;
    border: 1px solid #e6e6e6;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.035);
}
.mp-loyalty-redeem::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #e31e24;
}
.mp-loyalty-benefit {
    padding: 16px 18px 14px 20px;
    background: #fff8f8;
    border-bottom: 1px solid #f0dddd;
}
.mp-loyalty-benefit-kicker {
    display: inline-block;
    margin-bottom: 5px;
    color: #e31e24;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .9px;
}
.mp-loyalty-benefit-title {
    display: block;
    margin: 0;
    color: #222;
    font-size: 18px !important;
    font-weight: 800;
    line-height: 1.28;
}
.mp-loyalty-benefit-value {
    display: block;
    margin-top: 5px;
    color: #333;
    font-size: 13.5px;
    line-height: 1.45;
}
.mp-loyalty-benefit-value strong {
    color: #e31e24;
    font-size: inherit;
}
.mp-loyalty-benefit small {
    display: block;
    margin-top: 5px;
    color: #777;
    font-size: 11.5px;
    line-height: 1.4;
}
.mp-loyalty-wallet {
    display: grid;
    grid-template-columns: minmax(110px, auto) 1fr;
    gap: 12px 18px;
    align-items: center;
    padding: 14px 18px 14px 20px;
}
.mp-loyalty-wallet-main span,
.mp-loyalty-wallet-main strong {
    display: block;
}
.mp-loyalty-wallet-main span {
    color: #666;
    font-size: 12px;
    line-height: 1.2;
}
.mp-loyalty-wallet-main strong {
    margin-top: 2px;
    color: #222;
    font-size: 18px !important;
    font-weight: 800;
    line-height: 1.2;
}
.mp-loyalty-wallet-limit {
    color: #555;
    font-size: 12.5px;
    line-height: 1.45;
}
.mp-loyalty-wallet-limit strong {
    color: #222;
    font-size: inherit;
}
.mp-loyalty-redeem > .mp-loyalty-active,
.mp-loyalty-redeem > .mp-loyalty-form,
.mp-loyalty-redeem > .mp-loyalty-block-reason,
.mp-loyalty-redeem > small {
    margin-left: 20px;
    margin-right: 18px;
}
.mp-loyalty-redeem > .mp-loyalty-active {
    margin-top: 0;
    padding: 10px 12px;
    border-radius: 4px;
    background: #f6f6f6;
}
.mp-loyalty-redeem > .mp-loyalty-form {
    margin-top: 0;
    margin-bottom: 16px;
    padding-top: 2px;
}
.mp-loyalty-redeem > .mp-loyalty-block-reason {
    margin-top: 0;
    margin-bottom: 16px;
}
.mp-loyalty-redeem > small {
    display: block;
    margin-top: 0;
    margin-bottom: 16px;
    color: #666;
    line-height: 1.45;
}
@media (max-width: 700px) {
    .mp-loyalty-benefit {
        padding: 15px 15px 13px 18px;
    }
    .mp-loyalty-benefit-title {
        font-size: 16px !important;
    }
    .mp-loyalty-wallet {
        grid-template-columns: 1fr;
        gap: 7px;
        padding: 13px 15px 13px 18px;
    }
    .mp-loyalty-redeem > .mp-loyalty-active,
    .mp-loyalty-redeem > .mp-loyalty-form,
    .mp-loyalty-redeem > .mp-loyalty-block-reason,
    .mp-loyalty-redeem > small {
        margin-left: 18px;
        margin-right: 15px;
    }
}


/* 0.1.7 – dodatkowe sposoby zdobywania punktów: newsletter i Program Wsparcia. */
.mp-loyalty-opportunities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0 18px 16px 20px;
}
.mp-loyalty-account .mp-loyalty-opportunities {
    margin: 0 0 24px;
}
.mp-loyalty-opportunity {
    min-width: 0;
    padding: 13px 14px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
}
.mp-loyalty-opportunity-newsletter {
    border-color: #efd7d7;
    background: #fff9f9;
}
.mp-loyalty-opportunity-support {
    background: #fafafa;
}
.mp-loyalty-opportunity-kicker {
    display: block;
    margin-bottom: 4px;
    color: #e31e24;
    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .8px;
}
.mp-loyalty-opportunity > strong {
    display: block;
    color: #222;
    font-size: 13.5px !important;
    font-weight: 800;
    line-height: 1.35;
}
.mp-loyalty-opportunity > span:not(.mp-loyalty-opportunity-kicker) {
    display: block;
    margin-top: 5px;
    color: #5b5b5b;
    font-size: 11.5px;
    line-height: 1.45;
}
.mp-loyalty-opportunity > span strong {
    color: #e31e24;
    font-size: inherit;
}
.mp-loyalty-opportunity-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    margin-top: 10px;
    padding: 0 11px;
    border: 1px solid #e31e24;
    border-radius: 4px;
    background: #fff;
    color: #e31e24 !important;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    box-shadow: none;
}
.mp-loyalty-opportunity-button:hover,
.mp-loyalty-opportunity-button:focus {
    background: #e31e24;
    color: #fff !important;
}
@media (max-width: 700px) {
    .mp-loyalty-opportunities {
        grid-template-columns: 1fr;
        margin-left: 18px;
        margin-right: 15px;
    }
    .mp-loyalty-account .mp-loyalty-opportunities {
        margin-left: 0;
        margin-right: 0;
    }
}


/* 0.1.9 – newsletter i Program Wsparcia tylko w panelu klienta / wysuwanym panelu. */
.mp-loyalty-drawer-toggle {
    position: fixed;
    z-index: 99991;
    left: 0;
    top: 52%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    min-height: 112px;
    padding: 10px 6px;
    border: 0;
    border-radius: 0 8px 8px 0;
    background: #e31e24;
    color: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.16);
    cursor: pointer;
    transform: translateY(-50%);
    transition: left .22s ease, background .18s ease;
}
.mp-loyalty-drawer-toggle:hover,
.mp-loyalty-drawer-toggle:focus {
    background: #c9191f;
    color: #fff;
    outline: none;
}
.mp-loyalty-drawer-toggle-label {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .9px;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}
.mp-loyalty-drawer-toggle strong {
    display: block;
    font-size: 13px;
    line-height: 1;
}
.mp-loyalty-drawer-toggle.is-open {
    left: min(360px, calc(100vw - 48px));
}
.mp-loyalty-drawer {
    position: fixed;
    z-index: 99992;
    top: 0;
    left: 0;
    width: min(360px, calc(100vw - 48px));
    height: 100dvh;
    padding: 0;
    overflow-y: auto;
    background: #fff;
    box-shadow: 12px 0 34px rgba(0,0,0,.14);
    transform: translateX(-102%);
    transition: transform .22s ease;
    box-sizing: border-box;
}
.mp-loyalty-drawer.is-open { transform: translateX(0); }
.mp-loyalty-drawer-overlay {
    position: fixed;
    z-index: 99990;
    inset: 0;
    background: rgba(0,0,0,.24);
    opacity: 0;
    transition: opacity .22s ease;
}
.mp-loyalty-drawer-overlay.is-open { opacity: 1; }
.mp-loyalty-drawer-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 22px 18px;
    border-bottom: 1px solid #eee;
    background: #fff8f8;
}
.mp-loyalty-drawer-head span {
    display: block;
    margin-bottom: 4px;
    color: #e31e24;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}
.mp-loyalty-drawer-head h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 22px !important;
    line-height: 1.2;
}
.mp-loyalty-drawer-head h3::after { display: none !important; }
.mp-loyalty-drawer-close {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #444;
    font-size: 24px;
    line-height: 30px;
    cursor: pointer;
}
.mp-loyalty-drawer-balance {
    padding: 20px 22px 18px;
    border-bottom: 1px solid #eee;
}
.mp-loyalty-drawer-balance > strong {
    display: block;
    color: #222;
    font-size: 30px !important;
    line-height: 1.1;
}
.mp-loyalty-drawer-balance > span,
.mp-loyalty-drawer-balance > small {
    display: block;
    margin-top: 6px;
    color: #555;
    font-size: 13px;
    line-height: 1.4;
}
.mp-loyalty-drawer-balance > span strong { color: #e31e24; font-size: inherit; }
.mp-loyalty-drawer .mp-loyalty-opportunities {
    display: block;
    margin: 0;
    padding: 16px 22px 6px;
}
.mp-loyalty-drawer .mp-loyalty-opportunity {
    margin: 0 0 12px;
    padding: 15px;
}
.mp-loyalty-drawer .mp-loyalty-opportunity > strong { font-size: 14px !important; }
.mp-loyalty-drawer .mp-loyalty-opportunity > span:not(.mp-loyalty-opportunity-kicker) {
    font-size: 12px;
}
.mp-loyalty-drawer-account {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin: 8px 22px 24px;
    padding: 0 14px;
    border: 1px solid #e31e24;
    border-radius: 5px;
    background: #e31e24;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
}
.mp-loyalty-drawer-account:hover,
.mp-loyalty-drawer-account:focus {
    background: #c9191f;
    color: #fff !important;
}
@media (max-width: 700px) {
    .mp-loyalty-drawer-toggle {
        top: auto;
        bottom: 84px;
        min-height: 94px;
        transform: none;
    }
    .mp-loyalty-drawer-toggle.is-open {
        left: calc(min(360px, calc(100vw - 48px)));
    }
    .mp-loyalty-drawer-head { padding: 18px 18px 15px; }
    .mp-loyalty-drawer-balance { padding: 18px; }
    .mp-loyalty-drawer .mp-loyalty-opportunities { padding: 14px 18px 4px; }
    .mp-loyalty-drawer-account { margin-left: 18px; margin-right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
    .mp-loyalty-drawer,
    .mp-loyalty-drawer-toggle,
    .mp-loyalty-drawer-overlay { transition: none; }
}


/* 0.1.10 – formularz GetResponse bezpośrednio w panelu punktów. */
.mp-loyalty-newsletter-embed {
    width: 100%;
    max-width: 100%;
    margin-top: 12px;
    overflow: hidden;
    box-sizing: border-box;
}
.mp-loyalty-newsletter-embed iframe,
.mp-loyalty-newsletter-embed form,
.mp-loyalty-newsletter-embed > div {
    max-width: 100% !important;
    box-sizing: border-box;
}
.mp-loyalty-newsletter-embed iframe {
    width: 100% !important;
    border: 0;
}
.mp-loyalty-newsletter-embed input[type="email"],
.mp-loyalty-newsletter-embed input[type="text"] {
    max-width: 100%;
}
.mp-loyalty-drawer .mp-loyalty-newsletter-embed {
    margin-top: 14px;
}

/* 0.1.12 – poprawna odmiana liczby punktów także na bocznym uchwycie. */
.mp-loyalty-drawer-toggle-noun {
    display: block;
    margin-top: 3px;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.05;
    text-transform: lowercase;
    letter-spacing: 0;
}


/* 0.1.13 – boczny uchwyt pokazuje saldo jako jeden tekst, np. „0 punktów” / „2 punkty”.
   Celowo nie dzielimy liczby i rzeczownika na osobne elementy, aby motyw sklepu nie mógł
   ukryć końcówki przez własne style dla <small>. */
.mp-loyalty-drawer-toggle .mp-loyalty-drawer-toggle-balance {
    display: block !important;
    width: 42px !important;
    max-width: 42px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-align: center !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}
.mp-loyalty-drawer-toggle-noun {
    display: none !important;
}


/* 0.1.14 – uchwyt boczny: jedno, niepodzielone saldo. Bez osobnego napisu „PUNKTY”. */
.mp-loyalty-drawer-toggle {
    width: 52px !important;
    min-height: 118px !important;
    padding: 10px 5px !important;
}
.mp-loyalty-drawer-toggle .mp-loyalty-drawer-toggle-label,
.mp-loyalty-drawer-toggle .mp-loyalty-drawer-toggle-balance,
.mp-loyalty-drawer-toggle .mp-loyalty-drawer-toggle-noun {
    display: none !important;
}
.mp-loyalty-drawer-toggle .mp-loyalty-drawer-toggle-text {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: .2px !important;
    text-transform: none !important;
    white-space: nowrap !important;
    writing-mode: vertical-rl !important;
    text-orientation: mixed !important;
    transform: rotate(180deg) !important;
}
@media (max-width: 700px) {
    .mp-loyalty-drawer-toggle {
        width: 52px !important;
        min-height: 106px !important;
    }
}

/* 0.1.18 – newsletter: czytelny przycisk + rozwijany formularz GetResponse. */
.mp-loyalty-newsletter-toggle {
    width: 100%;
    margin-top: 11px;
    cursor: pointer;
}
.mp-loyalty-newsletter-toggle::after {
    content: " ↓";
    font-size: 11px;
}
.mp-loyalty-newsletter-toggle[aria-expanded="true"]::after {
    content: " ↑";
}
.mp-loyalty-newsletter-embed[hidden] {
    display: none !important;
}
.mp-loyalty-newsletter-embed.is-open {
    display: block;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #efd7d7;
    overflow: visible;
}
.mp-loyalty-newsletter-embed getresponse-form {
    display: block;
    width: 100%;
    max-width: 100%;
}
.mp-loyalty-drawer .mp-loyalty-newsletter-toggle {
    min-height: 38px;
    font-size: 12px;
}


/* 0.1.22 – formularz GetResponse w osobnym szerokim modalu bez przenoszenia elementu w DOM.
   Nie wciskamy zewnętrznego formularza w wąski drawer, bo jego własny
   responsywny układ potrafi wtedy łamać tekst i zwężać przyciski. */
.mp-loyalty-newsletter-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000100;
    background: rgba(0,0,0,.48);
    opacity: 0;
    transition: opacity .18s ease;
}
.mp-loyalty-newsletter-modal-overlay[hidden] {
    display: none !important;
}
.mp-loyalty-newsletter-modal-overlay.is-open {
    opacity: 1;
}
.mp-loyalty-newsletter-embed.is-modal-open {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    z-index: 1000101 !important;
    width: min(760px, calc(100vw - 40px)) !important;
    max-width: 760px !important;
    max-height: 90vh !important;
    margin: 0 !important;
    padding: 28px 24px 22px !important;
    overflow: auto !important;
    transform: translate(-50%, -50%) !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 24px 70px rgba(0,0,0,.28) !important;
    box-sizing: border-box !important;
}
.mp-loyalty-newsletter-embed.is-modal-open getresponse-form {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}
.mp-loyalty-newsletter-modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 3;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px !important;
    height: 38px !important;
    margin: -14px -10px 8px 8px !important;
    padding: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
}
html.mp-loyalty-newsletter-open,
html.mp-loyalty-newsletter-open body {
    overflow: hidden !important;
}
@media (max-width: 700px) {
    .mp-loyalty-newsletter-embed.is-modal-open {
        width: calc(100vw - 20px) !important;
        max-height: 94vh !important;
        padding: 20px 12px 16px !important;
    }
}

/* 0.1.23 – jeden globalny modal GetResponse poza drawerem.
   Dzięki temu formularz nie znajduje się w stacking context tworzonym przez
   transformację bocznego panelu i nie może zostać przykryty przez overlay. */
.mp-loyalty-newsletter-global-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 1000200 !important;
    background: rgba(0,0,0,.52) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transition: opacity .18s ease, visibility .18s ease !important;
}
.mp-loyalty-newsletter-global-overlay.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.mp-loyalty-newsletter-global-modal {
    position: fixed !important;
    left: 50% !important;
    top: 50% !important;
    z-index: 1000201 !important;
    width: min(780px, calc(100vw - 40px)) !important;
    max-width: 780px !important;
    max-height: 92vh !important;
    margin: 0 !important;
    padding: 22px !important;
    overflow: auto !important;
    transform: translate(-50%, -48%) scale(.985) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    border: 1px solid #e3e3e3 !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: 0 24px 80px rgba(0,0,0,.30) !important;
    box-sizing: border-box !important;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
}
.mp-loyalty-newsletter-global-modal.is-open {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.mp-loyalty-newsletter-global-close {
    position: sticky !important;
    top: 0 !important;
    float: right !important;
    z-index: 5 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: -10px -10px 8px 12px !important;
    padding: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
}
.mp-loyalty-newsletter-global-head {
    margin: 0 48px 14px 0 !important;
    color: #222 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
}
.mp-loyalty-newsletter-global-form,
.mp-loyalty-newsletter-global-form getresponse-form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}
html.mp-loyalty-newsletter-open,
html.mp-loyalty-newsletter-open body {
    overflow: hidden !important;
}
@media (max-width: 700px) {
    .mp-loyalty-newsletter-global-modal {
        width: calc(100vw - 18px) !important;
        max-height: 94vh !important;
        padding: 14px 10px 16px !important;
    }
    .mp-loyalty-newsletter-global-head {
        margin-right: 42px !important;
        font-size: 14px !important;
    }
}


/* 0.1.27 – test newslettera bez tworzenia kolejnych kont administratora. */
.mp-loyalty-opportunity-newsletter.is-test {
    border-color: #e4c56f;
    background: #fffaf0;
}
.mp-loyalty-opportunity-newsletter.is-test .mp-loyalty-opportunity-kicker {
    color: #8a6200;
}
.mp-loyalty-newsletter-test-note {
    margin: 8px 0 0;
    padding: 9px 11px;
    border-left: 3px solid #dba617;
    background: #fff8e8;
    color: #4b4b4b;
    font-size: 13px;
    line-height: 1.45;
}


/* 0.1.29 – niezależny od JS fallback dla przycisku newslettera. */
.mp-loyalty-newsletter-toggle {
    position: relative !important;
    z-index: 2 !important;
    pointer-events: auto !important;
    text-decoration: none !important;
}
#mp-loyalty-newsletter-modal:target {
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
#mp-loyalty-newsletter-modal:target + .mp-loyalty-newsletter-global-overlay {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}


/* 0.1.30 – Moje konto -> Punkty: otwieranie formularza bez zależności od JS. */
.mp-loyalty-newsletter-account-open-form {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}
.mp-loyalty-newsletter-account-open {
    width: 100% !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}


/* 0.1.31 – Moje konto -> Punkty: formularz newslettera bezpośrednio w treści. */
.mp-loyalty-opportunities-account .mp-loyalty-opportunity-newsletter {
    grid-column: 1 / -1;
}
.mp-loyalty-newsletter-account-inline {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 14px !important;
    padding-top: 14px !important;
    border-top: 1px solid #ead8d8 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}
.mp-loyalty-newsletter-account-inline-title {
    margin: 0 0 10px !important;
    color: #222 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}
.mp-loyalty-newsletter-account-inline getresponse-form {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* =========================================================
   0.1.32 – stabilny formularz newslettera w natywnym <dialog>
   =========================================================
   Formularz GetResponse NIE istnieje w DOM przed kliknięciem.
   To usuwa konflikt z niewidzialnymi warstwami zewnętrznego widgetu.
*/
.mp-loyalty-opportunities-account .mp-loyalty-opportunity-newsletter {
    grid-column: auto !important;
}
.mp-loyalty-newsletter-account-inline,
.mp-loyalty-newsletter-account-inline-title {
    display: none !important;
}
button.mp-loyalty-newsletter-toggle {
    position: relative !important;
    z-index: 5 !important;
    display: inline-flex !important;
    width: 100% !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}
.mp-loyalty-newsletter-dialog {
    width: min(780px, calc(100vw - 40px)) !important;
    max-width: 780px !important;
    max-height: 92vh !important;
    margin: auto !important;
    padding: 0 !important;
    overflow: auto !important;
    border: 1px solid #e2e2e2 !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 24px 80px rgba(0,0,0,.30) !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
}
.mp-loyalty-newsletter-dialog:not([open]) {
    display: none !important;
}
.mp-loyalty-newsletter-dialog::backdrop {
    background: rgba(0,0,0,.52) !important;
}
.mp-loyalty-newsletter-dialog-inner {
    position: relative !important;
    z-index: 1 !important;
    padding: 22px !important;
    background: #fff !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}
.mp-loyalty-newsletter-dialog-close {
    position: sticky !important;
    top: 0 !important;
    float: right !important;
    z-index: 50 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    margin: -8px -8px 8px 12px !important;
    padding: 0 !important;
    border: 1px solid #ddd !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #333 !important;
    font-size: 28px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
}
.mp-loyalty-newsletter-dialog-head {
    margin: 0 46px 14px 0 !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
}
.mp-loyalty-newsletter-dialog-head > strong {
    display: block !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
}
.mp-loyalty-newsletter-dialog-form {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    min-height: 120px !important;
    pointer-events: auto !important;
}
.mp-loyalty-newsletter-dialog-form getresponse-form {
    position: relative !important;
    z-index: 2 !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    pointer-events: auto !important;
    box-sizing: border-box !important;
}
html.mp-loyalty-newsletter-open,
html.mp-loyalty-newsletter-open body {
    overflow: hidden !important;
}
@media (max-width: 700px) {
    .mp-loyalty-newsletter-dialog {
        width: calc(100vw - 18px) !important;
        max-height: 94vh !important;
    }
    .mp-loyalty-newsletter-dialog-inner {
        padding: 14px 10px 16px !important;
    }
    .mp-loyalty-newsletter-dialog-head {
        margin-right: 42px !important;
        font-size: 13px !important;
    }
}


/* 0.1.38 – serwerowa weryfikacja statusu newslettera przez GetResponse API. */
.mp-loyalty-newsletter-status {
    display: block;
    margin-top: 9px;
    font-size: 12.5px;
    line-height: 1.45;
    color: #555;
}
.mp-loyalty-newsletter-status:empty { display: none; }
.mp-loyalty-newsletter-status.is-error { color: #b42318; }
.mp-loyalty-newsletter-status.is-success { color: #18794e; font-weight: 600; }
.mp-loyalty-newsletter-toggle[disabled] {
    opacity: .65;
    cursor: wait;
}
.mp-loyalty-newsletter-api-notice {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-left: 3px solid #e31e24;
    background: #fff7f7;
    color: #444;
    font-size: 13px;
    line-height: 1.45;
}


/* 0.1.39 – po potwierdzeniu istniejącego zapisu nie zamykamy panelu ani nie przeładowujemy strony. */
.mp-loyalty-opportunity-newsletter.is-complete {
    border-color: #b9dfc8 !important;
    background: #f4fbf6 !important;
}
.mp-loyalty-opportunity-newsletter.is-complete .mp-loyalty-opportunity-kicker {
    color: #18794e !important;
}
.mp-loyalty-opportunity-newsletter.is-complete > strong {
    color: #155f3c !important;
    font-size: 15px !important;
}
.mp-loyalty-opportunity-newsletter.is-complete .mp-loyalty-newsletter-success-copy {
    color: #315b43 !important;
    font-weight: 600 !important;
}
.mp-loyalty-opportunity-newsletter.is-complete .mp-loyalty-newsletter-success-hint {
    margin-top: 8px !important;
    color: #6b756f !important;
    font-size: 10.5px !important;
}

/* =========================================================
   0.2.x – poziomy, oczekujące punkty i ważność
   ========================================================= */
.mp-loyalty-account-summary{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:14px;
    margin:0 0 18px;
}
.mp-loyalty-tier-card small{display:block;margin-top:7px;line-height:1.45;}
.mp-loyalty-pending-card,
.mp-loyalty-expiry-card{
    margin:14px 0;
    padding:16px 18px;
    border:1px solid #e5e5e5;
    border-radius:6px;
    background:#fafafa;
}
.mp-loyalty-pending-card{border-left:4px solid #e6a700;background:#fffaf0;}
.mp-loyalty-expiry-card{border-left:4px solid #e31e24;}
.mp-loyalty-pending-card ul,
.mp-loyalty-expiry-card ul{margin:8px 0 0 18px;padding:0;}
.mp-loyalty-pending-card li,
.mp-loyalty-expiry-card li{margin:4px 0;line-height:1.45;}
.mp-loyalty-drawer-pending,
.mp-loyalty-drawer-expiry{display:block!important;margin-top:6px!important;line-height:1.35!important;}
@media (max-width:700px){
    .mp-loyalty-account-summary{grid-template-columns:1fr;}
}

/* =========================================================
   0.2.11 – uporządkowany panel klienta, zasady i widok gościa
   ========================================================= */
.mp-loyalty-money-nowrap,
.mp-loyalty-money-nowrap .woocommerce-Price-amount,
.mp-loyalty-money-nowrap .woocommerce-Price-currencySymbol {
    white-space: nowrap !important;
}

.mp-loyalty-tier-card {
    min-width: 0;
}
.mp-loyalty-tier-card .mp-loyalty-tier-benefit {
    margin-top: 8px;
    color: #444;
}
.mp-loyalty-tier-spend {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 5px 8px;
    margin-top: 13px;
    color: #444;
    font-size: 13px;
    line-height: 1.4;
}
.mp-loyalty-tier-spend > span {
    display: inline !important;
}
.mp-loyalty-tier-spend > strong {
    display: inline !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
}
.mp-loyalty-tier-next {
    display: block !important;
    margin-top: 8px !important;
    color: #555;
    line-height: 1.45 !important;
}
.mp-loyalty-account-actions {
    display: flex;
    justify-content: flex-end;
    margin: -4px 0 16px;
}
.mp-loyalty-account-actions .mp-loyalty-rules-toggle {
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid #e31e24 !important;
    background: #fff !important;
    color: #e31e24 !important;
    font-weight: 700;
}
.mp-loyalty-account-actions .mp-loyalty-rules-toggle:hover {
    background: #fff6f6 !important;
}

/* Uchwyt i panel dla gościa. */
.mp-loyalty-drawer-toggle-guest {
    min-height: 190px !important;
}
.mp-loyalty-drawer-toggle-guest .mp-loyalty-drawer-toggle-text {
    font-size: 9.5px !important;
    letter-spacing: .45px !important;
}
.mp-loyalty-guest-intro {
    padding: 20px 22px 8px;
    color: #444;
}
.mp-loyalty-guest-intro > strong {
    display: block;
    color: #222;
    font-size: 18px;
    line-height: 1.3;
}
.mp-loyalty-guest-intro > p {
    margin: 8px 0 14px;
    line-height: 1.55;
}
.mp-loyalty-guest-intro ul {
    margin: 15px 0 0 18px;
    padding: 0;
}
.mp-loyalty-guest-intro li {
    margin: 6px 0;
    line-height: 1.4;
}
.mp-loyalty-guest-estimate {
    margin: 14px 0;
    padding: 14px;
    border-left: 4px solid #e31e24;
    border-radius: 5px;
    background: #fff8f8;
}
.mp-loyalty-guest-estimate span,
.mp-loyalty-guest-estimate strong,
.mp-loyalty-guest-estimate small {
    display: block;
}
.mp-loyalty-guest-estimate strong {
    margin: 3px 0;
    color: #222;
    font-size: 24px;
    line-height: 1.15;
}
.mp-loyalty-guest-estimate small {
    color: #555;
}
.mp-loyalty-guest-actions {
    display: grid;
    gap: 9px;
    padding: 12px 22px 24px;
}
.mp-loyalty-guest-actions a,
.mp-loyalty-guest-actions button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    box-sizing: border-box;
}
.mp-loyalty-guest-primary {
    border: 1px solid #e31e24 !important;
    background: #e31e24 !important;
    color: #fff !important;
}
.mp-loyalty-guest-primary:hover,
.mp-loyalty-guest-primary:focus {
    background: #c9191f !important;
    color: #fff !important;
}
.mp-loyalty-guest-secondary,
.mp-loyalty-drawer-rules {
    border: 1px solid #e31e24 !important;
    background: #fff !important;
    color: #e31e24 !important;
}
.mp-loyalty-drawer-rules {
    width: calc(100% - 44px);
    min-height: 40px;
    margin: 6px 22px 0;
    padding: 0 12px;
    border-radius: 5px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.mp-loyalty-guest-actions .mp-loyalty-drawer-rules {
    width: 100%;
    margin: 0;
}

/* Zachęta dla gościa w koszyku / checkout. */
.mp-loyalty-guest-cart-promo .mp-loyalty-benefit {
    border-bottom: 0;
}
.mp-loyalty-guest-cart-actions {
    padding: 14px 18px 16px 20px;
    border-top: 1px solid #f0dddd;
}
.mp-loyalty-guest-cart-actions > strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-size: 13px !important;
    line-height: 1.45;
}
.mp-loyalty-guest-cart-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mp-loyalty-guest-cart-buttons .button {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 13px !important;
    border-radius: 4px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}
.mp-loyalty-guest-cart-buttons .mp-loyalty-rules-toggle {
    border: 1px solid #d7d7d7 !important;
    background: #fff !important;
    color: #555 !important;
}

/* Modal zasad programu. */
.mp-loyalty-rules-dialog {
    width: min(920px, calc(100vw - 36px)) !important;
    max-width: 920px !important;
    max-height: 92vh !important;
    margin: auto !important;
    padding: 0 !important;
    overflow: auto !important;
    border: 1px solid #ddd !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #222 !important;
    box-shadow: 0 24px 80px rgba(0,0,0,.30) !important;
    box-sizing: border-box !important;
}
.mp-loyalty-rules-dialog:not([open]) {
    display: none !important;
}
.mp-loyalty-rules-dialog::backdrop {
    background: rgba(0,0,0,.52) !important;
}
.mp-loyalty-rules-inner {
    position: relative;
    padding: 26px;
    box-sizing: border-box;
}
.mp-loyalty-rules-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: -10px -10px 8px 14px;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #333;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}
.mp-loyalty-rules-head {
    margin: 0 46px 20px 0;
}
.mp-loyalty-rules-head > span {
    display: block;
    margin-bottom: 5px;
    color: #e31e24;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}
.mp-loyalty-rules-head h3 {
    margin: 0 0 8px !important;
    padding: 0 !important;
    font-size: 26px !important;
    line-height: 1.2;
}
.mp-loyalty-rules-head h3::after {
    display: none !important;
}
.mp-loyalty-rules-head p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}
.mp-loyalty-rules-highlight {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 10px;
    margin: 0 0 24px;
}
.mp-loyalty-rules-highlight > div {
    padding: 14px;
    border: 1px solid #eadede;
    border-radius: 6px;
    background: #fff8f8;
}
.mp-loyalty-rules-highlight span,
.mp-loyalty-rules-highlight strong {
    display: block;
}
.mp-loyalty-rules-highlight span {
    color: #777;
    font-size: 11px;
}
.mp-loyalty-rules-highlight strong {
    margin-top: 3px;
    color: #222;
    font-size: 17px;
}
.mp-loyalty-rules-inner h4 {
    margin: 22px 0 8px;
    font-size: 18px;
}
.mp-loyalty-rules-table-wrap {
    width: 100%;
    overflow-x: auto;
}
.mp-loyalty-rules-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: #fff;
}
.mp-loyalty-rules-table th,
.mp-loyalty-rules-table td {
    padding: 11px 10px;
    border-bottom: 1px solid #e7e7e7;
    text-align: left;
    vertical-align: top;
}
.mp-loyalty-rules-table th {
    background: #fafafa;
    font-size: 12px;
}
.mp-loyalty-rules-list {
    margin: 10px 0 0 20px;
    padding: 0;
}
.mp-loyalty-rules-list li {
    margin: 8px 0;
    line-height: 1.5;
}
html.mp-loyalty-rules-open,
html.mp-loyalty-rules-open body {
    overflow: hidden !important;
}

@media (max-width: 700px) {
    .mp-loyalty-drawer-toggle-guest {
        min-height: 168px !important;
    }
    .mp-loyalty-account-actions {
        justify-content: stretch;
    }
    .mp-loyalty-account-actions .mp-loyalty-rules-toggle {
        width: 100%;
    }
    .mp-loyalty-guest-cart-buttons {
        flex-direction: column;
    }
    .mp-loyalty-guest-cart-buttons .button {
        width: 100%;
    }
    .mp-loyalty-rules-inner {
        padding: 16px 12px 20px;
    }
    .mp-loyalty-rules-head {
        margin-right: 42px;
    }
    .mp-loyalty-rules-head h3 {
        font-size: 21px !important;
    }
    .mp-loyalty-rules-highlight {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   0.2.12 – postęp do kolejnego poziomu w panelu klienta
   ========================================================= */
.mp-loyalty-tier-current {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 7px;
    margin-top: 4px;
    color: #333;
    line-height: 1.35;
}
.mp-loyalty-tier-current > strong {
    display: inline !important;
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1.15 !important;
}
.mp-loyalty-tier-current > span {
    display: inline !important;
    font-size: 13px;
    font-weight: 600;
}
.mp-loyalty-tier-next {
    margin-top: 13px !important;
    color: #444;
    font-size: 13px;
    line-height: 1.45;
}
.mp-loyalty-tier-next strong {
    font-size: inherit !important;
}
.mp-loyalty-tier-progress {
    position: relative;
    width: 100%;
    height: 10px;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #ececec;
}
.mp-loyalty-tier-progress-fill {
    display: block;
    height: 100%;
    min-width: 3px;
    border-radius: inherit;
    background: #e31e24;
    transition: width .25s ease;
}
.mp-loyalty-tier-progress.is-max .mp-loyalty-tier-progress-fill {
    min-width: 100%;
}
.mp-loyalty-tier-progress-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    color: #777;
    font-size: 10.5px;
    line-height: 1.3;
}
.mp-loyalty-tier-progress-labels > span:last-child {
    text-align: right;
}
@media (max-width: 700px) {
    .mp-loyalty-tier-current > strong {
        font-size: 24px !important;
    }
    .mp-loyalty-tier-current > span {
        flex-basis: 100%;
    }
    .mp-loyalty-tier-progress-labels {
        font-size: 10px;
    }
}


/* 0.2.13 – doprecyzowane opisy limitu płatności punktami */


/* 0.2.15 – karta poziomu dopracowana wizualnie */
.mp-loyalty-balance-card {
    padding: 28px 26px;
}

.mp-loyalty-balance-card > span:first-child {
    color: #2f2f2f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.mp-loyalty-balance-card > strong {
    margin: 10px 0 12px;
    color: #222;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.mp-loyalty-balance-card > small {
    color: #4e4e4e;
    font-size: 13px;
    line-height: 1.45;
}

.mp-loyalty-tier-card .mp-loyalty-tier-current {
    margin-top: 6px;
}

.mp-loyalty-tier-current > strong {
    font-size: 30px !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em;
}

.mp-loyalty-tier-spend-summary {
    margin-top: 10px;
}

.mp-loyalty-tier-spend-label {
    display: block;
    color: #3e3e3e;
    font-size: 13px;
    line-height: 1.45;
}

.mp-loyalty-tier-spend-value {
    display: inline-block;
    margin-top: 4px;
    color: #222;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
}

.mp-loyalty-tier-card .mp-loyalty-tier-benefit {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #f1dddd;
    border-radius: 8px;
    background: #fcf2f2;
    color: #333;
}

.mp-loyalty-tier-benefit-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    color: #d92b2b;
}

.mp-loyalty-tier-benefit-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.mp-loyalty-tier-benefit-copy {
    display: block;
    min-width: 0;
}

.mp-loyalty-tier-benefit-copy strong {
    display: block;
    margin: 0;
    color: #222;
    font-size: 15px !important;
    line-height: 1.35;
}

.mp-loyalty-tier-benefit-copy small {
    display: block;
    margin-top: 3px;
    color: #444;
    font-size: 13px;
    line-height: 1.45;
}

.mp-loyalty-tier-next {
    margin-top: 16px !important;
    font-size: 13px;
    line-height: 1.5;
}

.mp-loyalty-tier-progress {
    margin-top: 12px;
}

.mp-loyalty-tier-progress-labels {
    margin-top: 7px;
    color: #707070;
    font-size: 11px;
}

@media (max-width: 700px) {
    .mp-loyalty-balance-card {
        padding: 22px 18px;
    }

    .mp-loyalty-balance-card > strong {
        font-size: 29px;
    }

    .mp-loyalty-tier-current > strong {
        font-size: 27px !important;
    }

    .mp-loyalty-tier-spend-value {
        font-size: 22px;
    }

    .mp-loyalty-tier-card .mp-loyalty-tier-benefit {
        gap: 12px;
        padding: 12px 13px;
    }

    .mp-loyalty-tier-benefit-icon {
        flex-basis: 34px;
        width: 34px;
        height: 34px;
    }

    .mp-loyalty-tier-benefit-copy strong {
        font-size: 14px !important;
    }
}


/* 0.2.16 – subtelniejsza ikona i logiczniejszy pasek postępu */
.mp-loyalty-tier-card .mp-loyalty-tier-benefit {
    gap: 12px;
    padding: 13px 15px;
}

.mp-loyalty-tier-benefit-icon {
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    margin-top: 1px;
    color: #dd3030;
}

.mp-loyalty-tier-benefit-copy strong {
    font-size: 14px !important;
}

.mp-loyalty-tier-benefit-copy small {
    margin-top: 2px;
    font-size: 12.5px;
}

@media (max-width: 700px) {
    .mp-loyalty-tier-benefit-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }
}


/* 0.2.22 – konwersja gości na konta + bezpieczne łączenie historii */
.mp-loyalty-guest-cart-note {
    display: block;
    margin: 6px 0 12px;
    color: #666;
    font-size: 12px;
    line-height: 1.45;
}

.mp-loyalty-guest-cart-buttons button.button {
    cursor: pointer;
}

.mp-loyalty-email-verify-card {
    margin: 0 0 18px;
    padding: 16px 18px;
    border: 1px solid #eadede;
    border-left: 4px solid #e31e24;
    border-radius: 6px;
    background: #fff8f8;
}
.mp-loyalty-email-verify-card.is-verified {
    border-left-color: #3a8f54;
    background: #f7fbf8;
}
.mp-loyalty-email-verify-card > strong,
.mp-loyalty-email-verify-card > span,
.mp-loyalty-email-verify-card > small {
    display: block;
}
.mp-loyalty-email-verify-card > strong {
    margin-bottom: 5px;
    color: #222;
    font-size: 15px;
}
.mp-loyalty-email-verify-card > span {
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}
.mp-loyalty-email-verify-card > small {
    margin-top: 6px;
    color: #666;
}
.mp-loyalty-email-verify-card > small.is-success { color: #23713a; }
.mp-loyalty-email-verify-card > small.is-error { color: #b42318; }
.mp-loyalty-email-verify-form { margin-top: 12px; }
.mp-loyalty-email-verify-form .button {
    min-height: 38px;
    border: 1px solid #e31e24 !important;
    background: #e31e24 !important;
    color: #fff !important;
}

.mp-loyalty-thankyou-card {
    margin: 26px 0;
    padding: 20px 22px;
    border: 1px solid #eadede;
    border-left: 4px solid #e31e24;
    border-radius: 7px;
    background: #fff8f8;
}
.mp-loyalty-thankyou-card > strong {
    display: block;
    margin: 5px 0 8px;
    color: #222;
    font-size: 21px;
    line-height: 1.25;
}
.mp-loyalty-thankyou-card > p {
    margin: 0 0 14px;
    color: #555;
    line-height: 1.5;
}
.mp-loyalty-thankyou-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width:700px) {
    .mp-loyalty-thankyou-actions { flex-direction: column; }
    .mp-loyalty-thankyou-actions .button { width: 100%; text-align: center; }
}

/* 0.2.26 – kompaktowy komunikat punktowy w mini-koszyku / Floating Cart */
.mp-loyalty-mini-cart-source {
    display: none !important;
}

.mp-loyalty-mini-cart-box {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    width: auto !important;
    margin: 10px 0 12px !important;
    padding: 11px 12px !important;
    border: 1px solid #f0d7d7 !important;
    border-radius: 7px !important;
    background: #fff7f7 !important;
    color: #333 !important;
    box-sizing: border-box !important;
    text-align: left !important;
}

.mp-loyalty-mini-cart-badge {
    display: inline-flex !important;
    flex: 0 0 28px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    margin: 1px 0 0 !important;
    border-radius: 50% !important;
    background: #e31e24 !important;
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
}

.mp-loyalty-mini-cart-copy {
    display: block !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.mp-loyalty-mini-cart-copy > strong,
.mp-loyalty-mini-cart-copy > span,
.mp-loyalty-mini-cart-copy > small {
    display: block !important;
}

.mp-loyalty-mini-cart-copy > strong {
    margin: 0 0 3px !important;
    padding: 0 !important;
    color: #222 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
}

.mp-loyalty-mini-cart-copy > span {
    margin: 0 !important;
    color: #4c4c4c !important;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
}

.mp-loyalty-mini-cart-copy > small {
    margin: 4px 0 0 !important;
    color: #777 !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
}

.mp-loyalty-mini-cart-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 4px !important;
    margin-top: 6px !important;
    font-size: 11.5px !important;
    line-height: 1.3 !important;
}

.mp-loyalty-mini-cart-actions a {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #d91d23 !important;
    font-size: inherit !important;
    font-weight: 700 !important;
    line-height: inherit !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.mp-loyalty-mini-cart-actions a:hover,
.mp-loyalty-mini-cart-actions a:focus {
    color: #b8171c !important;
    text-decoration: underline !important;
}

/* W wąskiej szufladzie nie pozwalamy stylom wtyczki koszyka powiększać naszego boxu. */
[class*="floating-cart"] .mp-loyalty-mini-cart-box,
[class*="floating_cart"] .mp-loyalty-mini-cart-box,
[class*="cart-drawer"] .mp-loyalty-mini-cart-box,
[class*="cart_drawer"] .mp-loyalty-mini-cart-box,
[class*="side-cart"] .mp-loyalty-mini-cart-box,
[class*="side_cart"] .mp-loyalty-mini-cart-box {
    max-width: none !important;
}

@media (max-width: 480px) {
    .mp-loyalty-mini-cart-box {
        gap: 9px !important;
        margin: 8px 0 10px !important;
        padding: 10px !important;
    }
    .mp-loyalty-mini-cart-badge {
        flex-basis: 25px !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 18px !important;
    }
    .mp-loyalty-mini-cart-copy > strong {
        font-size: 13px !important;
    }
}


/* 0.2.27 – wyraźne punkty oczekujące i korzyść następnego poziomu */
.mp-loyalty-pending-summary {
    margin-top: 18px;
    padding: 12px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 7px;
    background: #f7f7f7;
}
.mp-loyalty-pending-summary.has-pending {
    border-color: #edd49a;
    background: #fff8e8;
}
.mp-loyalty-pending-summary > span,
.mp-loyalty-pending-summary > b,
.mp-loyalty-pending-summary > small {
    display: block;
}
.mp-loyalty-pending-summary > span {
    color: #5d5d5d;
    font-size: 12px;
    font-weight: 600;
}
.mp-loyalty-pending-summary > b {
    margin-top: 2px;
    color: #222;
    font-size: 19px;
    line-height: 1.2;
}
.mp-loyalty-pending-summary.has-pending > b {
    color: #9a6300;
}
.mp-loyalty-pending-summary > small {
    margin-top: 5px;
    color: #666;
    font-size: 11.5px;
    line-height: 1.4;
}

.mp-loyalty-tier-next-benefit {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px solid #e0e5ea;
    border-radius: 7px;
    background: #f6f8fa;
}
.mp-loyalty-tier-next-benefit > span,
.mp-loyalty-tier-next-benefit > strong,
.mp-loyalty-tier-next-benefit > small {
    display: block;
}
.mp-loyalty-tier-next-benefit > span {
    color: #6b7280;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.mp-loyalty-tier-next-benefit > strong {
    margin-top: 3px !important;
    color: #222;
    font-size: 13.5px !important;
    line-height: 1.4 !important;
}
.mp-loyalty-tier-next-benefit > small {
    margin-top: 3px !important;
    color: #555;
    font-size: 11.5px !important;
    line-height: 1.4 !important;
}
