.ep-klub-badge {
    --ep-klub-blue: #245496;
    --ep-klub-blue-soft: #edf4ff;
    --ep-klub-border: #c8dbff;
    --ep-klub-text: #1f2937;
    align-items: center;
    background: var(--ep-klub-blue-soft);
    border: 1px solid var(--ep-klub-border);
    border-radius: 999px;
    color: var(--ep-klub-text);
    display: flex;
    gap: 10px;
    line-height: 1.25;
    max-width: 100%;
    text-align: left;
}

.ep-klub-badge__icon {
    align-items: center;
    background: var(--ep-klub-blue);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 10px;
    height: 22px;
    justify-content: center;
    line-height: 1;
    width: 22px;
}

.ep-klub-badge__body {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 3px 6px;
    min-width: 0;
}

.ep-klub-badge__title {
    color: #315f9e;
    font-weight: 700;
}

.ep-klub-badge__text {
    color: #5d78a8;
    font-weight: 600;
}

.ep-klub-badge--loop {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #315f9e;
    font-size: 12px;
    justify-content: center;
    margin: 6px auto 0;
    padding: 0;
    width: fit-content;
}

.ep-klub-badge--loop .ep-klub-badge__body {
    align-items: baseline;
    display: inline-flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 3px;
    justify-content: center;
    text-align: center;
}

.ep-klub-badge--loop .ep-klub-badge__title {
    color: #315f9e;
    font-weight: 800;
}

.ep-klub-badge--loop .ep-klub-badge__text {
    color: #5d78a8;
    font-weight: 700;
}

.ep-klub-badge--single {
    border-radius: 8px;
    font-size: 14px;
    margin: 12px 0 18px;
    padding: 10px 12px;
    width: fit-content;
}

.ep-klub-badge--guest {
    --ep-klub-blue: #315f9e;
    --ep-klub-blue-soft: #f5f8fd;
    --ep-klub-border: #d8e4f7;
}

.ep-klub-badge--neutral {
    --ep-klub-blue: #667085;
    --ep-klub-blue-soft: #f8fafc;
    --ep-klub-border: #e2e8f0;
}

.ep-klub-price {
    align-items: center;
    color: #0f172a;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    justify-content: center;
    line-height: 1.15;
    max-width: 100%;
}

.ep-klub-price__main {
    align-items: baseline;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    justify-content: center;
}

.ep-klub-price__label {
    color: #315f9e;
    flex: 0 0 100%;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1.1;
    text-transform: uppercase;
}

.ep-klub-price__current {
    color: #0f172a;
    font-size: 1.08em;
    font-weight: 850;
    white-space: nowrap;
}

.ep-klub-price__suffix {
    color: #667085;
    font-size: .62em;
    font-weight: 700;
    white-space: nowrap;
}

.ep-klub-price__meta {
    align-items: center;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 5px 7px;
    justify-content: center;
}

.ep-klub-price__regular {
    color: #98a2b3;
    font-size: .72em;
    font-weight: 750;
    text-decoration-thickness: 2px;
    white-space: nowrap;
}

.ep-klub-price__chip {
    background: #eaf3ff;
    border-radius: 999px;
    color: #245496;
    font-size: 11px;
    font-weight: 850;
    padding: 4px 7px;
    white-space: nowrap;
}

.ep-klub-price--single {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: flex-start;
    margin: 0 0 8px;
}

.ep-klub-price--single .ep-klub-price__main,
.ep-klub-price--single .ep-klub-price__meta {
    justify-content: flex-start;
}

.ep-klub-price--single .ep-klub-price__current {
    font-size: clamp(34px, 6vw, 58px);
    letter-spacing: 0;
}

.ep-klub-price--single .ep-klub-price__regular {
    font-size: 18px;
}

.woocommerce ul.products li.product .price .ep-klub-price,
.woocommerce-page ul.products li.product .price .ep-klub-price {
    display: flex;
    margin: 0 auto;
}

.woocommerce ul.products li.product .price .ep-klub-price__main,
.woocommerce-page ul.products li.product .price .ep-klub-price__main {
    flex: 0 0 100%;
}

.woocommerce ul.products li.product .price .ep-klub-price__current,
.woocommerce-page ul.products li.product .price .ep-klub-price__current {
    font-size: 1.02em;
}

.woocommerce ul.products li.product .price .ep-klub-price__suffix,
.woocommerce-page ul.products li.product .price .ep-klub-price__suffix {
    display: none;
}

.ep-klub-dashboard {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    color: #111827;
    margin: 0 0 24px;
    padding: 24px;
}

