/* =========================================================
   TOUCHMEDICAL — DELIVERY & PAYMENT PAGE
========================================================= */

.tm-delivery-page {
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.tm-delivery-content {
    width: 100%;
    color: var(--tm-color-text, #111111);
    font-family: var(--tm-font, 'Manrope', sans-serif);
}


/* =========================================================
   BREADCRUMBS
========================================================= */

.tm-delivery-main > .tm-container {
    padding-top: 32px;
}

.tm-delivery-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin: 0 0 24px;

    color: #66706A;

    font-family: var(--tm-font);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
}

.tm-delivery-breadcrumbs a {
    color: inherit !important;
    text-decoration: none !important;
}

.tm-delivery-breadcrumbs a:hover {
    color: var(--tm-color-button) !important;
}

.tm-delivery-breadcrumbs > span[aria-hidden="true"] {
    color: #9BA39D;
}


/* =========================================================
   PAGE TITLE
========================================================= */

.tm-delivery-page-title {
    margin: 0 0 27px !important;

    color: var(--tm-color-text) !important;

    font-family: var(--tm-font) !important;
    font-size: 40px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
}


/* =========================================================
   CONTENT SECTIONS
========================================================= */

.tm-delivery-section {
    margin: 0;
}

.tm-delivery-payment {
    margin-top: 38px;
}

.tm-delivery-section-title {
    margin: 0 0 18px !important;

    color: var(--tm-color-text) !important;

    font-family: var(--tm-font) !important;
    font-size: 34px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
}

.tm-delivery-section-description {
    margin: 0 0 20px;

    color: #66706A;

    font-family: var(--tm-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}


/* =========================================================
   DELIVERY / PAYMENT LIST
========================================================= */

.tm-delivery-list {
    display: flex;
    flex-direction: column;
    gap: 18px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.tm-delivery-list-item {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 13px;

    margin: 0;
    padding: 0;
}

.tm-delivery-check-icon {
    display: block;

    width: 16px;
    height: 20px;

    margin-top: 2px;

    object-fit: contain;
}

.tm-delivery-list-content {
    min-width: 0;
}

.tm-delivery-list-content h3 {
    margin: 0 0 6px !important;

    color: var(--tm-color-text) !important;

    font-family: var(--tm-font) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
}

.tm-delivery-list-content p {
    margin: 0;

    color: var(--tm-color-text);

    font-family: var(--tm-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
}


/* =========================================================
   DELIVERY PAGE — CONTACT DETAILS LAYOUT
   Все визуальные стили берутся из footer.css.
========================================================= */

/* Desktop: phone + address, email on the next row */

.tm-page-delivery .tm-footer-contact-details {
    display: grid;

    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(0, 1.2fr);

    grid-template-areas:
        "phone address"
        "email .";

    gap: 18px 24px;
}

.tm-page-delivery .tm-footer-contact-details > :nth-child(1) {
    grid-area: phone;
}

.tm-page-delivery .tm-footer-contact-details > :nth-child(2) {
    grid-area: address;
}

.tm-page-delivery .tm-footer-contact-details > :nth-child(3) {
    grid-area: email;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    /* PAGE */

    .tm-delivery-main > .tm-container {
        padding-top: 17px;
    }


    /* BREADCRUMBS */

    .tm-delivery-breadcrumbs {
        gap: 7px;
        margin-bottom: 22px;

        font-size: 12px;
    }


    /* PAGE TITLE */

    .tm-delivery-page-title {
        margin-bottom: 23px !important;

        font-size: 26px !important;
        line-height: 1.3 !important;

        text-align: center;
    }


    /* SECTIONS */

    .tm-delivery-section-title {
        margin-bottom: 18px !important;

        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    .tm-delivery-section-description {
        margin-bottom: 19px;

        font-size: 14px;
        line-height: 1.45;
    }

    .tm-delivery-payment {
        margin-top: 32px;
    }


    /* LIST */

    .tm-delivery-list {
        gap: 20px;
    }

    .tm-delivery-list-item {
        grid-template-columns: 15px minmax(0, 1fr);
        gap: 11px;
    }

    .tm-delivery-check-icon {
        width: 15px;
        height: 19px;
    }

    .tm-delivery-list-content h3 {
        margin-bottom: 6px !important;

        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    .tm-delivery-list-content p {
        font-size: 14px;
        line-height: 1.45;
    }


    /* =====================================================
       SHARED FOOTER CONTACT — MOBILE ORDER
    ===================================================== */

    /*
     * Раскладываем содержимое существующего contact-info
     * на уровне общего контейнера, чтобы форма шла раньше
     * контактных данных, как в макете.
     */

    .tm-page-delivery .tm-footer-contact-layout {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;

        text-align: center;
    }

    .tm-page-delivery .tm-footer-contact-info {
        display: contents;
    }

    .tm-page-delivery .tm-footer-contact-title {
        order: 1;
    }

    .tm-page-delivery .tm-footer-contact-description {
        order: 2;
    }

    .tm-page-delivery .tm-footer-form-card {
        order: 3;
    }

    .tm-page-delivery .tm-footer-contact-details {
        order: 4;

        display: flex;
        flex-direction: column;
        gap: 24px;

        width: calc(100% + 32px);
        margin: 0 -16px;
    }

}