﻿.bb-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding-top: clamp(32px, 3vw, 38px);
    padding-inline: 12px;
    max-width: 1600px;
    margin: auto;
}

.bb-card-container {
    position: relative;
    width: 450px;
    height: 238px;
    cursor: pointer;
    border: 2px solid #ADADAD;
    border-radius: 16px;
    font-weight: 400;
    font-size: clamp(32px, 3vw, 38px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 26px;
    padding-bottom: 14px;
    padding-inline-start: clamp(22px, 2.8vw, 32px);
    gap: 30px;
}

.bb-card-container.active {
    border-color: var(--fuschia);
}

.bb-card-container.expired {
    border-color: var(--red-bright);
}

html[dir="ltr"] .bb-card-container.active,
html[dir="ltr"] .bb-card-container.expired {
    border-top-right-radius: 0;
}

html[dir="rtl"] .bb-card-container.active,
html[dir="rtl"] .bb-card-container.expired {
    border-top-left-radius: 0;
}

.bb-new-card {
    border-color: transparent;
    background: var(--fuschia);
    color: var(--white);
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    font-weight: 700;
    font-size: 25px;
    gap: 15px;
}

.bb-card-type {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bb-card-type > img {
    width: 55px;
}

.bb-card-arrow {
    position: absolute;
    bottom: 15px;
    inset-inline-end: 15px;
}

html[dir="rtl"] .bb-card-arrow {
    transform: rotate(180deg);
}

.bb-card-active-badge {
    position: absolute;
    inset-inline-end: -1.5px;
    --badge-height: clamp(32px, 4vw, 45px);
    height: var(--badge-height);
    top: calc(-1 * var(--badge-height));
    font-size: clamp(22px, 1.3vw, 25px);
    font-weight: 400;
    color: var(--white);
    background: var(--fuschia);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(8px, 1vw, 12px);
    border: 2px solid var(--fuschia);
}

.bb-card-active-badge.expired {
    background: var(--red-bright);
    border-color: var(--red-bright);
}

.bb-card-actions-container {
    display: flex;
    flex-wrap: wrap;
    gap: 36px;
    margin-top: 38px;
    justify-content: center;
}

.bb-card-actions-container button {
    margin: 0;
}

.bb-card-transactions-table {
    border-collapse: collapse;
    margin: auto;
    margin-top: 32px;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 25px);
    width: min(95%, 930px);
}

.bb-card-transactions-table th {
    font-weight: 900;
    padding-bottom: 12px;
}

.bb-card-transactions-table td,
.bb-card-transactions-table th {
    padding: clamp(8px, 1vw, 18px);
    text-align: center;
}

.bb-card-transactions-table th:first-child,
.bb-card-transactions-table td:first-child {
    text-align: start;
}

.bb-card-transactions-table tbody tr:nth-child(2n+1) {
    background: #F2F2F2;
}

.bb-unsubscribe-btn {
    color: var(--red-bright);
}

.bb-checkout-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bb-checkout-info-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bb-checkout-features-container {
    display: flex;
    flex-direction: column;
    margin-top: 32px;
    align-items: center;
}

.bb-checkout-features-container,
.bb-checkout-info-container {
    font-size: clamp(17px, 1.5vw, 20px);
}

.bb-checkout-features-inner-container > ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: initial;
}

.bb-checkout-notes {
    font-weight: 700;
    color: var(--red-bright);
}

.bb-checkout-hr-line {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 20px 0;
    width: min(1200px, 90%);
}

.bb-checkout-hr-line::before,
.bb-checkout-hr-line::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #000;
}

.bb-checkout-hr-line::before {
    margin-right: 10px;
}

.bb-checkout-hr-line::after {
    margin-left: 10px;
}

.bb-checkout-notes-container {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-inline: 26px;
}

.bb-checkout-notes-disclaimer {
    display: flex;
    flex-direction: column;
    font-weight: 400;
    font-size: 14px;
    justify-content: center;
    text-align: center;
    align-items: center;
}

.bb-checkout-terms {
    margin: 10px 20px 30px 20px;
    display: flex;
    align-items: center;
}

.bb-checkout-terms > * {
    cursor: pointer;
}

.bb-terms-link {
    color: var(--black);
    font-weight: 700;
    text-decoration: underline;
}

.bb-terms-link:hover { 
    text-decoration: underline;
}

#checkout-btn {
    min-width: 130px;
}

.cc-terms-iframe {
    width: 100%;
    height: calc(100svh - 115px);
    border: none;
}

@media screen and (max-width: 600px) {
    .bb-card-container {
        width: 95%;
    }
}

@media screen and (max-width: 480px) {
    .bb-card-container {
        height: 156px;
        font-size: 28px;
        padding-inline-start: 14px;
        gap: 8px;
        padding-top: 16px;
        padding-bottom: 4px;
    }
    .bb-card-type > img {
        width: 36px;
    }
    .bb-card-arrow {
        width: 16px;
    }
    .bb-new-card > svg {
        width: 26px;
    }
}


@media screen and (max-width: 380px) {
    .bb-card-container {
        font-size: 24px;
        padding-top: 12px;
    }
}
