.afd-dealer-widget {
    margin: 32px 0;
}

.afd-dealer-widget__top {
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.afd-dealer-widget__title {
    margin: 0 0 16px;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #004272;
}

.afd-dealer-widget__intro {
    max-width: 760px;
    margin-bottom: 32px;
    color: #010203;
    font-size: 18px;
    line-height: 1;
    font-weight: 400;
    text-align: center;
}

.afd-dealer-widget__search {
    width: 576px;
    position: relative;
}

.afd-dealer-widget__search svg{
    position: absolute;
    top: 18px;
    left: 16px;
}

.afd-dealer-widget__search-label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
}

.afd-dealer-widget__search-input {
    width: 100%;
    height: 56px;
    padding: 0 48px;
    color: #717182;
    background: #F3F3F5;
    border-top: 1px solid #004272;
    border-radius: 8px;
    font-size: 14px;
}

.afd-dealer-widget__search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.afd-dealer-widget__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.afd-dealer-widget__card {
    min-width: 0;
}

.afd-dealer-widget__card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    overflow: hidden;
    align-items: center;
    padding: 24px 24px 12px;
    /* transition-all duration-300 */
    transition-property: all;
    transition-duration: 300ms;
    transition-timing-function: ease-in-out;
}

.afd-dealer-widget__card-link:hover,
.afd-dealer-widget__card-link:focus {
    /* shadow-lg */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                0 4px 6px -4px rgba(0, 0, 0, 0.1);

    /* -translate-y-1 */
    transform: translateY(-0.25rem);
}

.afd-dealer-widget__card-link:hover .afd-dealer-widget__card-btn,
.afd-dealer-widget__card-link:focus .afd-dealer-widget__card-btn {
    background-color: #3d95d6;
}

.afd-dealer-widget__image-wrap {
    aspect-ratio: 1;
    width: 48px;
    height: 48px;
    margin-bottom: 50px;
}

.afd-dealer-widget__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afd-dealer-widget__image--placeholder {
    width: 100%;
    height: 100%;
}

.afd-dealer-widget__content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.afd-dealer-widget__name {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
    color: #004272;
    text-align: center;
}

.afd-dealer-widget__description {
    color: #010203;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-align: center;
}

.afd-dealer-widget__description [data-content-type=row]>div{
    margin-bottom: 0 !important;
}

.afd-dealer-widget__card-btn{
    background: #004272;
    color: white;
    width: 100%;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 50px;
    line-height: 20px;
}

.afd-dealer-widget__description p:last-child {
    margin-bottom: 0;
}

.afd-dealer-widget__meta {
    margin-top: 12px;
    color: #4A5565;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    line-height: 20px;
}

.afd-dealer-widget__pager {
    margin-top: 28px;
}

.afd-dealer-widget__empty {
    padding: 24px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

@media (max-width: 1024px) {
    .afd-dealer-widget__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .afd-dealer-widget__title {
        font-size: 26px;
    }

    .afd-dealer-widget__search {
        max-width: none;
    }

    .afd-dealer-widget__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .afd-dealer-widget__search {
        width: 100%;
    }
}
