.trv-restaurant-booking,
.trv-restaurant-menu,
.trv-restaurant-canvas-wrap {
    max-width: 1180px;
    margin: 24px auto;
    box-sizing: border-box;
}

.trv-restaurant-booking,
.trv-restaurant-menu,
.trv-restaurant-room-canvas-section {
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.trv-restaurant-booking input,
.trv-restaurant-booking select,
.trv-restaurant-booking textarea {
    width: 100%;
    max-width: 520px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.trv-booking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.trv-restaurant-booking button,
.trv-restaurant-check-availability,
.trv-restaurant-submit-booking,
.trv-slot-button {
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: #111827;
    color: #ffffff;
}

.trv-restaurant-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
}

.trv-slot-button {
    background: #f3f4f6;
    color: #111827;
    border: 1px solid #d1d5db;
}

.trv-slot-button:hover,
.trv-slot-button.is-selected {
    background: #111827;
    color: #ffffff;
}

.trv-restaurant-booking-message,
.trv-restaurant-error {
    margin-top: 14px;
}

.trv-restaurant-error,
.trv-message-error {
    color: #b91c1c;
}

.trv-message-success {
    color: #047857;
}

.trv-restaurant-menu-category {
    margin-top: 28px;
}

.trv-restaurant-menu-item {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
    border-bottom: 1px solid #eeeeee;
}

.trv-menu-price {
    white-space: nowrap;
    font-weight: 700;
}

.trv-restaurant-canvas-title {
    margin-bottom: 18px;
}

.trv-restaurant-room-canvas-section {
    margin-bottom: 34px;
}

.trv-restaurant-room-title {
    margin: 0 0 14px;
    font-size: 20px;
}

.trv-restaurant-canvas-scroll {
    width: 100%;
    overflow: auto;
    border-radius: 18px;
    border: 1px solid #d1d5db;
    background:
        linear-gradient(90deg, rgba(148,163,184,.12) 1px, transparent 1px),
        linear-gradient(180deg, rgba(148,163,184,.12) 1px, transparent 1px),
        #f8fafc;
    background-size: 24px 24px;
}

.trv-restaurant-real-canvas {
    position: relative;
    background-size: cover;
    background-position: center;
    min-width: 320px;
    min-height: 240px;
}

.trv-restaurant-canvas-table {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
    text-align: center;
    box-sizing: border-box;
}

.trv-restaurant-canvas-table .trv-table-name {
    font-weight: 800;
    line-height: 1.1;
}

.trv-restaurant-canvas-table .trv-table-seats {
    font-size: 12px;
    opacity: .88;
}

.trv-restaurant-canvas-table .trv-table-minmax {
    font-size: 10px;
    opacity: .75;
}

.trv-table-shape-round,
.trv-table-shape-circle {
    border-radius: 999px;
}

.trv-table-shape-square {
    border-radius: 12px;
}

.trv-table-shape-rect {
    border-radius: 16px;
}

.trv-restaurant-canvas-hint,
.trv-selected-table {
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eef6ff;
    color: #0f3b68;
    border: 1px solid #bfdbfe;
    font-size: 14px;
}

.trv-restaurant-canvas-wrap.is-selectable .trv-restaurant-canvas-table.is-clickable {
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, outline-color .15s ease;
}

.trv-restaurant-canvas-wrap.is-selectable .trv-restaurant-canvas-table.is-clickable:hover,
.trv-restaurant-canvas-wrap.is-selectable .trv-restaurant-canvas-table.is-clickable:focus {
    outline: 3px solid rgba(34, 113, 177, .35);
    border-color: #2271b1;
    box-shadow: 0 14px 30px rgba(34, 113, 177, .30);
}

.trv-restaurant-canvas-table.is-selected {
    border-color: #16a34a;
    outline: 4px solid rgba(22, 163, 74, .28);
    box-shadow: 0 14px 34px rgba(22, 163, 74, .32);
}

/* Booking modal from room canvas */
body.trv-restaurant-modal-open {
    overflow: hidden;
}

.trv-restaurant-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.trv-restaurant-modal[aria-hidden="false"] {
    align-items: center;
    justify-content: center;
}

.trv-restaurant-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .68);
    backdrop-filter: blur(3px);
}

