/* Adapt OSB 11 markup to the original Otto e Mezzo template design.
   Original desktop/smartphone CSS supplies fonts, spacing and layout. */
body.osb-booking #oem-terrace-notice { clear: both; }
body.osb-booking #oem-terrace-notice[hidden],
body.osb-booking #oem-terrace-notice [hidden],
body.osb-booking .oem-service-panel .employeetabs[hidden] { display: none !important; }

/* Original .bookingformdiv/.btn-inverse rules now apply to the new button. */
body.osb-booking .oem-service-panel .service-header {
    display: block; padding: 0; margin: 0; border: 0; background: none; box-shadow: none;
}
body.osb-booking .oem-service-panel .service-header::after { display: none; }
body.osb-booking .oem-location-toggle {
    display: block; margin: 0; border: 0; line-height: inherit; text-align: left;
    box-shadow: none; white-space: normal;
}
body.osb-booking .oem-location-toggle .service-title,
body.osb-booking .oem-location-toggle .service-date {
    display: inline; margin: 0; padding: 0; font: inherit; letter-spacing: inherit; color: inherit;
}
body.osb-booking .oem-location-toggle:focus-visible { outline: 2px solid #620f13; outline-offset: -2px; }

/* Keep configured time-slot state colours and original template dimensions. */
body.osb-booking #maincontentdiv .timeslotdiv {
    display: block; margin: 0; padding: 0; width: 100%; max-height: none; overflow: visible;
}
body.osb-booking #maincontentdiv .divtimeslots {
    display: inline-block; text-align: left; border: 0 !important; border-radius: 10px;
    width: 100%; padding: 5px 35px !important; margin: 0 0 5px !important; box-sizing: border-box;
    font-size: 1.1em; font-weight: 400; line-height: 1.9; letter-spacing: .02em; box-shadow: none; transform: none;
    color: var(--osb-timeslot-secondary-color, #fff);
    background: var(--osb-timeslot-bg-color, #797979) !important;
}
body.osb-booking #maincontentdiv .divtimeslots:has(input:checked) {
    color: var(--osb-timeslot-selected-secondary-color, #fff);
    background: var(--osb-timeslot-selected-bg-color, #ededed) !important;
}
body.osb-booking #maincontentdiv .divtimeslots::before { display: none; }
body.osb-booking #maincontentdiv .divtimeslots .timeslotlabel {
    display: inline; margin: 0; padding: 0; font: inherit; color: inherit; letter-spacing: inherit;
}

/* Match the live original calendar, without new gradients or raised cells. */
body.osb-booking #calendardetails .calendar-header-modern-rounded {
    padding: 0; border: 0; border-radius: 0; background: none;
}
body.osb-booking #calendardetails .calendar-header-modern {
    padding: 17px 35px; margin: 0; border: 0; border-radius: 0;
    background: #620f13; color: #fff; box-shadow: none;
}
body.osb-booking #calendardetails .calendar-nav-wrapper {
    display: grid; grid-template-columns: 20% 60% 20%; align-items: center;
    min-height: 29px; margin: 0; padding: 0; background: none;
}
body.osb-booking #calendardetails .calendar-header-text,
body.osb-booking #calendardetails .calendar-month,
body.osb-booking #calendardetails .calendar-year {
    margin: 0; padding: 0; font-size: 1.1rem; font-weight: 700; line-height: 1.5;
    color: #fff; letter-spacing: normal; text-transform: none;
}
body.osb-booking #calendardetails .calendar-header-text { display: flex; gap: 12px; justify-content: center; }
body.osb-booking #calendardetails .calendar-nav-btn { text-align: center; }
body.osb-booking #calendardetails .calendar-nav-link {
    display: inline; margin: 0; padding: 0; width: auto; height: auto;
    border: 0; background: none; box-shadow: none; transform: none;
}
body.osb-booking #calendardetails .calendar-nav-link img {
    width: 16px; height: auto; padding: 0; vertical-align: text-bottom;
}
body.osb-booking #calendardetails .visually-hidden {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
body.osb-booking #calendardetails table.calendar_date_numbers {
    display: table; width: 100%; padding: 30px 33px; margin: 0; table-layout: fixed;
    border-collapse: separate; border-spacing: 2px; box-sizing: border-box; border: 0; background: none;
}
body.osb-booking #calendardetails .calendar_date_numbers th,
body.osb-booking #calendardetails .calendar_date_numbers td {
    padding: 3px 0 !important; border: 0; background: none; font-size: 1rem; line-height: 24px;
    letter-spacing: normal; text-align: center; text-transform: none; color: #190203;
}
body.osb-booking #calendardetails .calendar_date_numbers th { font-weight: 700; }
body.osb-booking #calendardetails .calendar_date_numbers td > div {
    display: block; width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 4px 10px;
    border: 0 !important; border-radius: 10px; font-size: 1rem; font-weight: 400; line-height: 24px;
    background: #ededed !important; color: #101010 !important;
    box-shadow: none !important; transform: none !important; transition: color .25s, background-color .25s;
}
body.osb-booking #calendardetails .calendar_date_numbers .calendar_normal_style,
body.osb-booking #calendardetails .calendar_date_numbers .calendar_currentdate_style {
    background: #888 !important; color: #fff !important;
}
body.osb-booking #calendardetails .calendar_date_numbers .calendar_activate_style,
body.osb-booking #calendardetails .calendar_date_numbers .calendar_normal_style:hover,
body.osb-booking #calendardetails .calendar_date_numbers .calendar_currentdate_style:hover {
    background: #620f13 !important; color: #fff !important;
}

