.mtb-booking,
.mtb-booking *,
.mtb-booking *::before,
.mtb-booking *::after {
    box-sizing: border-box;
    text-shadow: none !important;
}

.mtb-booking {
    max-width: 920px;
    margin: 24px auto;
    color: var(--mtb-text);
    font-family: inherit;
}

.mtb-shell {
    background: var(--mtb-bg);
    border: 1px solid var(--mtb-border);
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(31, 41, 55, 0.08);
    overflow: hidden;
}

.mtb-header {
    padding: 22px 24px 0;
}

.mtb-header h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.25;
}

.mtb-stepbar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 20px 24px 12px;
    border-bottom: 1px solid var(--mtb-border);
}

.mtb-stepbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 8px 6px;
    border-radius: 12px;
    color: var(--mtb-muted);
    font-size: 13px;
    font-weight: 700;
    background: #f6f8fb;
    white-space: normal;
    text-align: center;
    line-height: 1.15;
}

.mtb-stepbar__item span,
.mtb-step-title span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--mtb-success);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    flex: 0 0 auto;
}

.mtb-stepbar__item.is-active {
    color: var(--mtb-text);
    background: rgba(63, 166, 90, 0.12);
}

.mtb-card {
    padding: 24px;
}

.mtb-step-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 18px;
}

.mtb-muted {
    color: var(--mtb-muted);
    margin: 0 0 22px;
}

.mtb-field {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
    font-weight: 700;
}

.mtb-field span em {
    color: #b91c1c;
    font-style: normal;
}

.mtb-field input,
.mtb-field select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--mtb-border);
    border-radius: 8px;
    background: #fff;
    color: var(--mtb-text);
    padding: 10px 12px;
    font: inherit;
    font-weight: 400;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mtb-field input:focus,
.mtb-field select:focus {
    border-color: var(--mtb-primary);
    box-shadow: 0 0 0 3px rgba(47, 107, 221, 0.16);
}

.mtb-alert {
    border-radius: 9px;
    padding: 12px 14px;
    margin: 14px 0;
    line-height: 1.45;
    font-size: 15px;
}

.mtb-alert--info {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.mtb-alert--warning {
    background: rgba(242, 177, 61, 0.13);
    border: 1px solid rgba(242, 177, 61, 0.5);
}

.mtb-alert--success {
    background: rgba(63, 166, 90, 0.10);
    border: 1px solid rgba(63, 166, 90, 0.35);
    text-align: center;
    font-weight: 800;
}

.mtb-message {
    margin: 18px 24px 0;
    border-radius: 9px;
    border: 1px solid rgba(185, 28, 28, 0.30);
    background: rgba(185, 28, 28, 0.08);
    color: #991b1b;
    padding: 12px 14px;
}

.mtb-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}

.mtb-actions--split {
    justify-content: space-between;
}

.mtb-button {
    min-height: 44px;
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    background: var(--mtb-primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.mtb-button:hover:not(:disabled) {
    filter: brightness(0.94);
    transform: translateY(-1px);
}

.mtb-button:disabled {
    background: var(--mtb-disabled);
    cursor: not-allowed;
    transform: none;
    filter: none;
}

.mtb-button--ghost {
    background: #f3f6fa;
    color: var(--mtb-text);
    border: 1px solid var(--mtb-border);
}

.mtb-booking-grid {
    display: grid;
    grid-template-columns: minmax(290px, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.mtb-calendar {
    border: 1px solid var(--mtb-border);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.mtb-calendar__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--mtb-border);
}

.mtb-calendar__header strong {
    font-size: 16px;
}

.mtb-icon-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #f4f7fb;
    color: var(--mtb-primary);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.mtb-icon-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mtb-calendar__weekdays,
.mtb-calendar__days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.mtb-calendar__weekdays span {
    padding: 12px 4px 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}

.mtb-calendar__days {
    padding: 0 10px 10px;
    gap: 4px;
}

.mtb-day,
.mtb-day-empty {
    min-height: 42px;
    border-radius: 8px;
}

.mtb-day {
    border: 1px solid transparent;
    background: transparent;
    color: var(--mtb-text);
    font: inherit;
    cursor: default;
}

.mtb-day.is-available {
    background: rgba(63, 166, 90, 0.17);
    color: #14532d;
    cursor: pointer;
    font-weight: 800;
}

.mtb-day.is-available:hover {
    border-color: rgba(63, 166, 90, 0.7);
}

.mtb-day.is-selected {
    background: var(--mtb-success);
    color: #fff;
    border-color: var(--mtb-success);
}

.mtb-day.is-outside {
    color: #c4ccd6;
}

.mtb-legend {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px 14px;
    color: var(--mtb-muted);
    font-size: 14px;
}

.mtb-legend span {
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: rgba(63, 166, 90, 0.55);
}

.mtb-time-panel {
    border: 1px solid var(--mtb-border);
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

.mtb-selected-day {
    color: var(--mtb-muted);
    font-size: 14px;
    line-height: 1.45;
}

.mtb-summary-box,
.mtb-final-box {
    border: 1px solid rgba(63, 166, 90, 0.35);
    border-radius: 10px;
    background: rgba(63, 166, 90, 0.08);
    padding: 16px;
    margin-bottom: 20px;
}

.mtb-final-box {
    background: #fff;
    border-color: var(--mtb-border);
}

.mtb-final-box h3 {
    margin: 0 0 12px;
}

.mtb-summary-box dl,
.mtb-final-box dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 6px 14px;
    margin: 10px 0 0;
}

.mtb-summary-box dt,
.mtb-final-box dt {
    font-weight: 800;
}

.mtb-summary-box dd,
.mtb-final-box dd {
    margin: 0;
}

.mtb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.mtb-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 8px 0 14px;
    line-height: 1.45;
}

.mtb-check input {
    margin-top: 5px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.mtb-check a {
    color: var(--mtb-primary);
    font-weight: 800;
}

.mtb-booking-text {
    color: var(--mtb-muted);
    line-height: 1.45;
}

.mtb-success-icon {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--mtb-success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto 18px;
    font-size: 46px;
    font-weight: 800;
}

.mtb-loading {
    opacity: 0.62;
    pointer-events: none;
}

@media (max-width: 760px) {
    .mtb-booking {
        margin: 12px auto;
    }

    .mtb-shell {
        border-radius: 12px;
    }

    .mtb-header,
    .mtb-card {
        padding-left: 16px;
        padding-right: 16px;
    }

	.mtb-stepbar {
		grid-template-columns: repeat(4, 1fr);
		overflow-x: visible;
		padding-left: 12px;
		padding-right: 12px;
		gap: 6px;
	}

	.mtb-stepbar__item { 
		font-size: 12px;
		padding: 7px 4px;
	}

	.mtb-stepbar__item span {
		width: 24px;
		height: 24px;
		font-size: 13px;
	}


    .mtb-booking-grid,
    .mtb-form-grid {
        grid-template-columns: 1fr;
    }

    .mtb-time-panel {
        padding: 14px;
    }

    .mtb-actions,
    .mtb-actions--split {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mtb-button {
        width: 100%;
    }

    .mtb-summary-box dl,
    .mtb-final-box dl {
        grid-template-columns: 92px 1fr;
    }

    .mtb-day,
    .mtb-day-empty {
        min-height: 38px;
    }
}
