/* Pricing tables — i2t3 component styles
 * A row of pricing plans; the "featured" plan is highlighted. Plans-per-row
 * uses the shared i2t3_images_per_row column; currency icon from i2t3_currency.
 * For a single price box use the pricebox element instead.
 */

.i2t3-pricing__headline {
    margin-bottom: 1.5rem;
}

.i2t3-pricing__plan {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 1.75rem 1.5rem;
    border: 1px solid var(--i2t3-border-color, #dee2e6);
    border-radius: .5rem;
    background: #fff;
}

.i2t3-pricing__plan {
    position: relative;
}

.i2t3-pricing__plan--featured {
    border-color: var(--i2t3-primary, #0d6efd);
    border-width: 2px;
    box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1);
}

/* Ribbon / badge — e.g. "Most popular" */
.i2t3-pricing__badge {
    position: absolute;
    top: -.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--i2t3-primary, #0d6efd);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    padding: .25rem .85rem;
    border-radius: 1rem;
    white-space: nowrap;
}

/* Plan icon shown above the name */
.i2t3-pricing__icon {
    font-size: 2rem;
    color: var(--i2t3-primary, #0d6efd);
    margin-bottom: .65rem;
}

.i2t3-pricing__name {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .03em;
    margin-bottom: .75rem;
}

.i2t3-pricing__price {
    margin-bottom: 1rem;
    line-height: 1;
}

.i2t3-pricing__currency {
    font-size: 1.25rem;
    vertical-align: super;
    color: var(--i2t3-primary, #0d6efd);
    margin-right: .15rem;
}

.i2t3-pricing__amount {
    font-size: 2.75rem;
    font-weight: 700;
}

.i2t3-pricing__period {
    color: #6c757d;
    font-size: .95rem;
}

.i2t3-pricing__features {
    margin-bottom: 1.25rem;
}

.i2t3-pricing__features ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.i2t3-pricing__features li {
    padding: .35rem 0;
    border-bottom: 1px solid var(--i2t3-border-color, #f0f0f0);
}

.i2t3-pricing__features li:last-child {
    border-bottom: 0;
}

/* Push the button to the bottom so plans of unequal length align */
.i2t3-pricing__btn {
    margin-top: auto;
}

/* Monthly / yearly toggle — CSS-only via :has() (no JS) */
.i2t3-pricing__toggle {
    margin-bottom: 1.5rem;
}
.i2t3-pricing__radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.i2t3-pricing__toggle label {
    display: inline-block;
    margin: 0;
    padding: .4rem 1.1rem;
    border: 1px solid var(--i2t3-primary, #0d6efd);
    cursor: pointer;
}
.i2t3-pricing__toggle label:first-of-type {
    border-radius: .375rem 0 0 .375rem;
}
.i2t3-pricing__toggle label:last-of-type {
    border-radius: 0 .375rem .375rem 0;
    border-left: 0;
}
.i2t3-pricing__radio--monthly:checked ~ label[for$="-m"],
.i2t3-pricing__radio--yearly:checked ~ label[for$="-y"] {
    background: var(--i2t3-primary, #0d6efd);
    color: #fff;
}

/* Default shows monthly; switching the radio swaps the prices */
.i2t3-pricing__amount--yearly,
.i2t3-pricing__period--yearly {
    display: none;
}
.i2t3-pricing:has(.i2t3-pricing__radio--yearly:checked) .i2t3-pricing__amount--monthly,
.i2t3-pricing:has(.i2t3-pricing__radio--yearly:checked) .i2t3-pricing__period--monthly {
    display: none;
}
.i2t3-pricing:has(.i2t3-pricing__radio--yearly:checked) .i2t3-pricing__amount--yearly,
.i2t3-pricing:has(.i2t3-pricing__radio--yearly:checked) .i2t3-pricing__period--yearly {
    display: inline;
}
