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

.restaurant-block > .fd-restaurant-card {
    display: grid;
    height: 208px;
    margin: 0 0 12px;
    color: #162033;
    text-decoration: none !important;
}

.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 {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    height: 38px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .62));
    pointer-events: 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-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%; }
}

.fd-card__body {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    padding: 11px 12px 10px;
}

.fd-card__status {
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 7px;
    overflow: hidden;
    padding: 5px 8px;
    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(14px, 4.1vw, 17px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

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

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

.fd-card__meta {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 7px;
    margin-top: 9px;
    color: #4f5868;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
}

.fd-card__meta-item {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 6px;
    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;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid #eef0f3;
    color: #687184;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

.fd-card__feature i {
    flex: 0 0 auto;
    color: #e6a500;
    font-size: 13px;
}

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

.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 { height: 196px; }
    .fd-restaurant-card { grid-template-columns: minmax(0, 41%) minmax(0, 59%); }
    .fd-card__body { padding-right: 9px; padding-left: 9px; }
    .fd-card__feature { font-size: 9.5px; }
}

@media (min-width: 768px) {
    .restaurant-block > .fd-restaurant-card {
        max-width: 560px;
        height: 220px;
        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%; }
}
