html, body{
    margin:0;
    width:100%;
    height:100dvh;
    overflow:hidden;

    background-color: var(--bg-color-main);
}

#viewport{
    width:100%;
    height:100dvh;
}

#mobileHint{
    display:none;
}

@media (pointer:coarse){
    #mobileHint{
        display:flex;
    }
}

.mobile-hint{
    position:fixed;
    inset:0;

    display:flex;
    justify-content:center;
    align-items:center;

    background: rgb(var(--bg-color-main) / .55);
    
    z-index:9999;
}

.mobile-hint-box{
    width:calc(100% - 2rem);
    max-width:24rem;

    padding:1rem 1rem;

    background-color: var(--bg-color-main);
    border-radius: var(--radius-main);
    text-align:center;
    box-sizing:border-box;
}
 
.mobile-hint .gesture{
    font-size: 2.2rem;
    margin-bottom:1rem;
}

.mobile-hint .gesture img {
    width: 3rem;
    height: auto;
}

.mobile-hint .title{
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.mobile-hint .text{
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 1rem;
}

.mobile-hint button{
    width:100%;
    height:3rem;

    font-size:1.125rem;
    font-weight:600;

    border:none;
    border-radius: var(--radius-main);

    background-color: var(--bg-color-second);
    color:#fff;
}

.sheet-loading{
    text-align:center;
    padding:40px 20px;
}


/* ------ слайдер ------- */

/* ---------- Bottom Sheet ---------- */

#bookingSheet{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height: 100vh;
    display:flex;
    flex-direction:column;

    /*background:#fff;*/
    background-color: var(--bg-color-main);
    border-radius: var(--radius-main) var(--radius-main) 0 0;
    transform:translateY(calc(100% - 2.25rem));
    transition:transform .25s ease;
    touch-action:none;
    overflow:hidden;
    z-index:9999;
}

@media (pointer: coarse) and (orientation: landscape) {
    #bookingSheet {
        display: none;
    }
}

#bookingSheet.show{
    transform:translateY(0);
}

/* ---------- Ручка ---------- */

.sheet-handle{
    flex:0 0 auto;

    width:4rem;
    height:.375rem;

    margin:.75rem auto;

    background-color:#cfcfcf;
    border-radius:999px;
}

/* ---------- Контент ---------- */

#sheetBody{
    flex:1;
    display:flex;
    flex-direction:column;
    overflow-y:auto;
    padding:1rem;
    padding-bottom:max(
        1rem,
        env(safe-area-inset-bottom)
    );
    box-sizing:border-box;
}

#sheetBody h2{
    margin:0 0 1rem;
    text-align:center;
    font-size:1.4rem;
    font-weight:700;
}

#sheetBody p{
    margin:0 0 1rem;
    font-size:1rem;
    line-height:1.5;
    color:#555;
}

/* ---------- Поле телефона ---------- */

#sheetInputPhone{
    width:100%;
    height:3.5rem;
    padding:0 1rem;
    font-size:1.1rem;
    border:.125rem solid #ddd;
    border-radius: var(--radius-main);
    box-sizing:border-box;
}

/* ---------- Подтверждение ---------- */



.sheet-confirm, .sheet-success{
    display:flex;
    flex-direction:column;
    flex:1;
}

.sheet-user{
    margin:.5rem 0;
    text-align:center;
    font-size:1.2rem;
    font-weight:600;
}

.sheet-description{
    margin-bottom: 1rem;
    text-align: center;
    color: #666;
    line-height: 1.5;
}

.sheet-info{
    margin:20px 0;
    padding:15px;
    border:1px solid #e5e5e5;
    border-radius:10px;
    background:#f8f9fb;
}

.sheet-card{
    background-color: var(--bg-color-primary);
    border-radius: var(--radius-main);
    padding: 1rem;
    margin-bottom: 1rem;
}

.sheet-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .8rem 0;
    font-size: 1rem;
}

.sheet-row:not(:last-child){
    border-bottom:1px solid #e5e5e5;
}

.sheet-row strong{
    color: #1976b2;
}

/* ---------- Кнопки ---------- */

.sheet-actions{
    display: flex;
    gap: .75rem;
    padding-top: 1rem;
}

.sheet-btn{
    height: 3.5rem;
    border: none;
    border-radius: var(--radius-main);
    font-size: 1rem;
    font-weight: 600;
}

#sheetBtnReserve.sheet-btn.sheet-confirm-btn.sheet-btn-primary{
    background-color: var(--bg-color-second);
    color: #fff;
}

.sheet-btn-primary {
    background-color: var(--bg-color-second);
    color: #fff;
}
#sheetBtnCloseError {
    background-color: var(--bg-color-second);
    color: #fff;
}

/* ---------- Ошибка ---------- */

.sheet-error{
    display: flex;
    flex-direction: column;
    flex: 1;
}

.sheet-error .modal-btn{
    margin-top: auto;
    width: 100%;
    height: 3.5rem;
    border: none;
    border-radius: var(--radius-main);
}

:root {
  --bg-color-main: #f0f0f0;
  --bg-color-primary: #ffffff;
  --bg-color-second: #2196f3;

  --radius-main: .75rem;
}