.fd-original-card-hidden {
    display: none !important;
}

.restaurant-block > .fd-restaurant-card {
    display: grid;
    width: calc(100% - 28px);
    height: 178px;
    margin: 0 14px 12px;
    color: #162033;
    text-decoration: none !important;
    box-sizing: border-box;
}

.fd-restaurant-card {
    position: relative;
    grid-template-columns: minmax(0, 43%) minmax(0, 57%);
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(20, 30, 48, .07);
    text-align: left;
    transform: translateZ(0);
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.fd-restaurant-card:active { transform: scale(.994); }

.fd-card__visual {
    position: relative;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    background: #eef0f2;
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

.fd-card__image {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.fd-card__shade {
    display: none;
}

.fd-card__badge,
.fd-card__offer {
    position: absolute;
    z-index: 4;
    top: 10px;
    max-width: calc(100% - 20px);
    overflow: hidden;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .3px;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.fd-card__visual.fd-has-veg .fd-card__badge {
    right: 10px;
    left: auto;
}

.fd-card__badge {
    left: 10px;
    padding: 7px 9px;
    background: rgba(22, 27, 34, .9);
    color: #fff;
}

.fd-card__offer {
    right: 10px;
    padding: 7px 9px;
    background: #facb04;
    color: #312600;
}

.fd-card__veg-mark {
    position: absolute;
    z-index: 5;
    top: 10px;
    left: 10px;
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .15);
}

.fd-card__dots {
    position: absolute;
    z-index: 5;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 5px;
    align-items: center;
    height: 6px;
    pointer-events: none;
}

.fd-card__dot {
    position: relative;
    display: block;
    width: 5px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .68);
    transition: width 160ms ease, background-color 160ms ease;
}

.fd-card__dot.is-active {
    width: 23px;
    background: rgba(255, 255, 255, .55);
}

.fd-card__dot.is-active::after {
    position: absolute;
    inset: 0;
    width: 0;
    border-radius: inherit;
    background: #facb04;
    content: "";
}

.fd-card__dots--static .fd-card__dot,
.fd-card__dots--static .fd-card__dot.is-current {
    width: 5px;
    height: 5px;
}

.fd-card__dots--static .fd-card__dot.is-current {
    background: #facb04;
}

.fd-card__dots--static .fd-card__dot::after {
    display: none;
}

.fd-is-autoplaying .fd-card__dot.is-active::after {
    animation: fd-carousel-progress 3.6s linear forwards;
}

@keyframes fd-carousel-progress {
    from { width: 0; }
    to { width: 100%; }
}

.restaurant-block > .fd-restaurant-card > .fd-card__body {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: stretch !important;
    padding: 10px 10px 8px;
    box-sizing: border-box;
}

.restaurant-block > .fd-restaurant-card > .fd-card__body--no-status {
    justify-content: flex-start !important;
}

.fd-card__status {
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 4px;
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10.5px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-card__status i { margin-right: 4px; }
.fd-card__status--opening { background: #ebf8ef; color: #16833b; }
.fd-card__status--closing { background: #fff0f0; color: #c91d27; }

.fd-card__title-row { display: block; min-width: 0; }

.fd-card__title {
    display: -webkit-box;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #121b2d;
    font-size: clamp(14.5px, 4.15vw, 17px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.fd-card__description {
    min-width: 0;
    margin: 3px 0 0;
    overflow: hidden;
    color: #737d91;
    font-size: 10.8px;
    font-weight: 600;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-card__rating-row {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.fd-card__rating {
    flex: 0 0 auto;
    padding: 5px 7px;
    border-radius: 7px;
    background: #159447;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.fd-card__reviews {
    min-width: 0;
    overflow: hidden;
    color: #697181;
    font-size: 11.3px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-card__meta {
    display: flex;
    min-width: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 9px;
    margin-top: 5px;
    color: #4f5868;
    font-size: 10.8px;
    font-weight: 700;
    line-height: 1.2;
}

.fd-card__meta-item {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-card__meta-item i {
    width: 14px;
    color: #374151;
    font-size: 12px;
    text-align: center;
}

.fd-card__feature {
    display: flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    margin-top: 7px;
    padding: 5px 9px 5px 6px;
    border: 1px dashed #e2a80e;
    border-radius: 7px;
    background: #fff9e7;
    color: #6f5200;
    font-size: 10.3px;
    font-weight: 800;
    line-height: 1.2;
}

.fd-card__feature i {
    flex: 0 0 auto;
    display: inline-flex;
    width: 21px;
    height: 21px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #facb04;
    color: #c98c00;
    color: #4a3700;
    font-size: 11px;
}

.fd-card__feature span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fd-card__feature--coupon {
    border-color: #e2a80e;
    background: #fff8df;
    color: #684b00;
}

.fd-card__feature--cashback {
    border-color: #52ad74;
    background: #eefaf2;
    color: #176638;
}

.fd-card__feature--cashback i { background: #168444; color: #fff; }

.fd-card__feature--free {
    border-color: #e06a6a;
    background: #fff1f1;
    color: #9d2020;
}

.fd-card__feature--free i { background: #b10101; color: #fff; }

.fd-card__feature--featured {
    border-color: #d8b64c;
    background: #fffbea;
    color: #655411;
}

.fd-is-closed .fd-card__image { filter: grayscale(1); }

.fd-is-closed .fd-card__visual::after {
    position: absolute;
    z-index: 3;
    inset: 0;
    background: rgba(28, 33, 40, .13);
    content: "";
    pointer-events: none;
}

@media (max-width: 359px) {
    .restaurant-block > .fd-restaurant-card {
        width: calc(100% - 20px);
        height: 170px;
        margin-right: 10px;
        margin-left: 10px;
    }
    .fd-restaurant-card { grid-template-columns: minmax(0, 41%) minmax(0, 59%); }
    .fd-card__body { padding-right: 9px; padding-left: 9px; }
    .fd-card__feature { padding-right: 6px; padding-left: 6px; font-size: 9.2px; }
}

@media (min-width: 768px) {
    .restaurant-block > .fd-restaurant-card {
        max-width: 560px;
        height: 186px;
        margin-right: auto;
        margin-left: auto;
    }
    .fd-card__title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .fd-restaurant-card,
    .fd-card__image { transition: none; }
    .fd-is-autoplaying .fd-card__dot.is-active::after { animation: none; width: 100%; }
}
