/**
 * Product page leasing card.
 *
 * Replaces the stack of one banner per Inbank payment product with a single
 * card whose term tabs switch the advertised monthly amount.
 */
.inbank-leasing-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 20px 0;
    padding: 16px 18px;
    border: 1px solid #ddd3fb;
    border-radius: 14px;
    background: #efeafd;
    color: #2b1b66;
}

.inbank-leasing-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.inbank-leasing-card__logo {
    display: block;
    max-width: 120px;
    height: 26px;
    width: auto;
}

.inbank-leasing-card__amounts {
    display: flex;
    align-items: center;
}

.inbank-leasing-card__amount {
    display: none;
    padding: 7px 16px;
    border: 1px solid #cfc2f7;
    border-radius: 999px;
    background: #ffffff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #2b1b66;
    white-space: nowrap;
}

.inbank-leasing-card__amount.is-active {
    display: inline-block;
}

.inbank-leasing-card__per {
    font-weight: 500;
}

.inbank-leasing-card__terms {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.inbank-leasing-card__terms-label {
    font-size: 14px;
    color: #5b4f8c;
}

.inbank-leasing-card__tabs {
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid #cfc2f7;
    border-radius: 999px;
    background: #ffffff;
}

.inbank-leasing-card__tab {
    padding: 7px 16px;
    border: none;
    border-radius: 999px;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: #5b4f8c;
    cursor: pointer;
    white-space: nowrap;
}

.inbank-leasing-card__tab:hover {
    color: #2b1b66;
}

.inbank-leasing-card__tab.is-active {
    background: #6a4fe6;
    color: #ffffff;
}

.inbank-leasing-card__note {
    display: none;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 13px;
    line-height: 1.5;
    color: #5b4f8c;
}

.inbank-leasing-card__note.is-active {
    display: flex;
}

.inbank-leasing-card__note-text {
    font-weight: 700;
    color: #2b1b66;
}

/* Reads as one sentence with the Inbank note, wrapping only when it has to. */
.inbank-leasing-card__total::before {
    content: '\2014\00a0';
}

/**
 * The icon that opens the representative example. The tooltip itself is drawn
 * by tippy; inbank_main.css ships a CSS-only stand-in on .inbank__tooltip that
 * would otherwise show a second, unpositioned copy, so it is suppressed here.
 */
.inbank-leasing-card .inbank__tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    opacity: 1;
}

.inbank-leasing-card .inbank__tooltip > svg {
    width: 18px;
    height: 18px;
    fill: none;
}

.inbank-leasing-card .inbank__tooltip::before,
.inbank-leasing-card .inbank__tooltip::after {
    content: none;
}

.tippy-box[data-theme~='inbank-leasing'] {
    background-color: #2b1b66;
    color: #ffffff;
    font-size: 12px;
    line-height: 1.5;
    border-radius: 8px;
}

.tippy-box[data-theme~='inbank-leasing'] > .tippy-arrow {
    color: #2b1b66;
}

.tippy-box[data-theme~='inbank-leasing'] .tippy-content {
    padding: 10px 12px;
    text-align: left;
    white-space: pre-line;
}
