
/* ==========================================
   TAXI GO DELIVERY — DESKTOP
========================================== */

.delivery-app {
    background: #101114;
}

.delivery-sidebar {
    width: 410px;
    min-width: 410px;
}

.delivery-sidebar .sidebar-content {
    padding-bottom: 25px;
}

.delivery-sidebar .sidebar-footer {
    margin-top: 25px;
}

.delivery-label {
    margin-top: 25px;
}

.delivery-types {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.delivery-type {
    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-width: 0;
    min-height: 105px;
    padding: 13px;

    background: #22242b;
    border: 1px solid #373941;
    border-radius: 12px;

    color: white;
    text-align: left;
    cursor: pointer;

    transition: .2s ease;
}

.delivery-type:hover {
    border-color: #ffd633;
    transform: translateY(-2px);
}

.delivery-type.active {
    background: rgba(255,214,51,.11);
    border-color: #ffd633;
    box-shadow: inset 0 0 0 1px rgba(255,214,51,.08);
}

.delivery-type > span {
    margin-bottom: 9px;
    font-size: 24px;
}

.delivery-type strong {
    font-size: 12px;
    font-weight: 800;
}

.delivery-type small {
    margin-top: 5px;
    color: #aaa;
    font-size: 10px;
}

/* ==========================================
   ФОРМА ПОСЫЛКИ
========================================== */

.package-fields {
    margin-top: 15px;
}

.package-fields label {
    display: block;
    margin: 15px 0 7px;

    color: #a8a9ad;
    font-size: 10px;
    font-weight: 700;
}

.package-fields input {
    width: 100%;
    height: 45px;
    padding: 0 12px;

    background: #25272e;
    border: 1px solid #393b43;
    border-radius: 9px;
    outline: none;

    color: white;
    font-family: inherit;
    font-size: 13px;
}

.package-fields input:focus {
    border-color: #ffd633;
    box-shadow: 0 0 0 3px rgba(255,214,51,.08);
}

.package-fields input::placeholder {
    color: #777a83;
}

.package-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.package-row > div {
    min-width: 0;
}

.package-row label {
    margin-top: 0;
}

.package-sizes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
}

.package-size {
    min-width: 0;
    min-height: 43px;
    padding: 8px 4px;

    background: #25272e;
    border: 1px solid #393b43;
    border-radius: 8px;

    color: #ccc;
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;

    transition: .2s;
}

.package-size.active {
    color: #ffd633;
    border-color: #ffd633;
    background: #39331c;
}

/* ==========================================
   ВТОРОЙ ЭТАП
========================================== */

.back-button {
    display: flex;
    align-items: center;
    gap: 9px;

    margin-top: 8px;
    padding: 9px 0;

    background: transparent;
    border: none;

    color: #c5c8ce;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.back-button span {
    color: #ffd633;
    font-size: 20px;
}

.back-button:hover {
    color: #ffd633;
}

.details-welcome {
    margin-top: 20px;
}

