/* Official tbi bank assets: https://tbibank.bg/assets/ */
.tbi-product-box { padding: 12px 0; }
.tbi-product-card {
    margin-top: 16px;
    margin-bottom: 8px;
    padding: 16px;
    border: 1px solid #ff6600;
    border-radius: 12px;
    background: #fff4ec;
    color: #0d0d0d;
    cursor: pointer;
}
.tbi-product-card:hover {
    background: #ffe8d6;
}
.tbi-product-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.tbi-product-copy {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    color: #0d0d0d;
}
.tbi-product-logo {
    height: 32px;
    width: auto;
    flex-shrink: 0;
    margin-left: auto;
}
.tbi-product-legal,
.tbi-scheme-legal,
.tbi-scheme-hint { font-size: 12px; color: #595959; margin-top: 4px; }

.tbi-btn-img {
    display: inline-block;
    border: 0;
    padding: 0;
    background: transparent;
    line-height: 0;
    cursor: pointer;
}
.tbi-btn-img img {
    display: block;
    max-width: 100%;
    height: auto;
}
.tbi-btn-img-150 img { width: 150px; height: 55px; }
.tbi-btn-img-235 img { width: 235px; height: 57px; }

.tbi-schemes-modal .modal-content {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
}
.tbi-schemes-modal .modal-header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #ff6600;
    color: #0d0d0d;
    border: 0;
    padding: 12px 16px;
    height: auto;
}
.tbi-schemes-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    flex: 1;
    min-width: 0;
    color: #0d0d0d;
    font-weight: 700;
    line-height: 1.2;
}
.tbi-modal-logo {
    height: 28px;
    width: auto;
    flex-shrink: 0;
}
.tbi-schemes-modal .modal-header .close {
    position: static;
    float: none;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    line-height: 28px;
    font-size: 28px;
    opacity: 1;
    color: #0d0d0d;
    text-shadow: none;
    flex-shrink: 0;
}
.tbi-schemes-modal .modal-footer {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    text-align: left;
}
.tbi-schemes-modal .modal-footer .tbi-modal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 43px;
    min-width: 102px;
    padding: 0 1.2rem;
    margin: 0;
    border: 1px solid #d8d8d6;
    border-radius: 8px;
    background-color: #f4f4f4;
    color: #6f6e6b;
    font-family: "Oswald", sans-serif;
    font-size: 1.2rem;
    font-weight: 400;
    letter-spacing: .02rem;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    box-shadow: none;
    cursor: pointer;
    transition: all .3s;
}
.tbi-schemes-modal .modal-footer .tbi-modal-btn:hover,
.tbi-schemes-modal .modal-footer .tbi-modal-btn:focus {
    border-color: var(--primary);
    background-color: var(--primary);
    color: #fff;
    text-decoration: none;
}
.tbi-schemes-modal .modal-footer .tbi-modal-btn-cancel:hover,
.tbi-schemes-modal .modal-footer .tbi-modal-btn-cancel:focus {
    border-color: #302e2a;
    background-color: #f4f4f4;
    color: #302e2a;
}
.tbi-scheme-list { list-style: none; margin: 0; padding: 0; }
.tbi-scheme-item {
    display: block;
    padding: 10px 12px;
    margin: 0 0 8px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    cursor: pointer;
    color: #0d0d0d;
}
.tbi-scheme-item:hover { border-color: #ff6600; }
.tbi-scheme-item.is-selected,
.tbi-scheme-item.is-cheapest.is-selected {
    border-color: #ff6600;
    background: #fff4ec;
}
.tbi-scheme-name { font-weight: 700; }
.tbi-scheme-badge {
    display: inline-block;
    margin-left: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #ff6600;
}
.tbi-scheme-installment { margin-top: 2px; font-weight: 600; }
.tbi-scheme-hint { margin-top: 12px; }
.tbi-scheme-box { margin-top: 10px; }
.tbi-scheme-summary {
    background: #fff4ec;
    border: 1px solid #ff6600;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    color: #0d0d0d;
    cursor: pointer;
}
.tbi-scheme-summary:hover {
    background: #ffe8d6;
}
.tbi-error { color: #c0392b; font-size: 13px; margin-top: 8px; }

@media (max-width: 768px) {
    .tbi-schemes-modal.modal {
        padding: 0 !important;
        overflow: hidden;
    }
    .tbi-schemes-modal .modal-dialog {
        display: flex;
        align-items: stretch;
        margin: 8px;
        width: calc(100% - 16px);
        max-width: none;
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }
    .tbi-schemes-modal .modal-content {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 100%;
        overflow: hidden;
    }
    .tbi-schemes-modal .modal-header,
    .tbi-schemes-modal .modal-footer {
        flex: 0 0 auto;
    }
    .tbi-schemes-modal .modal-body {
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
        overflow: hidden;
    }
    .tbi-schemes-modal .tbi-scheme-list {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 480px) {
    .tbi-product-card .tbi-product-logo {
        display: none;
    }
}