/* JAPI EXTRA CSS Edit
 * Nazwa: Dodatkowy CSS 6
 * Plik: custom-6.css
 * Globalny plik dodatkowych stylów PrestaShop.
 * Autor modułu: kubaweb.dev by Kuba Pieczewski
 */
/* =========================================================
   CARPMANIAC
   FORMY PŁATNOŚCI
   KOMPLETNY CSS
   ========================================================= */

.cm-payments {
    --cm-payments-green: #7d9f3b;
    --cm-payments-green-dark: #526c29;
    --cm-payments-green-light: #a7cb61;
    --cm-payments-green-soft: #f1f6e9;

    --cm-payments-gold: #c89a48;
    --cm-payments-gold-dark: #79551f;
    --cm-payments-gold-soft: #faf3e5;

    --cm-payments-ink: #151916;
    --cm-payments-ink-soft: #303731;
    --cm-payments-muted: #697169;
    --cm-payments-line: #e0e6dd;

    --cm-payments-radius-xl: 28px;
    --cm-payments-radius-lg: 22px;
    --cm-payments-radius-md: 16px;

    --cm-payments-shadow:
        0 24px 60px rgba(21, 31, 22, 0.09),
        0 6px 18px rgba(21, 31, 22, 0.045);

    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    box-sizing: border-box;
    color: var(--cm-payments-ink);
    font-family: inherit;
}

.cm-payments *,
.cm-payments *::before,
.cm-payments *::after {
    box-sizing: border-box;
}

.cm-payments h2,
.cm-payments h3,
.cm-payments h4,
.cm-payments p,
.cm-payments span,
.cm-payments strong,
.cm-payments div {
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none !important;
}

.cm-payments h2,
.cm-payments h3,
.cm-payments h4,
.cm-payments p {
    text-align: left !important;
    text-justify: auto !important;
    word-spacing: normal !important;
}

/* HERO */

.cm-payments__hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(32px, 5vw, 58px);
    border: 1px solid rgba(125, 159, 59, 0.24);
    border-radius: var(--cm-payments-radius-xl);
    color: #ffffff;
    background:
        radial-gradient(
            circle at 91% 8%,
            rgba(167, 203, 97, 0.27) 0,
            rgba(167, 203, 97, 0) 36%
        ),
        radial-gradient(
            circle at 8% 110%,
            rgba(200, 154, 72, 0.18) 0,
            rgba(200, 154, 72, 0) 42%
        ),
        linear-gradient(
            135deg,
            #101510 0%,
            #1b241c 54%,
            #111711 100%
        );
    box-shadow: var(--cm-payments-shadow);
}

.cm-payments__hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -95px;
    right: -68px;
    width: 285px;
    height: 285px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.cm-payments__hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 44px;
    bottom: -130px;
    width: 275px;
    height: 275px;
    border: 44px solid rgba(125, 159, 59, 0.08);
    border-radius: 50%;
}

.cm-payments__hero-content {
    position: relative;
    z-index: 2;
}

.cm-payments__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 17px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #e2edcf;
    background: rgba(255, 255, 255, 0.07);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.cm-payments__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--cm-payments-green-light);
    box-shadow: 0 0 0 5px rgba(167, 203, 97, 0.14);
}

.cm-payments__hero h2 {
    max-width: 850px;
    margin: 0 0 16px !important;
    color: #ffffff !important;
    font-size: clamp(32px, 4.6vw, 54px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.cm-payments__hero-content > p {
    max-width: 820px;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.74) !important;
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.75;
}

.cm-payments__hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 32px;
}

.cm-payments__hero-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    min-width: 0;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(8px);
}

.cm-payments__hero-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 12px;
    color: #18210e;
    background:
        linear-gradient(
            135deg,
            var(--cm-payments-green-light),
            var(--cm-payments-green)
        );
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(82, 108, 41, 0.20);
}

.cm-payments__hero-card strong {
    display: block;
    margin: 1px 0 5px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
    line-height: 1.35;
}

.cm-payments__hero-card div > span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    line-height: 1.55;
}

/* SEKCJE */

.cm-payments__section {
    margin-top: clamp(48px, 7vw, 78px);
}

.cm-payments__section-heading {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 19px;
    align-items: start;
    margin-bottom: 27px;
}