.details-summary {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    margin-top: 22px;
    padding: 15px;

    background: #22252b;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}

.details-summary > div {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.details-summary small {
    color: #9298a3;
    font-size: 9px;
    font-weight: 800;
}

.details-summary strong {
    color: #ffd633;
    font-size: 13px;
}

.details-note {
    margin-top: 13px;
    color: #858b96;
    font-size: 10px;
    line-height: 1.6;
}

#details-step[hidden],
#order-step[hidden] {
    display: none !important;
}

/* ==========================================
   КНОПКИ
========================================== */

.delivery-sidebar .order-btn {
    margin-top: 22px;
}

.delivery-sidebar .order-btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

/* ==========================================
   МОБИЛЬНАЯ ВЕРСИЯ
========================================== */

@media (max-width: 800px) {

    html,
    body {
        width: 100%;
        height: 100%;
        min-height: 100%;
        overflow: hidden !important;
    }

    body {
        overscroll-behavior: none;
    }

    .delivery-app {
        position: relative;
        display: block;

        width: 100%;
        height: 100dvh;
        min-height: 0;

        overflow: hidden;
    }

    /* Карта занимает весь экран */

    .delivery-app .map-section {
        position: fixed;
        inset: 0;
        z-index: 1;

        display: flex;
        width: 100%;
        height: 100dvh;
        min-height: 0;
    }

    .delivery-app .map-top {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 5;

        min-height: 61px;
        padding: 9px 14px;

        background: rgba(21,23,27,.96);
    }

    .delivery-app .map-container {
        position: absolute;
        inset: 0;
        height: 100%;
    }

    .delivery-app .map-bottom {
        display: none;
    }

    .delivery-app .map-instruction {
        bottom: auto;
        top: 76px;

        padding: 9px 12px;
        font-size: 9px;
    }

    .delivery-app .map-floating-card {
        display: none;
    }

    .delivery-app .map-status {
        padding: 7px 9px;
        font-size: 9px;
    }

    .delivery-app .map-date {
        display: none;
    }

    /* Панель заказа поверх карты */

    .delivery-app .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 20;

        display: flex;
        flex-direction: column;

        width: 100%;
        min-width: 0;
        height: auto;
        max-height: 76dvh;

        overflow-x: hidden;
        overflow-y: auto;

        background: #15171b;
        border: 1px solid rgba(255,255,255,.1);
        border-bottom: none;
        border-radius: 23px 23px 0 0;

        box-shadow: 0 -10px 40px rgba(0,0,0,.3);

        scrollbar-width: thin;
        overscroll-behavior: contain;
    }

    .delivery-app .sidebar-header {
        flex-shrink: 0;
        padding: 17px 18px 0;
    }

    .delivery-app .logo-icon {
        width: 39px;
        height: 39px;
        border-radius: 12px;
        font-size: 20px;
    }

    .delivery-app .logo-text {
        font-size: 21px;
    }

    .delivery-app .city {
        margin-top: 12px;
        padding: 9px 11px;
    }

    .delivery-app .city-icon {
        width: 30px;
        height: 30px;
    }

    .delivery-app .sidebar-content {
        padding: 0 18px 22px;
    }

    .delivery-app .welcome {
        margin-top: 20px;
    }

    .delivery-app .welcome h1 {
        font-size: 29px;
        line-height: 1.08;
    }

    .delivery-app .welcome p {
        margin-top: 8px;
        font-size: 11px;
    }

    .delivery-app .section-label {
        margin-top: 19px;
        margin-bottom: 10px;
    }

    .delivery-app .delivery-types {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .delivery-app .delivery-type {
        align-items: center;
        justify-content: center;

        min-height: 91px;
        padding: 8px 3px;

        text-align: center;
        border-radius: 11px;
    }

    .delivery-app .delivery-type > span {
        margin-bottom: 6px;
        font-size: 22px;
    }

    .delivery-app .delivery-type strong {
        font-size: 10px;
        line-height: 1.3;
    }

    .delivery-app .delivery-type small {
        margin-top: 5px;
        font-size: 9px;
    }

    .delivery-app .address-section-label {
        margin-top: 19px;
    }

    .delivery-app .address-box {
        padding: 12px;
        border-radius: 12px;
    }

    .delivery-app .address-content input {
        height: 43px;
        font-size: 13px;
    }

    .delivery-app .location-btn {
        width: 36px;
        height: 36px;
    }

    .delivery-app .map-hint {
        margin-top: 10px;
        font-size: 10px;
    }

    .delivery-app .price-result {
        margin-top: 13px;
        padding: 13px;
    }

    .delivery-app .price {
        font-size: 27px;
    }

    .delivery-app .order-btn {
        min-height: 51px;
        margin-top: 14px;
        border-radius: 11px;
        font-size: 13px;
    }

    .delivery-app .sidebar-footer {
        display: none;
    }

    /* Второй экран */

    .delivery-app .details-welcome {
        margin-top: 14px;
    }

    .delivery-app .details-summary {
        margin-top: 15px;
        padding: 12px;
    }

    .delivery-app .package-fields input {
        height: 46px;
        font-size: 14px;
    }

    .delivery-app .package-size {
        min-height: 44px;
        font-size: 10px;
    }

    .delivery-app .back-button {
        margin-top: 2px;
    }

    .delivery-app .details-note {
        padding-bottom: 5px;
    }

    /* Подсказки адресов */

    .delivery-app .suggestions {
        max-height: 190px !important;
    }
}

/* ==========================================
   МАЛЕНЬКИЕ ТЕЛЕФОНЫ
========================================== */

@media (max-width: 380px) {

    .delivery-app .sidebar-header {
        padding-left: 14px;
        padding-right: 14px;
    }

    .delivery-app .sidebar-content {
        padding-left: 14px;
        padding-right: 14px;
    }

    .delivery-app .delivery-type {
        min-height: 85px;
    }

    .delivery-app .delivery-type strong {
        font-size: 9px;
    }

    .delivery-app .delivery-type small {
        font-size: 8px;
    }

    .delivery-app .welcome h1 {
        font-size: 27px;
    }

    .delivery-app .package-sizes {
        gap: 4px;
    }

    .delivery-app .package-size {
        font-size: 9px;
    }
}

/* ==========================================
   ПК С НЕВЫСОКИМ ЭКРАНОМ
========================================== */

@media (min-width: 801px) and (max-height: 800px) {

    .delivery-sidebar .sidebar-header {
        padding-top: 17px;
    }

    .delivery-sidebar .city {
        margin-top: 15px;
    }

    .delivery-sidebar .welcome {
        margin-top: 20px;
    }

    .delivery-sidebar .welcome h1 {
        font-size: 32px;
    }

    .delivery-sidebar .delivery-type {
        min-height: 91px;
    }
}

/* ==========================================
   ИСПРАВЛЕНИЕ МОБИЛЬНОЙ КАРТЫ
========================================== */

@media (max-width: 800px) {

    html,
    body {
        width: 100%;
        height: 100%;
        overflow: hidden !important;
    }

    .delivery-app {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    /* Карта занимает верхнюю часть экрана */

    .delivery-app .map-section {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        height: 100%;
        min-height: 0;
    }

    .delivery-app .map-top {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 58px;
        min-height: 58px;
    }

    .delivery-app .map-container {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

    /* Нижняя панель */

    .delivery-app .sidebar {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;

        width: 100%;
        min-width: 0;

        height: 35dvh;
        max-height: 35dvh;
        min-height: 220px;

        overflow-x: hidden;
        overflow-y: auto;

        border-radius: 20px 20px 0 0;
    }

    .delivery-app .sidebar-header {
        padding-top: 12px;
    }

    .delivery-app .sidebar-content {
        padding-bottom: 25px;
    }

    /* Немного уменьшаем элементы первого экрана */

    .delivery-app .welcome {
        margin-top: 13px;
    }

    .delivery-app .welcome h1 {
        font-size: 25px;
    }

    .delivery-app .welcome p {
        margin-top: 5px;
    }

    .delivery-app .city {
        margin-top: 9px;
    }

    .delivery-app .section-label {
        margin-top: 13px;
        margin-bottom: 8px;
    }

    .delivery-app .delivery-type {
        min-height: 76px;
    }

    .delivery-app .delivery-type > span {
        font-size: 19px;
    }

    .delivery-app .address-box {
        padding: 10px;
    }

    .delivery-app .price-result {
        margin-top: 10px;
    }

    .delivery-app .order-btn {
        margin-top: 10px;
    }

    .delivery-app .sidebar-footer {
        display: none;
    }

    .delivery-app .map-bottom {
        display: none;
    }

    .delivery-app .map-instruction {
        top: 68px;
        bottom: auto;
    }
}

/* Очень маленькие экраны */

@media (max-width: 380px) {
    .delivery-app .sidebar {
        height: 39dvh;
        max-height: 39dvh;
    }

    .delivery-app .delivery-type {
        padding: 6px 2px;
    }

    .delivery-app .delivery-type strong {
        font-size: 9px;
    }
}