.trv-restaurant-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 28px));
    max-height: calc(100vh - 40px);
    overflow: auto;
    margin: 0 auto;
    padding: 24px;
    border-radius: 22px;
    background: #ffffff;
    color: #111827;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .35);
    box-sizing: border-box;
}

.trv-restaurant-modal-close {
    position: absolute;
    top: 12px;
    right: 14px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.trv-restaurant-modal-header {
    margin-bottom: 18px;
    padding-right: 42px;
}

.trv-restaurant-modal-header h3 {
    margin: 0 0 6px;
}

.trv-modal-selected-table {
    margin: 0;
    color: #475569;
}

.trv-restaurant-modal input,
.trv-restaurant-modal textarea,
.trv-restaurant-modal select {
    width: 100%;
    max-width: none;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    box-sizing: border-box;
}

.trv-restaurant-modal textarea {
    resize: vertical;
}

.trv-restaurant-modal .trv-restaurant-slots {
    margin-top: 12px;
}

.trv-restaurant-modal .trv-restaurant-booking-message {
    min-height: 22px;
}

.trv-restaurant-modal-check-availability {
    padding: 10px 18px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: #111827;
    color: #ffffff;
}

@media (max-width: 640px) {
    .trv-restaurant-modal-dialog {
        margin: 10px auto;
        padding: 18px;
        max-height: calc(100vh - 20px);
    }
}

/* Menu preorder cart */
.trv-preorder-box {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #f8fafc;
}

.trv-preorder-box h4,
.trv-preorder-box h5 {
    margin-top: 0;
}

.trv-preorder-help,
.trv-restaurant-menu-hint {
    color: #4b5563;
    font-size: 14px;
}

.trv-preorder-menu {
    max-height: 360px;
    overflow-y: auto;
    padding-right: 8px;
    margin: 16px 0;
}

.trv-menu-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    min-width: 120px;
}

.trv-preorder-add,
.trv-payment-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.trv-preorder-add:hover,
.trv-payment-button:hover {
    background: #1f2937;
    color: #ffffff;
    text-decoration: none;
}

.trv-restaurant-menu-item.is-unavailable {
    opacity: .55;
}

.trv-item-unavailable {
    display: block;
    color: #b91c1c;
    margin-top: 4px;
}

.trv-preorder-cart {
    margin-top: 18px;
    padding: 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #ffffff;
}

.trv-preorder-cart-items {
    color: #6b7280;
    font-size: 14px;
}

.trv-preorder-cart-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef2f7;
}

.trv-preorder-cart-row:last-child {
    border-bottom: 0;
}

.trv-preorder-cart-row strong {
    display: block;
    color: #111827;
}

.trv-preorder-cart-row span {
    color: #6b7280;
    font-size: 13px;
}

.trv-preorder-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.trv-preorder-qty,
.trv-preorder-remove {
    border: 1px solid #d1d5db !important;
    background: #ffffff !important;
    color: #111827 !important;
    border-radius: 999px !important;
    padding: 5px 10px !important;
    line-height: 1 !important;
}

.trv-preorder-remove {
    color: #b91c1c !important;
}

.trv-preorder-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    font-weight: 800;
}

.trv-preorder-total strong {
    font-size: 18px;
}

.trv-preorder-payment-note {
    margin: 12px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 13px;
}

.trv-payment-action {
    margin-top: 12px;
}

@media (max-width: 640px) {
    .trv-restaurant-menu-item,
    .trv-preorder-cart-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .trv-menu-actions {
        align-items: flex-start;
    }
}

.trv-restaurant-modal-dialog {
    width: min(960px, calc(100vw - 28px));
}