.cm-payments__section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--cm-payments-green),
            var(--cm-payments-green-dark)
        );
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(82, 108, 41, 0.20);
}

.cm-payments__section-heading h3 {
    margin: 1px 0 8px !important;
    color: var(--cm-payments-ink) !important;
    font-size: clamp(25px, 3vw, 35px);
    font-weight: 900;
    line-height: 1.16;
    letter-spacing: -0.028em;
    text-wrap: balance;
}

.cm-payments__section-heading p {
    max-width: 820px;
    margin: 0 !important;
    color: var(--cm-payments-muted) !important;
    font-size: 15px;
    line-height: 1.72;
}

/* WSTĘP */

.cm-payments__intro-box {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: 30px;
    border: 1px solid var(--cm-payments-line);
    border-radius: var(--cm-payments-radius-lg);
    background:
        linear-gradient(
            145deg,
            #ffffff 0%,
            #f7f9f5 100%
        );
    box-shadow: 0 12px 30px rgba(21, 31, 22, 0.05);
}

.cm-payments__intro-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--cm-payments-green),
            var(--cm-payments-green-dark)
        );
    box-shadow: 0 12px 26px rgba(82, 108, 41, 0.20);
}

.cm-payments__intro-icon svg {
    width: 29px;
    height: 29px;
}

.cm-payments__intro-box h4 {
    margin: 1px 0 10px !important;
    color: var(--cm-payments-ink) !important;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.cm-payments__intro-box p {
    margin: 0 !important;
    color: var(--cm-payments-muted) !important;
    font-size: 14px;
    line-height: 1.72;
}

.cm-payments__intro-box p + p {
    margin-top: 12px !important;
}

/* METODY PŁATNOŚCI */

.cm-payments__methods {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.cm-payments__method {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 330px;
    padding: 27px;
    overflow: hidden;
    border: 1px solid var(--cm-payments-line);
    border-radius: var(--cm-payments-radius-lg);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(21, 31, 22, 0.05);
    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.cm-payments__method::after {
    content: "";
    position: absolute;
    right: -38px;
    bottom: -46px;
    width: 122px;
    height: 122px;
    border: 22px solid rgba(125, 159, 59, 0.07);
    border-radius: 50%;
}

.cm-payments__method:hover {
    transform: translateY(-5px);
    border-color: rgba(125, 159, 59, 0.52);
    box-shadow: 0 22px 44px rgba(21, 31, 22, 0.10);
}

.cm-payments__method--featured {
    border-color: rgba(200, 154, 72, 0.32);
    background:
        linear-gradient(
            145deg,
            #ffffff,
            var(--cm-payments-gold-soft)
        );
}

.cm-payments__method-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.cm-payments__method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    flex: 0 0 54px;
    border-radius: 17px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--cm-payments-green),
            var(--cm-payments-green-dark)
        );
    box-shadow: 0 11px 24px rgba(82, 108, 41, 0.20);
}

.cm-payments__method--featured .cm-payments__method-icon {
    color: #271c0b;
    background:
        linear-gradient(
            135deg,
            #e0ba6f,
            var(--cm-payments-gold)
        );
}

.cm-payments__method-icon svg {
    width: 26px;
    height: 26px;
}

