/* Bazarik listing promotion card variants (loaded on /tarrif and listing grids for Bazarik only) */

.bazarik-promo--highlight.product-style-one {
    background: rgba(54, 107, 232, 0.14);
    border-radius: 12px;
}

.active-light-mode .bazarik-promo--highlight.product-style-one {
    background: rgba(54, 107, 232, 0.08);
}

.bazarik-promo--frame.product-style-one {
    border: 2px solid var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 0 0 1px rgba(54, 107, 232, 0.25);
}

.bazarik-promo-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    z-index: 10;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bazarik-promo-badge--hot {
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #e85d04, #dc2f02);
}

.bazarik-promo-badge--pin {
    top: 8px;
    left: 8px;
    background: #5a189a;
}

.bazarik-promo-badge--top {
    bottom: 8px;
    left: 8px;
    background: #2d6a4f;
}

.bazarik-promo-ribbon--featured {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 11;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 6px;
    background: rgba(54, 107, 232, 0.92);
    color: #fff;
    border-radius: 12px 12px 0 0;
}

/* Thin listing row (Flutter search / list style) */
.listing-card-thin {
    border-radius: 10px;
    background: var(--tariff-card-bg, #191925);
    border: 1px solid var(--tariff-card-border, rgba(255, 255, 255, 0.08));
    overflow: hidden;
}

.active-light-mode .listing-card-thin {
    background: var(--color-white, #fff);
    border-color: #00000014;
}

.listing-card-thin.bazarik-promo--highlight {
    background: rgba(54, 107, 232, 0.14);
}

.active-light-mode .listing-card-thin.bazarik-promo--highlight {
    background: rgba(54, 107, 232, 0.08);
}

.listing-card-thin.bazarik-promo--frame {
    border: 2px solid var(--color-primary);
    box-shadow: 0 0 0 1px rgba(54, 107, 232, 0.2);
}

.listing-card-thin__inner {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 8px;
    position: relative;
    min-height: 72px;
}

.listing-card-thin__thumb {
    position: relative;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.listing-card-thin__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-card-thin__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding-right: 4px;
}

.listing-card-thin__title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    color: var(--tariff-card-title, var(--color-heading));
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card-thin__location {
    font-size: 11px;
    line-height: 1.3;
    color: var(--tariff-card-body, rgba(255, 255, 255, 0.7));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-card-thin__price {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
    margin-top: 2px;
}

.listing-card-thin__date {
    font-size: 10px;
    color: var(--tariff-card-body, rgba(255, 255, 255, 0.55));
}

.listing-card-thin__vip {
    position: absolute;
    top: 4px;
    right: 4px;
    z-index: 12;
    font-size: 9px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    background: var(--color-primary);
    color: #111;
    line-height: 1;
}

.listing-card-thin__wishlist {
    flex: 0 0 auto;
    align-self: flex-start;
    border: none;
    background: transparent;
    color: var(--color-primary);
    padding: 2px;
    font-size: 18px;
    opacity: 0.85;
    pointer-events: none;
}

/* Badges on thin thumb */
.bazarik-promo-badge--thin {
    font-size: 8px;
    padding: 2px 5px;
    border-radius: 3px;
    max-width: calc(100% - 8px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-card-thin__thumb .bazarik-promo-badge--hot,
.listing-card-thin__thumb .bazarik-promo-badge--pin {
    top: 4px;
    left: 4px;
}

.listing-card-thin__thumb .bazarik-promo-badge--top {
    bottom: 4px;
    left: 4px;
    top: auto;
}

.listing-card-thin__thumb .bazarik-promo-ribbon--thin {
    font-size: 7px;
    padding: 2px 4px;
    border-radius: 6px 6px 0 0;
}

/* Tariffs page: single thin-row preview per service */
.tariff-preview-sample {
    margin: 1rem 0 1.25rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--tariff-card-border);
    flex-shrink: 0;
}

.tariff-service-card .tariff-preview-sample + .tariff-actions {
    margin-top: 0;
}
