/* Freetool upsell — tonton/sosyalton (mavi vurgu: --cl1) */
#nfxFtUpsell {
    --secColor: rgb(var(--cl1, 68, 157, 233));
    --ft-up-tint: rgba(var(--cl1, 68, 157, 233), 0.08);
    --ft-up-tint-strong: rgba(var(--cl1, 68, 157, 233), 0.14);
    --bg: #f3f4f7;
}

#nfxFtUpsell .list-area {
    background: #f9f9f9;
    border-radius: 12px;
    overflow: hidden;
}

#nfxFtUpsell .section-header {
    margin: 14px 18px 8px;
    padding: 0;
    text-align: left;
}

#nfxFtUpsell .section-header .section-title {
    font-size: 17px;
    font-weight: 700;
    color: #3d4556;
    margin: 0 0 4px;
    line-height: 1.3;
}

#nfxFtUpsell .section-header .section-subtitle {
    font-size: 14px;
    color: #8d96a4;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
}

#nfxFtUpsell .section-header .section-subtitle.nfx-ft-up-pitch {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

#nfxFtUpsell .product-list {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--bg, #f3f4f7);
    background: #fff;
    border-top: 1px solid var(--bg, #f3f4f7);
}

#nfxFtUpsell .product-list .item {
    border: 2px solid #f1f1f5;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
    z-index: 1;
    min-height: 88px;
    user-select: none;
    background: #fff;
}

/* nivufox category.php — check ikonu konumu */
#nfxFtUpsell .product-list .item::before {
    content: "\e95e";
    font-family: "nivu";
    position: absolute;
    right: -2px;
    top: 3px;
    font-size: 20px;
    line-height: 1;
    color: var(--secColor);
    opacity: 0;
    transition: 0.3s;
    transform: scale(0.55);
}

#nfxFtUpsell .product-list .item.selected::before {
    right: 8px;
    opacity: 1;
    transform: scale(1);
}

#nfxFtUpsell .product-list .item.selected {
    border-color: var(--secColor) !important;
    background-color: var(--ft-up-tint) !important;
    border-width: 2px !important;
}

#nfxFtUpsell .product-list .item:hover {
    border-color: #cfd3df;
}

#nfxFtUpsell .product-list .item .product-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: normal;
    color: #627285;
    width: 100%;
    align-items: flex-start;
    padding-right: 0;
}

#nfxFtUpsell .product-list .item .product-name span.name {
    color: #5f6c7c;
    font-size: 22px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

#nfxFtUpsell .product-list .item.selected .product-name span.name {
    color: var(--secColor);
}

#nfxFtUpsell .product-list .item .product-name span.product-label {
    color: #8d96a4;
    font-size: 13px;
    font-weight: 500;
    line-height: 17px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

#nfxFtUpsell .product-list .item .price-badge {
    position: absolute;
    right: 8px;
    bottom: 8px;
    color: #6b7a8d;
    background: #f0f2f6;
    border: none;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
}

#nfxFtUpsell .product-list .item.selected .price-badge {
    color: var(--secColor);
    background: var(--ft-up-tint-strong);
}

#nfxFtUpsell .bottom-product-preview {
    padding: 15px;
    background: #fff;
}

#nfxFtUpsell .bottom-product-preview .content-side .detail {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
    gap: 12px;
}

#nfxFtUpsell .bottom-product-preview .product-details {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

#nfxFtUpsell .bottom-product-preview .product-details .icon {
    min-width: 52px;
    width: 52px;
    height: 52px;
    color: #767889;
    background: #f5f5f5;
    font-size: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#nfxFtUpsell .bottom-product-preview .product-details .text {
    padding-left: 12px;
    color: #a4a2af;
    line-height: 20px;
    min-width: 0;
}

#nfxFtUpsell .bottom-product-preview .product-details .text .name {
    font-size: 15px;
    font-weight: 600;
    color: #3d4556;
    margin-bottom: 2px;
}

#nfxFtUpsell .bottom-product-preview .product-details .text .amount {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #68687c;
}

#nfxFtUpsell .bottom-product-preview .product-price {
    color: #a3a5b7;
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: 15px;
    flex-shrink: 0;
}

#nfxFtUpsell .bottom-product-preview .product-price .price {
    font-size: 28px;
    font-weight: 700;
    color: #444452;
    white-space: nowrap;
}

#nfxFtUpsell .bottom-product-preview .action {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

#nfxFtUpsell .bottom-product-preview .action .butto {
    min-width: 168px;
    min-height: 52px;
    padding: 15px 32px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
}

#nfxFtUpsell .bottom-product-preview .butto-main {
    color: #fff !important;
    background: var(--secColor) !important;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(var(--cl1, 68, 157, 233), 0.28);
}

#nfxFtUpsell .bottom-product-preview .butto-main:hover {
    filter: brightness(1.04);
}

@media (max-width: 900px) {
    #nfxFtUpsell .product-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    #nfxFtUpsell .product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 0 15px 12px;
        border: none;
    }

    #nfxFtUpsell .section-header {
        margin: 12px 15px 8px;
    }

    #nfxFtUpsell .product-list .item {
        padding: 12px;
        min-height: 76px;
    }

    #nfxFtUpsell .product-list .item .product-name span.name {
        font-size: 18px;
    }

    #nfxFtUpsell .bottom-product-preview .content-side .detail {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    #nfxFtUpsell .bottom-product-preview .product-details .icon {
        display: none;
    }

    #nfxFtUpsell .bottom-product-preview .product-details .text {
        padding-left: 0;
    }

    #nfxFtUpsell .bottom-product-preview .product-price {
        margin: 0;
        justify-content: flex-start;
    }

    #nfxFtUpsell .bottom-product-preview .product-price .price {
        font-size: 22px;
    }

    #nfxFtUpsell .bottom-product-preview .action {
        width: 100%;
    }

    #nfxFtUpsell .bottom-product-preview .action .butto {
        width: 100%;
        min-width: 0;
        min-height: 50px;
        text-align: center;
        padding: 14px 20px;
        font-size: 18px;
    }
}