.ep-klub-dashboard__header {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.ep-klub-dashboard__eyebrow {
    color: #315f9e;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.ep-klub-dashboard h2 {
    font-size: 26px;
    line-height: 1.2;
    margin: 0;
}

.ep-klub-dashboard__level {
    background: #edf4ff;
    border: 1px solid #c8dbff;
    border-radius: 999px;
    color: #245496;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 800;
    padding: 7px 12px;
}

.ep-klub-dashboard__stats {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 22px;
}

.ep-klub-dashboard__stat {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
}

.ep-klub-dashboard__stat span {
    color: #667085;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 8px;
}

.ep-klub-dashboard__stat strong {
    color: #0f172a;
    display: block;
    font-size: 24px;
    line-height: 1.15;
}

.ep-klub-dashboard__note {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #53627c;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.4;
    margin: -4px 0 20px;
    padding: 12px 14px;
}

.ep-klub-dashboard__progress-top {
    align-items: center;
    color: #344054;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ep-klub-dashboard__progress-top strong {
    color: #245496;
}

.ep-klub-progress-wrapper {
    background: #eef2f7;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.ep-klub-progress-bar {
    background: linear-gradient(90deg, #245496, #33b894);
    height: 100%;
}

.ep-klub-cart-notice {
    align-items: center;
    background: #f7fbff;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    color: #1f2937;
    display: grid;
    gap: 12px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin: 0 0 18px;
    padding: 14px 16px;
}

.ep-klub-cart-notice__icon {
    align-items: center;
    background: #245496;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.ep-klub-cart-notice__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.ep-klub-cart-notice__title {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.25;
}

.ep-klub-cart-notice__message {
    color: #53627c;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

.ep-klub-cart-notice__amount-wrap {
    align-items: flex-end;
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    white-space: nowrap;
}

.ep-klub-cart-notice__amount-label {
    color: #667085;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.1;
}

.ep-klub-cart-notice__amount {
    color: #245496;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.1;
}

.ep-klub-cart-notice--guest {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.ep-klub-cart-notice--guest .ep-klub-cart-notice__icon {
    background: #667085;
}

/* Soft compatibility styling for the existing [ep_stock_badge] output in Kadence cards. */
.woocommerce ul.products li.product .ep-stock-badge,
.woocommerce ul.products li.product .ep_stock_badge,
.woocommerce ul.products li.product .ep-stock-status,
.woocommerce ul.products li.product .stock-badge,
.woocommerce ul.products li.product [class*="stock-badge"],
.woocommerce ul.products li.product [class*="stock_badge"] {
    align-items: center;
    background: #ecfdf5 !important;
    border: 0 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: #1f2937 !important;
    display: inline-flex;
    font-size: 13px !important;
    font-weight: 750 !important;
    gap: 7px;
    justify-content: center;
    line-height: 1.2 !important;
    margin: 10px auto 0 !important;
    max-width: calc(100% - 24px);
    min-height: 0 !important;
    padding: 7px 12px !important;
    width: auto !important;
}

.woocommerce ul.products li.product .ep-stock-badge::before,
.woocommerce ul.products li.product .ep_stock_badge::before,
.woocommerce ul.products li.product .ep-stock-status::before,
.woocommerce ul.products li.product .stock-badge::before,
.woocommerce ul.products li.product [class*="stock-badge"]::before,
.woocommerce ul.products li.product [class*="stock_badge"]::before {
    background: #2fc39b;
    border-radius: 50%;
    content: "";
    display: inline-block;
    height: 8px;
    width: 8px;
}

@media (max-width: 640px) {
    .ep-klub-badge--single {
        align-items: flex-start;
        font-size: 13px;
        padding: 9px 11px;
    }

    .ep-klub-badge--loop {
        font-size: 11px;
        margin-top: 5px;
        padding: 0;
    }

    .ep-klub-price--single .ep-klub-price__current {
        font-size: 42px;
    }

    .woocommerce ul.products li.product .price .ep-klub-price {
        gap: 3px 7px;
    }

    .woocommerce ul.products li.product .price .ep-klub-price__regular {
        font-size: 13px;
    }

    .woocommerce ul.products li.product .price .ep-klub-price__chip {
        font-size: 10px;
        padding: 3px 6px;
    }

    .ep-klub-dashboard {
        padding: 18px;
    }

    .ep-klub-cart-notice {
        align-items: flex-start;
        grid-template-columns: auto minmax(0, 1fr);
        padding: 12px;
    }

    .ep-klub-cart-notice__amount-wrap {
        align-items: flex-start;
        grid-column: 2;
    }

    .ep-klub-cart-notice__amount {
        font-size: 16px;
    }

    .ep-klub-dashboard__header,
    .ep-klub-dashboard__progress-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .ep-klub-dashboard__stats {
        grid-template-columns: 1fr;
    }
}
