.tfb {
    max-width: 900px;
    margin: 0 auto;
    font-size: 15px;
    color: #222;
    padding: 0 15px;
}

.tfb * {
    box-sizing: border-box
}

.tfb-sec {
    margin: 0 0 22px;
    padding: 18px;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff
}

.tfb-title {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: .04em;
    color: var(--primary-color)
}

.tfb-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px
}

.tfb-row>* {
    flex: 1 1 200px
}

.tfb select,
.tfb input[type=text],
.tfb input[type=email],
.tfb input[type=date],
.tfb input[type=number] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: #fff;
    height: auto;
    font: inherit;
    box-shadow: unset;
    margin: 0;
}

.tfb-check {
    display: flex;
    gap: 8px;
    align-items: center;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
}

.tfb-check input {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer
}

.tfb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    margin: 10px 0
}

.tfb-opt {
    display: flex;
    gap: 8px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    align-items: center;
}

.tfb-opt input {
    margin: 0;
    cursor: pointer
}

.tfb-card {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer
}

.tfb-card-img {
    position: relative;
    padding-top: 83.89%;
}

.tfb-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.tfb-card-body {
    display: block;
    padding: 10px;
    font-size: 14px
}

.tfb-card-body b {
    margin-top: 4px;
    color: var(--primary-color)
}

.tfb-card:has(input:checked),
.tfb-opt:has(input:checked) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 60, 110, .2)
}

.tfb-bus-block {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #ddd
}

.tfb-bus-block .tfb-check {
    margin-bottom: 10px;
}

.tfb-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    background: #f6f8fb;
    border-left: 3px solid var(--primary-color);
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
}

.tfb-inline {
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 260px
}

.tfb-stepper {
    display: inline-flex;
    align-items: center;
    gap: 14px
}

.tfb-stepper button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    margin: 0;
    padding: 0;
    line-height: normal;
    min-height: unset;
}

.tfb-extra {
    min-width: 30px;
    text-align: center;
    font-size: 18px;
    font-weight: 700
}

.tfb-table {
    width: 100%;
    border-collapse: collapse
}

.tfb-table th,
.tfb-table td {
    padding: 9px 6px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top
}

.tfb-table td,
.tfb-table thead th:last-child {
    text-align: right
}

.tfb-voucher-row td {
    text-align: right
}

.tfb-voucher-row input {
    display: inline-block;
    width: 150px
}

.tfb-apply {
    padding: 9px 14px;
    border: 0;
    border-radius: 6px;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    margin: 10px 0 0;
}

.tfb-vmsg {
    font-size: 13px;
    margin-top: 4px
}

.tfb-vmsg.ok {
    color: #188038
}

.tfb-vmsg.err {
    color: #c5221f
}

.tfb-final th,
.tfb-final td {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color)
}

.tfb-terms {
    max-height: 240px;
    overflow: auto;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px
}

.tfb-msg {
    margin-bottom: 12px;
    font-weight: 600
}

.tfb-msg.ok {
    color: #188038
}

.tfb-msg.err {
    color: #c5221f
}

.tfb-submit {
    width: 100%;
    padding: 14px;
    border: 0;
    border-radius: 8px;
    background: var(--primary-color);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer
}

.tfb-submit:disabled {
    opacity: .6;
    cursor: wait
}

.tfb [hidden] {
    display: none !important
}