.cm-payments__method-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--cm-payments-green-dark);
    background: var(--cm-payments-green-soft);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cm-payments__method h4 {
    position: relative;
    z-index: 2;
    margin: 0 0 11px !important;
    color: var(--cm-payments-ink) !important;
    font-size: clamp(21px, 2vw, 25px);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.cm-payments__method > p {
    position: relative;
    z-index: 2;
    margin: 0 !important;
    color: var(--cm-payments-muted) !important;
    font-size: 14px;
    line-height: 1.72;
}

.cm-payments__bank-box,
.cm-payments__method-note {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 18px;
    border: 1px solid rgba(125, 159, 59, 0.18);
    border-radius: 16px;
    background: var(--cm-payments-green-soft);
}

.cm-payments__bank-name {
    display: block;
    margin-bottom: 12px;
    color: var(--cm-payments-ink);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
}

.cm-payments__bank-label {
    display: block;
    margin-bottom: 6px;
    color: var(--cm-payments-green-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cm-payments__account-number {
    display: block;
    color: var(--cm-payments-ink);
    font-size: clamp(15px, 1.7vw, 20px);
    font-weight: 900;
    line-height: 1.45;
    letter-spacing: 0.02em;
    white-space: normal;
}

.cm-payments__method-note strong {
    display: block;
    margin-bottom: 5px;
    color: var(--cm-payments-green-dark);
    font-size: 14px;
    font-weight: 900;
    line-height: 1.4;
}

.cm-payments__method-note span {
    display: block;
    color: var(--cm-payments-ink-soft);
    font-size: 13px;
    line-height: 1.6;
}

/* PODSUMOWANIE */

.cm-payments__summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cm-payments__summary-card {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 25px;
    border: 1px solid var(--cm-payments-line);
    border-radius: var(--cm-payments-radius-lg);
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(21, 31, 22, 0.05);
}

.cm-payments__summary-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 18px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            var(--cm-payments-green),
            var(--cm-payments-green-dark)
        );
    font-size: 14px;
    font-weight: 900;
}

.cm-payments__summary-card strong {
    display: block;
    margin: 2px 0 7px;
    color: var(--cm-payments-ink);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.cm-payments__summary-card p {
    margin: 0 !important;
    color: var(--cm-payments-muted) !important;
    font-size: 14px;
    line-height: 1.7;
}

/* STOPKA CTA */

.cm-payments__footer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
    margin-top: clamp(48px, 7vw, 78px);
    padding: clamp(28px, 4vw, 42px);
    overflow: hidden;
    border: 1px solid rgba(125, 159, 59, 0.24);
    border-radius: var(--cm-payments-radius-lg);
    color: #ffffff;
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(125, 159, 59, 0.29),
            transparent 36%
        ),
        linear-gradient(135deg, #111711, #1d281e);
}

.cm-payments__footer::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -100px;
    width: 250px;
    height: 250px;
    border: 42px solid rgba(255, 255, 255, 0.035);
    border-radius: 50%;
}

.cm-payments__footer > * {
    position: relative;
    z-index: 2;
}

.cm-payments__footer-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #a9ce62;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.cm-payments__footer h3 {
    margin: 0 0 8px !important;
    color: #ffffff !important;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.cm-payments__footer p {
    max-width: 660px;
    margin: 0 !important;
    color: rgba(255, 255, 255, 0.66) !important;
    font-size: 14px;
    line-height: 1.7;
}

.cm-payments__footer-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    color: #17200e;
    background:
        linear-gradient(
            135deg,
            var(--cm-payments-green-light),
            var(--cm-payments-green)
        );
    font-size: 13px;
    font-weight: 900;
    text-align: center;
}

/* RESPONSYWNOŚĆ */

@media (max-width: 1050px) {
    .cm-payments__methods {
        grid-template-columns: 1fr;
    }

    .cm-payments__method {
        min-height: 0;
    }

    .cm-payments__footer {
        grid-template-columns: 1fr;
    }

    .cm-payments__footer-badge {
        justify-self: start;
    }
}

@media (max-width: 820px) {
    .cm-payments__hero-grid,
    .cm-payments__summary {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .cm-payments__hero {
        padding: 26px 19px;
        border-radius: 21px;
    }

    .cm-payments__hero h2 {
        font-size: 32px;
    }

    .cm-payments__section {
        margin-top: 46px;
    }

    .cm-payments__section-heading {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px;
        margin-bottom: 21px;
    }

    .cm-payments__section-number {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 12px;
    }

    .cm-payments__section-heading h3 {
        font-size: 24px;
    }

    .cm-payments__intro-box {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 14px;
        padding: 21px;
        border-radius: 18px;
    }

    .cm-payments__intro-icon {
        width: 50px;
        height: 50px;
        border-radius: 15px;
    }

    .cm-payments__method,
    .cm-payments__summary-card {
        padding: 21px;
        border-radius: 18px;
    }

    .cm-payments__method-top {
        align-items: flex-start;
    }

    .cm-payments__summary-card {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 14px;
    }

    .cm-payments__summary-mark {
        width: 48px;
        height: 48px;
        border-radius: 15px;
        font-size: 12px;
    }

    .cm-payments__footer {
        padding: 26px 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cm-payments__method {
        transition: none;
    }
}