/* Restore the original two-step line, retaining OSB's current/completed state. */
body.osb-booking .osb-progress-container {
    float: left; clear: both; width: 100%; margin: 0; padding: 0; border: 0;
    border-radius: 0; background: none; box-shadow: none;
}
body.osb-booking .osb-progress-steps {
    display: flex; width: 100%; padding: 0; gap: 0; align-items: stretch; overflow: visible;
}
body.osb-booking .osb-progress-steps::after,
body.osb-booking .osb-progress-steps::before,
body.osb-booking .osb-step-circle,
body.osb-booking .osb-progress-step::before { display: none; }
body.osb-booking .osb-progress-step {
    position: relative; display: block; flex: 1 1 0; max-width: none; min-width: 0; margin: 0 0 20px; padding: 0 0 10px;
    border: 0; border-bottom: 4px solid #ddd; border-radius: 0;
    color: #ccc; background: none; text-align: center;
}
body.osb-booking .osb-progress-step::after {
    content: ''; position: absolute; left: calc(50% - 12px); bottom: -12px;
    width: 24px; height: 24px; border: 0; border-radius: 50%; background: #ddd;
}
body.osb-booking .osb-step-title {
    margin: 0; font-size: 1.1em; font-weight: 700; line-height: 1.9;
    color: inherit; letter-spacing: .02em; text-transform: none; white-space: normal; overflow: visible; text-overflow: clip;
}
body.osb-booking .osb-progress-step.current,
body.osb-booking .osb-progress-step.completed { border-bottom-color: #620f13; color: #101010; }
body.osb-booking .osb-progress-step.current::after,
body.osb-booking .osb-progress-step.completed::after { background: #620f13; }

/* Original form column, without the added centred 680px layout. */
body.osb-booking #osbcontainer input,
body.osb-booking #osbcontainer select,
body.osb-booking #osbcontainer textarea { max-width: 100%; }
body.osb-booking.form #bookingForm { width: 100%; padding: 0; box-sizing: border-box; }
body.osb-booking.form .loginform .linedetails {
    margin: 0 !important; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none;
}
body.osb-booking.form .loginform .linedetails > div {
    width: 100%; max-width: 100%; padding: 0; box-sizing: border-box;
}
body.osb-booking.form .loginform .linedetails > div:has(.boldtext):not(:has(input, select, textarea)) { display: none; }
@media (min-width: 980px) {
    body.osb-booking:not(.oem-mobile) #calendardivleft { flex: 0 0 65%; max-width: 65%; }
    body.osb-booking:not(.oem-mobile) #maincontentdiv { flex: 0 0 35%; max-width: 35%; }
}
body.osb-booking.oem-mobile #calendardetails .calendar-header-modern { padding-left: 30px; padding-right: 30px; }
body.osb-booking.oem-mobile #calendardetails table.calendar_date_numbers { padding: 10px 13px; }
body.osb-booking.oem-mobile #calendardivleft,
body.osb-booking.oem-mobile #maincontentdiv { flex: 0 0 100%; max-width: 100%; }

body.osb-booking .osb-progress-step.current .osb-step-title,
body.osb-booking .osb-progress-step.completed .osb-step-title { color: inherit; }
body.osb-booking #calendardetails .calendar-nav-link img { visibility: hidden; }
body.osb-booking #calendardetails .calendar-nav-next .calendar-nav-link {
    background: url(../images/calendar-next.png) center / 16px auto no-repeat;
}
body.osb-booking #calendardetails .calendar-nav-prev .calendar-nav-link {
    background: url(../images/calendar-previous.png) center / 16px auto no-repeat;
}
body.osb-booking.form .authorizeform .calendar-header-modern-rounded,
body.osb-booking.form .authorizeform .calendar-header-modern,
body.osb-booking.form .authorizeform .calendar-header-text {
    display: block; margin: 0; padding: 0; border: 0; border-radius: 0;
    background: transparent; box-shadow: none; color: #101010; text-align: left;
    font: 700 1.4rem / 24px 'PT Sans', sans-serif; letter-spacing: .03em;
}
body.osb-booking.form .oem-default-checkout-note { display: none; }
body.osb-booking.form .loginform input,
body.osb-booking.form .loginform select,
body.osb-booking.form .loginform textarea { line-height: normal; }

