
/* ==========================================
   ОБЩИЕ СТИЛИ ТРЕХ ИНФОРМАЦИОННЫХ БЛОКОВ
========================================== */

.product-similar-types,
.product-delivery-partners,
.product-payment-methods {
    width: 100%;
    margin: 0 0 10px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-sizing: border-box;
}

/* Заголовки */

.product-similar-types-title,
.product-delivery-partners-title,
.product-payment-methods-title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #333;
}


/* ==========================================
   ПОХОЖИЕ ТИПЫ ТОВАРОВ
========================================== */

.product-similar-types-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.product-similar-type-link {
    display: inline-block;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.4;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none;
    transition:
        background-color .2s,
        color .2s,
        border-color .2s;
}

.product-similar-type-link:hover {
    color: #fff;
    background: #005bff;
    border-color: #005bff;
    text-decoration: none;
}


/* ==========================================
   ПАРТНЕРЫ ПО ДОСТАВКЕ
========================================== */

.product-delivery-partners-logos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.delivery-partner-logo {
    flex: 1 1 0;
    min-width: 0;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    box-sizing: border-box;
}

.delivery-partner-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}


/* ==========================================
   СПОСОБЫ ОПЛАТЫ
========================================== */

.product-payment-methods-logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
}

.payment-method-logo {
    min-width: 0;
    height: 35px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 5px;
    box-sizing: border-box;
}

.payment-method-logo img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}


/* ==========================================
   КОМПЬЮТЕРЫ
========================================== */

@media (min-width: 768px) {

    .similar-types-desktop,
    .delivery-partners-desktop {
        position: static;
        top: auto;
    }

}


/* ==========================================
   МОБИЛЬНЫЕ УСТРОЙСТВА
========================================== */

@media (max-width: 767.98px) {

    .product-similar-types,
    .product-delivery-partners,
    .product-payment-methods {
        margin: 0 0 10px;
        padding: 9px;
    }

    .product-similar-types-title,
    .product-delivery-partners-title,
    .product-payment-methods-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .product-similar-type-link {
        padding: 5px 8px;
        font-size: 11px;
    }

    .delivery-partner-logo {
        height: 44px;
        padding: 5px;
    }

    .product-delivery-partners-logos {
        gap: 6px;
    }

    .product-payment-methods-logos {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 5px;
    }

    .payment-method-logo {
        height: 32px;
        padding: 3px;
    }
}


/* ==========================================
   МОДАЛЬНОЕ ОКНО
========================================== */

.modal .product-similar-types,
.modal .product-delivery-partners,
.modal .product-payment-methods {
    margin-top: 0;
    margin-bottom: 10px;
}

/* Убираем лишний отступ после последнего блока */

.product-info-blocks > :last-child
.product-similar-types,
.product-info-blocks > :last-child
.product-delivery-partners,
.product-info-blocks > :last-child
.product-payment-methods {
    margin-bottom: 0;
}

/* ==========================================
   СТРАНЫ ДОСТАВКИ
========================================== */

.delivery-countries {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e5e5;
}

.delivery-countries-title {
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
}

.delivery-countries-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px 4px;
}

.delivery-country {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    white-space: nowrap;
}

.delivery-country-flag {
    font-size: 18px;
    line-height: 1;
}

.delivery-country-code {
    font-size: 11px;
    font-weight: 500;
    color: #555;
}

/* Мобильные устройства */


@media (max-width: 767.98px) {

    .delivery-countries {
        margin-top: 10px;
        padding-top: 8px;
    }

    .delivery-countries-title {
        font-size: 11px;
    }

    .delivery-countries-list {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 6px 2px;
    }

    .delivery-country {
        gap: 2px;
    }

    .delivery-country-flag {
        font-size: 16px;
    }

    .delivery-country-code {
        font-size: 9px;
    }
}

