/* WRAPPER */
.txb-wrapper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

/* CARD */
.txb-card {
    background: var(--color-white);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid #ececec;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    transition: .3s;
}

.txb-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

/* HEADER */
.txb-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 15px 20px;
    background: #fff8f8;
    border-bottom: 1px solid #eee;
}

.txb-header-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ffe7e7;
    color: var(--color-main);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    font-size: 20px;
}

.txb-header-content h3 {
    margin: 0;
    font-size: 25px;
    font-weight: 700;
    color: var(--color-black);
}

.txb-header-content p {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

/* TABLE */
.txb-table {
    padding: 10px 15px;
}

.txb-table-head, .txb-table-row {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
    gap: 15px;
    align-items: center;
}

.txb-table-head {
    padding: 10px 8px;
    border-bottom: 1px solid #ececec;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.txb-table-row {
    padding: 12px 8px;
    border-bottom: 1px solid #efefef;
}

.txb-table-row:last-child {
    border-bottom: none;
}

.txb-car-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-black);
}

.txb-price {
    color: var(--color-main);
    font-size: 16px;
    font-weight: 700;
}

/* NOTE */
.txb-alert, .txb-info {
    margin: 0 24px 24px;
    display: flex;
    gap: 14px;
    padding: 12px;
    border-radius: 14px;
    align-items: flex-start;
}

.txb-alert {
    background: #fff8eb;
    border: 1px solid #ffd98b;
}

.txb-info {
    background: #f7f9fc;
    border: 1px solid #e8edf5;
}

.txb-alert-icon, .txb-info-icon {
    font-size: 16px;
    color: var(--color-main);
    margin-top: 2px;
}

.txb-alert-content, .txb-info-content {
    font-size: 14px;
    color: #475569;
}

.txb-alert strong {
    color: var(--color-main);
}

/* SERVICE */
.txb-service {
    padding: 10px 28px 0;
}

.txb-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid #ececec;
}

.txb-service-item:last-child {
    border-bottom: none;
}

.txb-service-left h4 {
    font-size: 15px;
    color: var(--color-black);
    font-weight: 700;
}

.txb-service-left p {
    margin: 0;
    color: #6b7280;
    font-size: 15px;
}

.txb-service-left strong {
    color: var(--color-main);
}

.txb-service-right {
    text-align: right;
}

.txb-service-price {
    color: var(--color-main);
    font-size: 20px;
    font-weight: 700;
}

.txb-service-right span {
	line-height: 0;
    color: #94a3b8;
    font-size: 13px;
}


/* RESPONSIVE */
@media(max-width: 1024px) {
    .txb-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width:768px) {
    .txb-header {
        padding: 20px;
    }

    .txb-header-content h3 {
        font-size: 24px;
    }

    .txb-table {
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding: 0 10px 0 0;
    }

    .txb-table::-webkit-scrollbar {
        display: none;
    }

    .txb-table-head, .txb-table-row {
        display: grid;
        grid-template-columns: 180px 120px 120px 120px;
        min-width: 540px;
    }

    .txb-table::after {
        content: "";
        position: sticky;
        right: 0;
        width: 35px;
        height: 100%;
        float: right;
        pointer-events: none;
        background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
    }

    .txb-service {
        padding: 10px 15px;
    }

    .txb-service-item {
        align-items: flex-start;
    }

    .txb-alert, .txb-info {
        margin: 18px;
    }
}