body.osb-booking.oem-mobile #maincontentdiv .divtimeslots {
    font-size: .9em; padding: 5px 15px !important;
}

body.osb-booking.form #btn-submit {
    display: block; width: 100% !important; max-width: none; box-shadow: none; margin: 0 !important; padding: 20px 35px !important;
    border: 0; border-radius: 10px !important; background: #620f13;
    font: 600 1.1rem / 1.4 'PT Sans', sans-serif !important; color: #fff; cursor: pointer;
}
body.osb-booking.form #btn-submit:hover { background: #470a0d; }
body.osb-booking #maincontentdiv .sumarry_div > div {
    padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important;
}
body.osb-booking #maincontentdiv .sumarry_div > div > div:first-child {
    font-size: inherit !important; color: inherit !important; text-transform: none !important;
    letter-spacing: inherit !important; padding-top: 5px; margin: 0 !important;
}
body.osb-booking #maincontentdiv .sumarry_div > div > div:last-child,
body.osb-booking #maincontentdiv .sumarry_div span {
    display: inline !important; font-size: inherit !important; color: inherit !important;
    letter-spacing: inherit !important; font-weight: 400 !important;
}
body.osb-booking.form .authorizeform .calendar-nav-wrapper { margin: 0; }

body.osb-booking.oem-mobile #oem-terrace-notice { display: none; }
body.osb-booking #maincontentdiv .addtocartform input[type='button'] {
    width: 100%; max-width: none; border: 0; border-radius: 10px !important;
    padding: 20px 35px !important; background: #620f13 !important; box-shadow: none;
    color: #fff !important; font: 600 1.1rem / 1.4 'PT Sans', sans-serif !important;
}
body.osb-booking #maincontentdiv .addtocartform input[type='button']:hover { background: #470a0d !important; }
body.osb-booking.oem-mobile #maincontentdiv .addtocartform input[type='button'] { padding: 20px 30px !important; }
body.osb-booking #maincontentdiv .divtimeslots-disabled { opacity: 1; }
