
.tm-booking-card,
.tm-booking-card * {
    box-sizing: border-box;
}

.tm-booking-heading,
.tm-booking-section-head,
.tm-booking-item-head {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: flex-start;
}

.tm-booking-kicker {
    margin: 0 0 5px;
    color: #FF7A00;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.tm-booking-secure,
.tm-booking-section-head > span {
    padding: 7px 10px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #166534;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.tm-booking-grid,
.tm-booking-manage-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.tm-booking-full,
.tm-booking-detail-full {
    grid-column: 1 / -1;
}

.tm-booking-card label,
.tm-booking-item label {
    display: block;
    margin-bottom: 7px;
    color: #081521;
    font-weight: 700;
}

.tm-booking-card input,
.tm-booking-card select,
.tm-booking-card textarea,
.tm-booking-item input,
.tm-booking-item select,
.tm-booking-item textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 9px;
    background: #fff;
}

.tm-booking-success,
.tm-booking-error {
    margin: 16px 0;
    padding: 14px 16px;
    border-left: 4px solid #16a34a;
    border-radius: 9px;
    background: #ecfdf5;
    color: #166534;
    font-weight: 700;
}

.tm-booking-error {
    border-left-color: #FF7A00;
    background: #fef2f2;
    color: #991b1b;
}

.tm-booking-list,
.tm-customer-booking-list {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.tm-booking-item,
.tm-customer-booking-list article {
    padding: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .04);
}

.tm-booking-item-head > div > strong,
.tm-booking-item-head > div > span {
    display: block;
}

.tm-booking-item-head > div > span {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.tm-booking-status {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255,122,0,0.12);
    color: #FF7A00;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.tm-booking-status-completed {
    background: #ecfdf5;
    color: #166534;
}

.tm-booking-status-cancelled {
    background: #fef2f2;
    color: #991b1b;
}

.tm-booking-status-on_route,
.tm-booking-status-driver_assigned {
    background: #fff7ed;
    color: #9a3412;
}

.tm-booking-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.tm-booking-details > div {
    padding: 11px;
    border-radius: 9px;
    background: #f9fafb;
}

.tm-booking-details span,
.tm-booking-details strong {
    display: block;
}

.tm-booking-details span {
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 11px;
    text-transform: uppercase;
}

.tm-booking-details strong,
.tm-booking-details a {
    overflow-wrap: anywhere;
    color: #081521;
    text-decoration: none;
}

.tm-booking-complete-note {
    margin-top: 15px;
    padding: 13px;
    border-radius: 9px;
    background: #ecfdf5;
    color: #166534;
    font-weight: 700;
}

.tm-booking-empty {
    padding: 26px;
    border: 1px dashed #d1d5db;
    border-radius: 12px;
    background: #f9fafb;
    text-align: center;
}

.tm-customer-booking-list article > div:first-child {
    display: flex;
    gap: 14px;
    justify-content: space-between;
    align-items: center;
}

.tm-customer-booking-list a {
    color: #081521;
    text-decoration: none;
    font-weight: 800;
}

.tm-booking-timeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-top: 15px;
}

.tm-booking-timeline span {
    padding: 8px 5px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #9ca3af;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
}

.tm-booking-timeline span.is-active {
    background: #fef2f2;
    color: #FF7A00;
}

@media (max-width: 767px) {
    .tm-booking-heading,
    .tm-booking-section-head,
    .tm-booking-item-head,
    .tm-customer-booking-list article > div:first-child {
        flex-direction: column;
    }

    .tm-booking-grid,
    .tm-booking-manage-grid,
    .tm-booking-details {
        grid-template-columns: 1fr;
    }

    .tm-booking-full,
    .tm-booking-detail-full {
        grid-column: auto;
    }

    .tm-booking-timeline {
        grid-template-columns: 1fr;
    }

    .tm-booking-timeline span {
        text-align: left;
    }
}
