.sp-top-offers {
    width: 100%;
    padding: 1.25rem 1.125rem 1rem;
    border-radius: 0.9375rem;
    background: var(--sp-block-bg-alt);
    box-shadow: var(--sp-block-shadow);
    border: 1px solid var(--sp-block-border);
    color: var(--sp-text-primary);
    font-family: "Open Sans", sans-serif;
    box-sizing: border-box;
}

.sp-top-offers__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.875rem;
    border-bottom: 1px solid var(--sp-block-border-header);
}

.sp-top-offers__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--sp-accent);
}

.sp-top-offers__view-all {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.25rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--sp-button-border);
    background: transparent;
    color: var(--sp-text-body);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.sp-top-offers__view-all:hover {
    border-color: var(--sp-inline-card-hover-border);
    background: var(--sp-card-bg);
    color: var(--sp-text-primary);
    text-decoration: none;
}

.sp-top-offers__view-all-text--desktop {
    display: none;
}

.sp-top-offers__list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;

    @media (min-width: 992px) {
        gap: 1rem;
    }
}

.sp-top-offers__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    background: var(--sp-card-bg);
    border: 1px solid var(--sp-card-border);
    box-sizing: border-box;
    overflow: hidden;
}

.sp-top-offers__card--top {
    background: var(--sp-paid-card-bg);
    border-color: var(--sp-paid-card-border);
    box-shadow: inset 0 0 0 1px rgb(139 195 74 / 12%);

    .sp-top-offers__name {
        color: var(--sp-paid-card-name);
    }

    .sp-top-offers__meta-label {
        color: var(--sp-paid-card-label);
    }

    .sp-top-offers__meta-value {
        color: var(--sp-paid-card-value);
    }

    .sp-top-offers__badge {
        margin-top: -0.625rem;
        font-size: 0.625rem;

        @media (min-width: 1366px) {
            margin-top: -0.75rem;
            font-size: 0.625rem;
            right: 0px;
            border-bottom-right-radius: 0;
            border-top-left-radius: 0;
        }
    }

    .sp-top-offers__badge-text {
        line-height: 0.6rem;
    }
}

.sp-top-offers__badge {
    top: 0.625rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.3125rem 2rem;
    background: #ffc107;
    color: #111;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    width: fit-content;
    position: absolute;
    right: 0;
    padding-right: 12px;
    border-bottom-left-radius: 0.75rem;
    padding-left: 14px;
}

.sp-top-offers__badge-icon {
    font-size: 0.625rem;
    line-height: 1;
}

.sp-top-offers__card-main {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

.sp-top-offers__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.sp-top-offers__logo-wrap {
    width: 7rem;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: var(--sp-thumb-bg);
    border: 1px solid var(--sp-card-border);
    overflow: hidden;
}

.sp-top-offers__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.sp-top-offers__head-text {
    min-width: 0;
    flex: 1 1 auto;
}

.sp-top-offers__name {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--sp-text-primary);
}

.sp-top-offers__meta {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sp-top-offers__meta--desktop {
    display: none;
}

.sp-top-offers__meta-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.35;
    color: var(--sp-text-primary);
}

.sp-top-offers__meta-icon {
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    margin-top: 0.0625rem;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.sp-top-offers__meta-icon--payment,
.sp-top-offers__meta-icon--license,
.sp-top-offers__meta-icon--bonuses {
    svg {
        width: 16px;
        height: auto;
    }
}

.sp-top-offers__meta-label {
    flex: 0 0 auto;
    color: var(--sp-text-muted);
}

.sp-top-offers__meta-value {
    min-width: 0;
    color: var(--sp-text-primary);
}

.sp-top-offers__details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.625rem 1rem;
    border-radius: 0.625rem;
    background: #ffc107;
    color: #111;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: filter 0.2s ease, transform 0.2s ease;
    box-sizing: border-box;
}

.sp-top-offers__details:hover {
    filter: brightness(1.05);
    color: #111;
    text-decoration: none;
}

.sp-top-offers__details--desktop {
    display: none;
}

.sp-top-offers__details--mobile {
    width: 100%;
}

@media (min-width: 1100px) {
    .sp-top-offers {
        padding: 1.375rem 1.25rem 1.125rem;
    }

    .sp-top-offers__title {
        font-size: 1.125rem;
    }

    .sp-top-offers__view-all-text--mobile {
        display: none;
    }

    .sp-top-offers__view-all-text--desktop {
        display: inline;
    }

    .sp-top-offers__card {
        padding: 1rem 1.125rem;
    }

    .sp-top-offers__badge {
        top: 0.75rem;
        right: 0.75rem;
        min-width: auto;
        padding: 0.3125rem 0.625rem;
        transform: none;
        border-radius: 0.375rem;
        font-size: 0.625rem;
    }

    .sp-top-offers__card-main {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .sp-top-offers__head {
        flex: 1 1 auto;
        align-items: center;
        padding-right: 0;
    }

    .sp-top-offers__logo-wrap {
        width: 10rem;
    }

    .sp-top-offers__name {
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

    .sp-top-offers__meta--mobile {
        display: none;
    }

    .sp-top-offers__meta--desktop {
        display: flex;
    }

    .sp-top-offers__details--mobile {
        display: none;
    }

    .sp-top-offers__details--desktop {
        display: inline-flex;
        flex: 0 0 auto;
        min-width: 10rem;
        white-space: nowrap;
    }
}
