.tsrb-booking-wrapper {
    border: 1px solid #ddd;
    padding: 16px;
    background: #fff;
    max-width: 900px;
    margin: 0 auto 24px;
}

.tsrb-booking-steps {
    display: flex;
    margin-bottom: 16px;
}

.tsrb-step {
    flex: 1;
    padding: 8px 10px;
    text-align: center;
    border-bottom: 2px solid #ddd;
    background: #f5f5f5;
    font-size: 13px;
}

.tsrb-step.tsrb-step-active {
    border-bottom-color: #2271b1;
    background: #e5f1fb;
    font-weight: 600;
}

.tsrb-step-panel {
    display: none;
    margin-top: 8px;
}

.tsrb-step-panel-active {
    display: block;
}

.tsrb-step-actions {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
}

/* Studio cards */
.tsrb-studio-select-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.tsrb-studio-card {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px;
    gap: 8px;
    align-items: center;
    cursor: pointer;
    max-width: 100%;
    background: #fafafa;
}

.tsrb-studio-card input[type="radio"] {
    margin-right: 6px;
}

.tsrb-studio-card-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b133;
    background: #e5f1fb;
}

.tsrb-studio-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #ddd;
}

.tsrb-studio-image-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 3px;
    border: 1px dashed #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    color: #777;
}

.tsrb-studio-info {
    flex: 1;
}

.tsrb-studio-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.tsrb-studio-desc {
    font-size: 12px;
    color: #555;
}

/* Time slots */
.tsrb-slots-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tsrb-slot-item {
    border: 1px solid #ccc;
    padding: 6px 8px;
    border-radius: 3px;
    cursor: pointer;
    width: calc(50% - 4px);
    box-sizing: border-box;
    font-size: 12px;
}

/* Available vs booked contrast */
.tsrb-slot-available {
    background: #e7f9e7;
    border-color: #3c9c3c;
    color: #174417;
}

.tsrb-slot-available .tsrb-slot-status {
    font-weight: 600;
    color: #1f6b1f;
}

.tsrb-slot-booked {
    background: #e0e0e0;
    color: #555;
    cursor: not-allowed;
    border-color: #999;
}

.tsrb-slot-booked .tsrb-slot-status {
    font-weight: 600;
    color: #333;
}

.tsrb-slot-selected {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px #2271b155;
}

/* Add-ons */
.tsrb-addons-wrapper {
    margin-top: 16px;
}

.tsrb-addon-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 8px;
    border: 1px solid #eee;
    padding: 6px 8px;
    border-radius: 3px;
    background: #fafafa;
}

.tsrb-addon-left {
    margin-right: 8px;
    padding-top: 3px;
}

.tsrb-addon-right {
    flex: 1;
}

.tsrb-addon-name {
    font-weight: 600;
}

.tsrb-addon-price {
    font-size: 12px;
    color: #444;
    margin-left: 6px;
}

.tsrb-addon-desc {
    font-size: 12px;
    color: #666;
}

/* Pricing summary as table */
.tsrb-pricing-summary {
    margin-top: 16px;
    border-top: 1px dashed #ccc;
    padding-top: 8px;
}

.tsrb-pricing-table {
    border-collapse: collapse;
    width: 100%;
    max-width: 420px;
}

.tsrb-pricing-table th,
.tsrb-pricing-table td {
    padding: 4px 6px;
    font-size: 13px;
    text-align: left;
}

.tsrb-pricing-table th {
    width: 40%;
    color: #333;
}

.tsrb-pricing-table tr:nth-child(even) {
    background: #fafafa;
}

.tsrb-pricing-total-row {
    background: #fff6da;
}

.tsrb-pricing-total-row td span {
    font-weight: 700;
    color: #b15a00;
}

/* Booking Summary - invoice style */
.tsrb-summary-invoice {
    margin-bottom: 16px;
    border: 1px solid #ccc;
    padding: 10px;
    background: #fff;
}

.tsrb-invoice-header {
    text-align: left;
    margin-bottom: 8px;
}

.tsrb-invoice-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: 4px;
}

.tsrb-invoice-meta {
    font-size: 12px;
}

.tsrb-invoice-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tsrb-invoice-table th,
.tsrb-invoice-table td {
    border: 1px solid #000;
    padding: 4px 6px;
    vertical-align: top;
}

.tsrb-invoice-col-item {
    width: 30%;
}

.tsrb-invoice-col-detail {
    width: 45%;
}

.tsrb-invoice-col-subtotal {
    width: 25%;
    text-align: right;
}

.tsrb-invoice-cell-item {
    font-weight: 500;
}

.tsrb-invoice-cell-subtotal {
    text-align: right;
    white-space: nowrap;
}

.tsrb-invoice-row-total .tsrb-invoice-cell-item {
    font-weight: 700;
}

.tsrb-invoice-row-total .tsrb-invoice-total-amount {
    font-weight: 700;
    background: #fff6da;
    color: #b15a00;
}

/* Coupon */
.tsrb-coupon-area {
    margin: 8px 0 16px;
}

.tsrb-coupon-area input[type="text"] {
    max-width: 200px;
}

#tsrb-coupon-message {
    margin-left: 8px;
    font-size: 12px;
}

/* Payment */
.tsrb-payment-qr img {
    max-width: 220px;
    height: auto;
    border: 1px solid #ddd;
    padding: 4px;
    border-radius: 4px;
    background: #fff;
}

.tsrb-payment-info {
    font-size: 12px;
    color: #555;
}

/* Messages */
.tsrb-info {
    color: #444;
    font-size: 13px;
}

.tsrb-error {
    color: #a00;
    font-size: 13px;
}

.tsrb-success {
    color: #008000;
    font-size: 13px;
}

/* Public calendar wrapper */
.tsrb-public-calendar-wrapper {
    border: 1px solid #ddd;
    padding: 16px;
    background: #fff;
    max-width: 900px;
    margin: 0 auto 24px;
}

.tsrb-public-studio-select {
    margin-bottom: 8px;
}

.tsrb-calendar-legend {
    margin-top: 8px;
    font-size: 12px;
}

.tsrb-legend-item {
    display: inline-block;
    margin-right: 12px;
}

/* FullCalendar date states: past, future, selected, hover */
.tsrb-date-past .fc-daygrid-day-number {
    color: #bbb !important;
}
.tsrb-date-past {
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
}

.tsrb-date-future {
    cursor: pointer;
}

.tsrb-date-future:hover {
    background-color: #f0f7ff !important;
}

.tsrb-date-selected {
    box-shadow: inset 0 0 0 2px #2271b1;
    background-color: #e5f1fb !important;
}

/* Background event color classes (availability) */
.fc-available {
    background-color: rgba(0, 128, 0, 0.18) !important;
}

.fc-partial {
    background-color: rgba(255, 215, 0, 0.28) !important;
}

.fc-full {
    background-color: rgba(220, 20, 60, 0.28) !important;
}

/* Responsive */
@media (max-width: 600px) {
    .tsrb-slot-item {
        width: 100%;
    }

    .tsrb-booking-wrapper,
    .tsrb-public-calendar-wrapper {
        padding: 12px;
    }

    .tsrb-studio-select-list {
        flex-direction: column;
    }

    .tsrb-invoice-table {
        font-size: 12px;
    }
}



/* ========== ARROW STEP INDICATOR (CHEVRON STYLE) ========== */
.tsrb-booking-steps.tsrb-steps-arrow {
    display: flex;
    margin-bottom: 20px;
    background: #e8f3f9;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #c5dbe6;
    position: relative;
}

.tsrb-steps-arrow .tsrb-step {
    position: relative;
    flex: 1;
    padding: 14px 32px 14px 24px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    background: #67a3c7;
    border-bottom: none;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* First step - reduce left padding */
.tsrb-steps-arrow .tsrb-step:first-child {
    padding-left: 18px;
}

/* Last step - reduce right padding */
.tsrb-steps-arrow .tsrb-step:last-child {
    padding-right: 18px;
}

/* Arrow (chevron) di kanan setiap step kecuali terakhir */
.tsrb-steps-arrow .tsrb-step::after {
    content: "";
    position: absolute;
    top: 0;
    right: -20px;
    width: 0;
    height: 0;
    border-top: 25px solid transparent;
    border-bottom: 25px solid transparent;
    border-left: 20px solid #67a3c7;
    z-index: 2;
    transition: border-left-color 0.3s ease;
}

/* Remove arrow pada step terakhir */
.tsrb-steps-arrow .tsrb-step:last-child::after {
    display: none;
}

/* White separator (border kiri) untuk efek depth */
.tsrb-steps-arrow .tsrb-step::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
}

.tsrb-steps-arrow .tsrb-step:first-child::before {
    display: none;
}

/* Step aktif (warna lebih gelap/bold) */
.tsrb-steps-arrow .tsrb-step.tsrb-step-active {
    background: #2980b9;
    color: #ffffff;
}

.tsrb-steps-arrow .tsrb-step.tsrb-step-active::after {
    border-left-color: #2980b9;
}

/* Step yang sudah completed (opsional - warna medium) */
.tsrb-steps-arrow .tsrb-step.tsrb-step-completed {
    background: #4a9dc9;
    color: #ffffff;
}

.tsrb-steps-arrow .tsrb-step.tsrb-step-completed::after {
    border-left-color: #4a9dc9;
}

/* Step number dan label */
.tsrb-step-number {
    font-weight: 700;
    font-size: 15px;
}

.tsrb-step-label {
    white-space: nowrap;
}

/* Responsive - mobile collapse */
@media (max-width: 640px) {
    .tsrb-steps-arrow .tsrb-step {
        padding: 10px 24px 10px 16px;
        font-size: 12px;
    }
    
    .tsrb-step-label {
        white-space: normal;
        font-size: 11px;
    }
    
    .tsrb-steps-arrow .tsrb-step::after {
        border-top: 20px solid transparent;
        border-bottom: 20px solid transparent;
        border-left-width: 16px;
        right: -16px;
    }
}

